11#include "llvm/Support/Debug.h"
14#define GEN_PASS_DEF_PRINTIRPASS
15#include "mlir/Transforms/Passes.h.inc"
21struct PrintIRPass :
public impl::PrintIRPassBase<PrintIRPass> {
22 using impl::PrintIRPassBase<PrintIRPass>::PrintIRPassBase;
24 void runOnOperation()
override {
25 llvm::dbgs() <<
"// -----// IR Dump";
26 if (!this->label.empty())
27 llvm::dbgs() <<
" " << this->label;
28 llvm::dbgs() <<
" //----- //\n";
29 getOperation()->dump();
30 markAllAnalysesPreserved();
Include the generated interface declarations.