[llvm] fc7cd65 - [OpenMP] Add ATTACH map-type to OMPConstants.h, to align with omptarget.h. (#161791)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 12:34:43 PDT 2025


Author: Abhinav Gaba
Date: 2025-10-06T12:34:40-07:00
New Revision: fc7cd65495fdb2b90f144c729b99f05ad9d82914

URL: https://github.com/llvm/llvm-project/commit/fc7cd65495fdb2b90f144c729b99f05ad9d82914
DIFF: https://github.com/llvm/llvm-project/commit/fc7cd65495fdb2b90f144c729b99f05ad9d82914.diff

LOG: [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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h b/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
index 6e1bce12af8e4..7bec7e0c6736d 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
@@ -239,6 +239,9 @@ enum class OpenMPOffloadMappingFlags : uint64_t {
   // dynamic.
   // This is an OpenMP extension for the sake of OpenACC support.
   OMP_MAP_OMPX_HOLD = 0x2000,
+  // Attach pointer and pointee, after processing all other maps.
+  // Applicable to map-entering directives. Does not change ref-count.
+  OMP_MAP_ATTACH = 0x4000,
   /// Signal that the runtime library should use args as an array of
   /// descriptor_dim pointers and use args_size as dims. Used when we have
   /// non-contiguous list items in target update directive


        


More information about the llvm-commits mailing list