Skip to content

Commit c5edef6

Browse files
[mlir] Fix build after #75103
After #75103, `MLPrgramTransforms` depends on `BufferizationDialect`. Also fix an unrelated compile error in `GreedyPatternRewriteDriver.cpp`. (This was not failing on CI. I may be running an old compiler locally.)
1 parent 2960656 commit c5edef6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_mlir_dialect_library(MLIRMLProgramTransforms
99
MLIRMLProgramPassIncGen
1010

1111
LINK_LIBS PUBLIC
12+
MLIRBufferizationDialect
1213
MLIRIR
1314
MLIRMLProgramDialect
1415
MLIRPass

mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ struct ExpensiveChecks : public RewriterBase::ForwardingListener {
133133
}
134134
}
135135

136-
void notifyOperationInserted(Operation *op, InsertPoint previous) override {
136+
void notifyOperationInserted(Operation *op,
137+
OpBuilder::InsertPoint previous) override {
137138
RewriterBase::ForwardingListener::notifyOperationInserted(op, previous);
138139
// Invalidate the finger print of the op that owns the block into which the
139140
// op was inserted into.

0 commit comments

Comments
 (0)