[Openmp-commits] [flang] [openmp] [mlir] [Flang][OpenMP] Initial mapping of Fortran pointers and allocatables for target devices (PR #71766)

Slava Zakharin via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 16 17:52:32 PST 2023


vzakhari wrote:

I was thinking about something like this:
```
%0 = mapinfo varPtr(%base_addr) varPtrPtr(%base_addr_addr) (to)
%1 = mapinfo varPtr(%addendum_addr) varPtrPtr(%addendum_addr_addr) (to)
%2 = mapinfo varPtr(%descAddr) members(%0, %1) (to)
```

So that `%0` and `%1` describe the map-and-attach actions for their parent data structure, whose mapping is described by `%2`.  But, yes, this requires exposing the addresses of the `base_addr` and `addendum` members within the parent `!fir.ref<!fir.box<...`.

This is just a suggestion.

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


More information about the Openmp-commits mailing list