[Mlir-commits] [flang] [mlir] [flang][acc] Introduce interface for rematerializable ops (PR #174467)
Razvan Lupusoru
llvmlistbot at llvm.org
Mon Jan 5 11:31:12 PST 2026
================
@@ -61,6 +61,18 @@ void registerOpenACCExtensions(mlir::DialectRegistry ®istry) {
*ctx);
fir::TypeDescOp::attachInterface<
IndirectGlobalAccessModel<fir::TypeDescOp>>(*ctx);
+
+ // Attach OutlineRematerializationOpInterface to FIR operations that
+ // produce synthetic types (shapes, field indices) which cannot be passed
+ // as arguments to outlined regions and must be rematerialized inside.
+ fir::ShapeOp::attachInterface<
----------------
razvanlupusoru wrote:
Nice idea and great timing - let me investigate your suggestion instead! It seems more general and I like that.
https://github.com/llvm/llvm-project/pull/174467
More information about the Mlir-commits
mailing list