File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 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"> {
7878 let constructor = "mlir::polygeist::createRemoveTrivialUsePass()";
7979}
8080
81- def LowerPolygeistOps : Pass<"lower-polygeist-ops", "FuncOp" > {
81+ def LowerPolygeistOps : Pass<"lower-polygeist-ops"> {
8282 let summary = "Lower polygeist ops to memref operations";
8383 let constructor = "mlir::polygeist::createLowerPolygeistOpsPass()";
8484 let dependentDialects = ["::mlir::memref::MemRefDialect"];
Original file line number Diff line number Diff line change 1515
1616#include " mlir/Dialect/Arithmetic/IR/Arithmetic.h"
1717#include " mlir/Dialect/MemRef/IR/MemRef.h"
18- #include " mlir/Dialect/StandardOps/IR/Ops.h"
19- #include " mlir/Dialect/StandardOps/Transforms/Passes.h"
2018#include " mlir/Rewrite/FrozenRewritePatternSet.h"
2119#include " mlir/Transforms/DialectConversion.h"
2220#include " polygeist/Dialect.h"
@@ -68,14 +66,13 @@ struct LowerPolygeistOpsPass
6866
6967 void runOnOperation () override {
7068 auto op = getOperation ();
71- auto ctx = op. getContext ();
69+ auto ctx = op-> getContext ();
7270 RewritePatternSet patterns (ctx);
7371 patterns.insert <SubIndexToReinterpretCast>(ctx);
7472
7573 ConversionTarget target (*ctx);
7674 target.addIllegalDialect <polygeist::PolygeistDialect>();
77- target.addLegalDialect <arith::ArithmeticDialect, mlir::StandardOpsDialect,
78- memref::MemRefDialect>();
75+ target.addLegalDialect <arith::ArithmeticDialect, memref::MemRefDialect>();
7976
8077 if (failed (applyPartialConversion (op, target, std::move (patterns))))
8178 return signalPassFailure ();
You can’t perform that action at this time.
0 commit comments