[llvm] [Clang][OpenMP] OpenMP self_map clause - basic runtime (PR #146827)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 00:49:50 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: None (Ritanya-B-Bharadwaj)

<details>
<summary>Changes</summary>

Basic runtime support for self maps in map and requirement clause [Sections 7.9.6 and 10.5.1.6 in OpenMP 6.0 spec].
Patch 1 - https://github.com/llvm/llvm-project/pull/129888
Patch 2 - https://github.com/llvm/llvm-project/pull/134131

---
Full diff: https://github.com/llvm/llvm-project/pull/146827.diff


1 Files Affected:

- (modified) offload/include/omptarget.h (+2) 


``````````diff
diff --git a/offload/include/omptarget.h b/offload/include/omptarget.h
index 6971780c7bdb5..935954b22a1f0 100644
--- a/offload/include/omptarget.h
+++ b/offload/include/omptarget.h
@@ -80,6 +80,8 @@ enum tgt_map_type {
   // the structured region
   // This is an OpenMP extension for the sake of OpenACC support.
   OMP_TGT_MAPTYPE_OMPX_HOLD       = 0x2000,
+  // do a self map
+  OMP_TGT_MAPTYPE_SELF            = 0x4000,
   // descriptor for non-contiguous target-update
   OMP_TGT_MAPTYPE_NON_CONTIG      = 0x100000000000,
   // member of struct, member given by [16 MSBs] - 1

``````````

</details>


https://github.com/llvm/llvm-project/pull/146827


More information about the llvm-commits mailing list