[llvm] [OpenMP] Add ATTACH map-type to OMPConstants.h, to align with omptarget.h. (PR #161791)
Abhinav Gaba via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 23:29:53 PDT 2025
https://github.com/abhinavgaba created https://github.com/llvm/llvm-project/pull/161791
The clang changes that use this map-type are in #153683.
>From 2e11f78c783eb2ad38349e64aa5d7023634e7323 Mon Sep 17 00:00:00 2001
From: Abhinav Gaba <abhinav.gaba at intel.com>
Date: Thu, 2 Oct 2025 23:25:39 -0700
Subject: [PATCH] [OpenMP] Add ATTACH map-type to OMPConstants.h, to align with
omptarget.h.
---
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h | 3 +++
1 file changed, 3 insertions(+)
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