llvm-project
96f87826 - [Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords

Commit
3 days ago
[Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords This PR is one of four required to implement the attach mapping semantics in Flang, alongside the ref_ptr/ref_ptee/ref_ptr_ptee map modifiers and the attach(always/never/auto) modifiers. This PR is the MapInfoFinalization changes required to support these features, it mainly deals with applying the correct attach map type and manipulating the descriptor types maps for base address and descriptor so that when we specify ref_ptr/ref_ptee we emit one of the two maps and when we emit ref_ptr_ptee we emit our usual default maps. In all cases we add the "glue" of an new attach map except in cases where a user has provided attach never. In cases where we are provided an always, we apply the always map type to our attach maps. It's important to note the runtime has a toggle for the auto map behaviour, which will flip the attach behaviour to the newer semantics or the older semantics for backwards compatability (outside the purview of this PR but good to mention).
Author
Committer
Parents
Loading