[flang-commits] [flang] [flang] Lowering FIR memory ops to MemRef dialect (PR #173507)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Wed Dec 24 14:53:08 PST 2025
================
@@ -215,6 +215,18 @@ def MemRefDataFlowOpt : Pass<"fir-memref-dataflow-opt", "::mlir::func::FuncOp">
];
}
+def FIRToMemRef : Pass<"fir-to-memref", "::mlir::func::FuncOp"> {
+ let summary = "Convert FIR loads, stores, and descriptors to MemRef dialect";
+ let description = [{
+ Lower FIR memory operations (`fir.alloca`, `fir.load`, `fir.store`, 'fir.array_coor') to MLIR's MemRef core dialect.
+ }];
+ let dependentDialects = ["fir::FIROpsDialect", "mlir::arith::ArithDialect",
----------------
razvanlupusoru wrote:
The only dependent dialects that should be in this list are those of the operations that get generated. I imagine that Arith and MemRef is enough?
https://github.com/llvm/llvm-project/pull/173507
More information about the flang-commits
mailing list