[flang-commits] [clang] [flang] [Flang][FIR] Introduce ConvertFIRToMLIR pass. (PR #168703)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Nov 20 08:58:23 PST 2025


================
@@ -4326,7 +4356,7 @@ class FIRToLLVMLowering
     target.addLegalDialect<mlir::gpu::GPUDialect>();
 
     // required NOPs for applying a full conversion
-    target.addLegalOp<mlir::ModuleOp>();
+    target.addLegalOp<mlir::ModuleOp, mlir::UnrealizedConversionCastOp>();
----------------
clementval wrote:

This should probably be added conditionally only to not break the current workflow. 

https://github.com/llvm/llvm-project/pull/168703


More information about the flang-commits mailing list