[flang-commits] [flang] [OpenMP][Flang] Emit default declare mappers implicitly for derived types (PR #140562)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Fri Jul 4 08:12:30 PDT 2025
================
@@ -2348,6 +2348,122 @@ genSingleOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
queue, item, clauseOps);
}
+static mlir::FlatSymbolRefAttr
+genImplicitDefaultDeclareMapper(lower::AbstractConverter &converter,
----------------
TIFitis wrote:
It shouldn't be used with use_device_ptr and other such clauses as they don't support a declare mapper.
At the moment it's only used when the user hasn't made any effort to map a derived type. This can't be used in tangent with explicit map clause as map-type composition can cause divergence from the user's intention.
This is only mean't to help map derived types, especially, allocatables of derived types and nested derived types when no other mapping information is available.
https://github.com/llvm/llvm-project/pull/140562
More information about the flang-commits
mailing list