File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
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 : Pass<"lower-polygeist-ops", "FuncOp" > {
81
+ def LowerPolygeistOps : Pass<"lower-polygeist-ops"> {
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 15
15
16
16
#include " mlir/Dialect/Arithmetic/IR/Arithmetic.h"
17
17
#include " mlir/Dialect/MemRef/IR/MemRef.h"
18
- #include " mlir/Dialect/StandardOps/IR/Ops.h"
19
- #include " mlir/Dialect/StandardOps/Transforms/Passes.h"
20
18
#include " mlir/Rewrite/FrozenRewritePatternSet.h"
21
19
#include " mlir/Transforms/DialectConversion.h"
22
20
#include " polygeist/Dialect.h"
@@ -68,14 +66,13 @@ struct LowerPolygeistOpsPass
68
66
69
67
void runOnOperation () override {
70
68
auto op = getOperation ();
71
- auto ctx = op. getContext ();
69
+ auto ctx = op-> getContext ();
72
70
RewritePatternSet patterns (ctx);
73
71
patterns.insert <SubIndexToReinterpretCast>(ctx);
74
72
75
73
ConversionTarget target (*ctx);
76
74
target.addIllegalDialect <polygeist::PolygeistDialect>();
77
- target.addLegalDialect <arith::ArithmeticDialect, mlir::StandardOpsDialect,
78
- memref::MemRefDialect>();
75
+ target.addLegalDialect <arith::ArithmeticDialect, memref::MemRefDialect>();
79
76
80
77
if (failed (applyPartialConversion (op, target, std::move (patterns))))
81
78
return signalPassFailure ();
You can’t perform that action at this time.
0 commit comments