[Mlir-commits] [mlir] 006340b - [mlir][sparse] add missing dependent dialect.
Peiming Liu
llvmlistbot at llvm.org
Thu Dec 22 17:44:17 PST 2022
Author: Peiming Liu
Date: 2022-12-23T01:44:12Z
New Revision: 006340baf753648ea8fd0344556d878851a00d09
URL: https://github.com/llvm/llvm-project/commit/006340baf753648ea8fd0344556d878851a00d09
DIFF: https://github.com/llvm/llvm-project/commit/006340baf753648ea8fd0344556d878851a00d09.diff
LOG: [mlir][sparse] add missing dependent dialect.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D140595
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
index e199d90903cd..48ba2ddaf712 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp
@@ -16,6 +16,7 @@
#include "mlir/Dialect/Bufferization/Transforms/Passes.h"
#include "mlir/Dialect/Bufferization/Transforms/Transforms.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
+#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
#include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
#include "mlir/Pass/PassManager.h"
@@ -96,6 +97,7 @@ class SparsificationAndBufferizationPass
void getDependentDialects(::mlir::DialectRegistry ®istry) const override {
registry.insert<bufferization::BufferizationDialect>();
+ registry.insert<LLVM::LLVMDialect>();
}
void runOnOperation() override {
More information about the Mlir-commits
mailing list