[Mlir-commits] [mlir] 200a9a8 - [mlir][nvgpu] Move dependent dialect from C++ to TableGen for nvgpu-to-nvvm pass (NFC) (#155801)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Aug 28 17:49:36 PDT 2025
Author: lonely eagle
Date: 2025-08-29T08:49:33+08:00
New Revision: 200a9a87fe61db0e54a32c14e064e400bbd546d5
URL: https://github.com/llvm/llvm-project/commit/200a9a87fe61db0e54a32c14e064e400bbd546d5
DIFF: https://github.com/llvm/llvm-project/commit/200a9a87fe61db0e54a32c14e064e400bbd546d5.diff
LOG: [mlir][nvgpu] Move dependent dialect from C++ to TableGen for nvgpu-to-nvvm pass (NFC) (#155801)
Removed the getDependentDialects function from the convert-nvgpu-to-nvvm
pass and instead use TableGen to define dependent dialects.
Added:
Modified:
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Conversion/Passes.td b/mlir/include/mlir/Conversion/Passes.td
index 323af3e97e2d4..5180b5614a43f 100644
--- a/mlir/include/mlir/Conversion/Passes.td
+++ b/mlir/include/mlir/Conversion/Passes.td
@@ -970,7 +970,10 @@ def ConvertNVGPUToNVVMPass : Pass<"convert-nvgpu-to-nvvm"> {
}];
let dependentDialects = [
- "NVVM::NVVMDialect",
+ "arith::ArithDialect",
+ "LLVM::LLVMDialect",
+ "memref::MemRefDialect",
+ "NVVM::NVVMDialect"
];
}
diff --git a/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp b/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp
index c6c5ab356f256..09f506ad40b17 100644
--- a/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp
+++ b/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp
@@ -396,11 +396,6 @@ struct ConvertNVGPUToNVVMPass
: public impl::ConvertNVGPUToNVVMPassBase<ConvertNVGPUToNVVMPass> {
using Base::Base;
- void getDependentDialects(DialectRegistry ®istry) const override {
- registry.insert<memref::MemRefDialect, LLVM::LLVMDialect, NVVM::NVVMDialect,
- arith::ArithDialect>();
- }
-
void runOnOperation() override {
LowerToLLVMOptions options(&getContext());
RewritePatternSet patterns(&getContext());
More information about the Mlir-commits
mailing list