[flang-commits] [flang] [flang][cuda][NFC] Add dependent dialect for cuf-convert (PR #116093)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Wed Nov 13 11:13:14 PST 2024


https://github.com/clementval created https://github.com/llvm/llvm-project/pull/116093

This pass will create gpu dialect operation. Add the dialect as dependency so fir-opt will not crash on it

>From 9dff70d75279b0eea6f60930e57d5f2225b02a20 Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Wed, 13 Nov 2024 11:12:04 -0800
Subject: [PATCH] [flang][cuda][NFC] Add dependent dialect for cuf-convert

---
 flang/include/flang/Optimizer/Transforms/Passes.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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