File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def RemoveTrivialUse : Pass<"trivialuse"> {
78
78
let constructor = "mlir::polygeist::createRemoveTrivialUsePass()";
79
79
}
80
80
81
- def LowerPolygeistOps : FunctionPass <"lower-polygeist-ops"> {
81
+ def LowerPolygeistOps : Pass <"lower-polygeist-ops", "FuncOp "> {
82
82
let summary = "Lower polygeist ops to memref operations";
83
83
let constructor = "mlir::polygeist::createLowerPolygeistOpsPass()";
84
84
let dependentDialects = ["::mlir::memref::MemRefDialect"];
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ struct SubIndexToReinterpretCast
63
63
struct LowerPolygeistOpsPass
64
64
: public LowerPolygeistOpsBase<LowerPolygeistOpsPass> {
65
65
66
- void runOnFunction () override {
66
+ void runOnOperation () override {
67
67
auto op = getOperation ();
68
68
auto ctx = op.getContext ();
69
69
RewritePatternSet patterns (ctx);
You can’t perform that action at this time.
0 commit comments