aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorKevin Sala <kevin.sala@bsc.es>2023-01-08 17:35:14 +0100
committerKevin Sala <kevin.sala@bsc.es>2023-01-25 00:11:38 +0100
commit2a539ee17d8a6f0e4b99e1f8e8df593500b9154b (patch)
tree9c668160058d9c6f6ea7bed1619a7243aa4372c5 /clang/lib/CodeGen/CodeGenFunction.cpp
parentf1764d5b594ff6edbf8d17d196eb0b7a653ac0fc (diff)
downloadllvm-2a539ee17d8a6f0e4b99e1f8e8df593500b9154b.zip
llvm-2a539ee17d8a6f0e4b99e1f8e8df593500b9154b.tar.gz
llvm-2a539ee17d8a6f0e4b99e1f8e8df593500b9154b.tar.bz2
[OpenMP][libomptarget] Implement memory lock/unlock API in NextGen plugins
This patch implements the memory lock/unlock API, introduced in patch https://reviews.llvm.org/D139208, in the NextGen plugins. Locked buffers feature reference counting and we allow certain overlapping. Given an already locked buffer A, other buffers that are fully contained inside A can be locked again, even if they are smaller than A. In this case, the reference count of locked buffer A will be incremented. However, extending an existing locked buffer is not allowed. The original buffer is actually unlocked once all its users have released the locked buffer and sub-buffers (i.e., the reference counter becomes zero). Differential Revision: https://reviews.llvm.org/D141227
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions