llvm-project
42b563ba - [Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords (#177715)

Commit
8 days ago
[Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords (#177715) 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 behavior, which will flip the attach behavior to the newer semantics or the older semantics for backwards compatibility (outside the purview of this PR but good to mention).
Author
Parents
Loading