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

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


================
@@ -1008,6 +1008,29 @@ struct ConvertOpConversion : public fir::FIROpConversion<fir::ConvertOp> {
         rewriter.replaceOpWithNewOp<mlir::LLVM::BitcastOp>(convert, toTy, op0);
         return mlir::success();
       }
+      // Pointer to MemRef conversion.
+      if (mlir::isa<mlir::MemRefType>(toFirTy)) {
----------------
clementval wrote:

This is the FIR CodeGen pass. Shouldn't your change go into a separate CodeGen pass that deal with the operations you are lowering to? 

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


More information about the cfe-commits mailing list