[Mlir-commits] [mlir] c5edef6 - [mlir] Fix build after #75103
Matthias Springer
llvmlistbot at llvm.org
Tue Jan 30 08:15:17 PST 2024
Author: Matthias Springer
Date: 2024-01-30T16:15:00Z
New Revision: c5edef6279ecc1469029184637343854243cc5e6
URL: https://github.com/llvm/llvm-project/commit/c5edef6279ecc1469029184637343854243cc5e6
DIFF: https://github.com/llvm/llvm-project/commit/c5edef6279ecc1469029184637343854243cc5e6.diff
LOG: [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.)
Added:
Modified:
mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt b/mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt
index 53ca492339f50..cfa0269608cf7 100644
--- a/mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt
+++ b/mlir/lib/Dialect/MLProgram/Transforms/CMakeLists.txt
@@ -9,6 +9,7 @@ add_mlir_dialect_library(MLIRMLProgramTransforms
MLIRMLProgramPassIncGen
LINK_LIBS PUBLIC
+ MLIRBufferizationDialect
MLIRIR
MLIRMLProgramDialect
MLIRPass
diff --git a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
index 543dab0f30913..0e546a7cda133 100644
--- a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
+++ b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
@@ -133,7 +133,8 @@ struct ExpensiveChecks : public RewriterBase::ForwardingListener {
}
}
- void notifyOperationInserted(Operation *op, InsertPoint previous) override {
+ void notifyOperationInserted(Operation *op,
+ OpBuilder::InsertPoint previous) override {
RewriterBase::ForwardingListener::notifyOperationInserted(op, previous);
// Invalidate the finger print of the op that owns the block into which the
// op was inserted into.
More information about the Mlir-commits
mailing list