[llvm-branch-commits] [flang] [mlir] [Flang][MLIR][OpenMP] Add distinct var_ptr_ptr_type to omp.map.info operations (PR #177302)
Pranav Bhandarkar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 26 21:51:15 PST 2026
================
@@ -1240,14 +1241,16 @@ def MapInfoOp : OpenMP_Op<"map.info", [AttrSizedOperandSegments]> {
Description of arguments:
- `var_ptr`: The address of variable to copy.
- - `var_type`: The type of the variable to copy.
+ - `var_ptr_type`: The type of the var_ptr variable to copy.
- 'map_type': OpenMP map type for this map capture, for example: from, to and
always. It's a bitfield composed of the OpenMP runtime flags stored in
OpenMPOffloadMappingFlags.
- 'map_capture_type': Capture type for the variable e.g. this, byref, byvalue, byvla
this can affect how the variable is lowered.
- `var_ptr_ptr`: Used when the variable copied is a member of a class, structure
- or derived type and refers to the originating struct.
+ or derived type and refers to the originating struct.
+ - `var_ptr_ptr_type`: Used when the variable copied is a member of a class, structure
+ or derived type and refers to the originating struct type
----------------
bhandarkar-pranav wrote:
Also, I think we should mention here that either both `var_ptr_ptr` and `var_ptr_ptr_type` should be present or neither should be.
https://github.com/llvm/llvm-project/pull/177302
More information about the llvm-branch-commits
mailing list