[llvm-branch-commits] [llvm] AMDGPU: Expand flat atomics that may access private memory (PR #109407)

Stanislav Mekhanoshin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 23 10:40:11 PDT 2024


rampitec wrote:

> > Is it legal and defined behavior to target private memory with an atomic?
> 
> In the IR it would have to be, and this is the expected behavior in OpenMP and C++. It's UB in OpenCL, and UB in CUDA/HIP for old style atomics, but defined for new std::atomic style cases

Is there a plan that OpenCL and HIP FE will produce noalias metadata to avoid the expansion?

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


More information about the llvm-branch-commits mailing list