Skip to content

Commit fc7cd65

Browse files
authored
[OpenMP] Add ATTACH map-type to OMPConstants.h, to align with omptarget.h. (#161791)
The clang changes that use this map-type are in #153683.
1 parent 21fdc72 commit fc7cd65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/Frontend/OpenMP/OMPConstants.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ enum class OpenMPOffloadMappingFlags : uint64_t {
239239
// dynamic.
240240
// This is an OpenMP extension for the sake of OpenACC support.
241241
OMP_MAP_OMPX_HOLD = 0x2000,
242+
// Attach pointer and pointee, after processing all other maps.
243+
// Applicable to map-entering directives. Does not change ref-count.
244+
OMP_MAP_ATTACH = 0x4000,
242245
/// Signal that the runtime library should use args as an array of
243246
/// descriptor_dim pointers and use args_size as dims. Used when we have
244247
/// non-contiguous list items in target update directive

0 commit comments

Comments
 (0)