[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

Valentin Clement バレンタイン クレメン via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 26 10:17:59 PST 2025


================
@@ -117,13 +132,12 @@ void addFIRToLLVMPass(mlir::PassManager &pm,
   options.typeDescriptorsRenamedForAssembly =
       !disableCompilerGeneratedNamesConversion;
   options.ComplexRange = config.ComplexRange;
-  addPassConditionally(pm, disableFirToLlvmIr,
-                       [&]() { return fir::createFIRToLLVMPass(options); });
+  options.LowerThroughCoreMLIR = config.LowerThroughCoreMLIR;
+  pm.addPass(fir::createFIRToLLVMPass(options));
----------------
clementval wrote:

Why cannot you keep the addPassConditionally? 

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


More information about the cfe-commits mailing list