llvm-project
d41d83b5 - [Flang][MLIR][OpenMP] Add distinct var_ptr_ptr_type to omp.map.info operations & remove ref_ptr_ptee

Commit
17 days ago
[Flang][MLIR][OpenMP] Add distinct var_ptr_ptr_type to omp.map.info operations & remove ref_ptr_ptee This is a precursor patch to attach and ref_ptr/ptee mapping that I intend to upstream over the next few weeks. The attach maps require both the type of the descriptor and the pointed to data to calculate the appropriate offload/base pointers and size. In the base case of ref_ptr_ptee all of this information can be gathered from the pointer and pointee maps, but in cases where we have only one (i.e. ref_ptr/ref_ptee) we will be missing one of the key elements required to create an corresponding attach map. So, this PR basically adds the ability to ferry around the type of both var_ptr and var_ptr_ptr as opposed to just var_ptr, then we can emit attach maps as seperate map.info's that carry all the pre-requisite informaion for lowering to LLVM-IR. But, otherwise it seems reasonable to have var_ptr_ptr mirror var_ptr in all aspects for consistency. It also removes ref_ptr_ptee, instead opting to use the setting of both ref_ptr and ref_ptee to mean ref_ptr_ptee.
Author
Committer
Parents
Loading