[llvm] [OpenMP] Add ATTACH map-type to OMPConstants.h, to align with omptarget.h. (PR #161791)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 23:30:23 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-openmp
Author: Abhinav Gaba (abhinavgaba)
<details>
<summary>Changes</summary>
The clang changes that use this map-type are in #<!-- -->153683.
---
Full diff: https://github.com/llvm/llvm-project/pull/161791.diff
1 Files Affected:
- (modified) llvm/include/llvm/Frontend/OpenMP/OMPConstants.h (+3)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/161791
More information about the llvm-commits
mailing list