[Mlir-commits] [flang] [mlir] [flang][acc] Introduce interface for rematerializable ops (PR #174467)
Slava Zakharin
llvmlistbot at llvm.org
Mon Jan 5 11:48:36 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<
----------------
vzakhari wrote:
Yes, this is what I was concerned about that `Pure` might be too general for OpenACC purpose. Thanks for investigating it! Your findings justify the addition of new interface.
https://github.com/llvm/llvm-project/pull/174467
More information about the Mlir-commits
mailing list