[flang-commits] [flang] [OpenMP][Flang] Emit default declare mappers implicitly for derived types (PR #140562)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Jul 1 08:01:40 PDT 2025


================
@@ -2348,6 +2348,122 @@ genSingleOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
       queue, item, clauseOps);
 }
 
+static mlir::FlatSymbolRefAttr
+genImplicitDefaultDeclareMapper(lower::AbstractConverter &converter,
----------------
skatrak wrote:

Is this exclusively needed for implicitly mapped variables into `target` regions or should it be called for explicit `map` clauses for derived types when they don't specify any mapper? In particular, in `target`, `declare mapper`, `target enter data` and `target exit data` directives.

Would we need this for any other map-like clause, like `use_device_ptr`, `use_device_addr` or `has_device_addr`?

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


More information about the flang-commits mailing list