[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 3 06:03:43 PDT 2025
================
@@ -236,6 +236,8 @@ enum class OpenMPOffloadMappingFlags : uint64_t {
// dynamic.
// This is an OpenMP extension for the sake of OpenACC support.
OMP_MAP_OMPX_HOLD = 0x2000,
+ /// Self directs mapping without creating a separate device copy.
+ OMP_MAP_SELF = 0x4000,
----------------
kparzysz wrote:
Whoever generates the mappings has to guarantee that they are correct. The OMP_MAP_LITERAL is just a mechanism to pass the pointer[1] without any modifications.
Is the OMP_MAP_SELF a part of some bigger plan? Are you planning to add more reviewers? I'd like to see what others think about this.
[1] It doesn't have to be a pointer, just something that fits in a register.
https://github.com/llvm/llvm-project/pull/134131
More information about the llvm-commits
mailing list