[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:09 PDT 2025
https://github.com/Ritanya-B-Bharadwaj created https://github.com/llvm/llvm-project/pull/146827
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
>From 88cfe56ee5b23d2e4f67bca8d145a7a8afcd14b9 Mon Sep 17 00:00:00 2001
From: Ritanya B Bharadwaj <ritanya.b.bharadwaj at gmail.com>
Date: Tue, 1 Jul 2025 10:00:06 -0500
Subject: [PATCH] [Clang][OpenMP] OpenMP self_map clause - basic runtime
---
offload/include/omptarget.h | 2 ++
1 file changed, 2 insertions(+)
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
More information about the llvm-commits
mailing list