[flang-commits] [flang] 38eec3a - [flang][cuda][NFC] Add dependent dialect for cuf-convert (#116093)
via flang-commits
flang-commits at lists.llvm.org
Thu Nov 14 10:00:25 PST 2024
Author: Valentin Clement (バレンタイン クレメン)
Date: 2024-11-14T10:00:21-08:00
New Revision: 38eec3a7e328cf5aa34f90dc755ff52999761eac
URL: https://github.com/llvm/llvm-project/commit/38eec3a7e328cf5aa34f90dc755ff52999761eac
DIFF: https://github.com/llvm/llvm-project/commit/38eec3a7e328cf5aa34f90dc755ff52999761eac.diff
LOG: [flang][cuda][NFC] Add dependent dialect for cuf-convert (#116093)
This pass will create gpu dialect operation. Add the dialect as
dependency so fir-opt will not crash on it
Added:
Modified:
flang/include/flang/Optimizer/Transforms/Passes.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Transforms/Passes.td b/flang/include/flang/Optimizer/Transforms/Passes.td
index d89713a9fc0b97..1db41fa7972bf1 100644
--- a/flang/include/flang/Optimizer/Transforms/Passes.td
+++ b/flang/include/flang/Optimizer/Transforms/Passes.td
@@ -424,7 +424,7 @@ def AssumedRankOpConversion : Pass<"fir-assumed-rank-op", "mlir::ModuleOp"> {
def CUFOpConversion : Pass<"cuf-convert", "mlir::ModuleOp"> {
let summary = "Convert some CUF operations to runtime calls";
let dependentDialects = [
- "fir::FIROpsDialect"
+ "fir::FIROpsDialect", "mlir::gpu::GPUDialect"
];
}
More information about the flang-commits
mailing list