aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJessica Del <50999226+OutOfCache@users.noreply.github.com>2024-07-22 18:04:49 +0200
committerGitHub <noreply@github.com>2024-07-22 18:04:49 +0200
commitec7f8e11133ff6cd0370398ee32d684a6f857fcc (patch)
treebd0566fe92d7080866b4669bb8e80ef40c8af533 /clang/lib/CodeGen/CodeGenModule.cpp
parent4010ddf780d90c42877c9ab8d28b7e084cfe197e (diff)
downloadllvm-ec7f8e11133ff6cd0370398ee32d684a6f857fcc.zip
llvm-ec7f8e11133ff6cd0370398ee32d684a6f857fcc.tar.gz
llvm-ec7f8e11133ff6cd0370398ee32d684a6f857fcc.tar.bz2
[AMDGPU] Add intrinsic for raw atomic buffer loads (#97707)
Upstream the intrinsics `llvm.amdgcn.raw.atomic.buffer.load` and `llvm.amdgcn.raw.atomic.ptr.buffer.load`. These additional intrinsics mark atomic buffer loads as atomic to LLVM by removing the `IntrReadMem` attribute. Otherwise, it could hoist these intrinsics out of loops in cases where LLVM marks them as invariant. That can cause issues such as infinite loops. Continuation of https://reviews.llvm.org/D138786 with the additional use in the fat buffer lowering, more test cases and the additional ptr versions of these intrinsics. --------- Co-authored-by: rtayl <> Co-authored-by: Jay Foad <jay.foad@amd.com> Co-authored-by: Mariusz Sikora <mariusz.sikora@amd.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions