summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect
diff options
context:
space:
mode:
authorbixia1 <bixia@google.com>2022-12-07 12:54:50 -0800
committerbixia1 <bixia@google.com>2022-12-07 15:18:36 -0800
commita0568eabaf85cdb4f89bda9e75a49a70c165af7c (patch)
tree9775801a87ffc6c9b016dd2884b29c93e62a78d1 /mlir/lib/Dialect
parent242d5b2ba47d6956225d79ef6d1f0aa0a1cf8330 (diff)
downloadllvm-a0568eabaf85cdb4f89bda9e75a49a70c165af7c.tar.gz
[mlir][sparse] Add dependence on bufferization.
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139571
Diffstat (limited to 'mlir/lib/Dialect')
-rw-r--r--mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
index 6066a17e2791..5633714ed807 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
@@ -9,6 +9,7 @@
#include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
+#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Bufferization/Transforms/Bufferize.h"
#include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
#include "mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h"
@@ -86,6 +87,10 @@ public:
return success();
}
+ void getDependentDialects(::mlir::DialectRegistry &registry) const override {
+ registry.insert<bufferization::BufferizationDialect>();
+ }
+
void runOnOperation() override {
{
// Run enabling transformations.