[llvm-branch-commits] [clang] clang/AMDGPU: Set noalias.addrspace metadata on atomicrmw (PR #102462)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 8 07:50:31 PDT 2024


================
@@ -647,6 +647,14 @@ class LangOptions : public LangOptionsBase {
     return ConvergentFunctions;
   }
 
+  /// Return true if atomicrmw operations targeting allocations in private
----------------
shiltian wrote:

Do we want to have a check in target machine to tell if atomic operation on specific address space is legal? I'm thinking of adding atomic support in `AAAddressSpace`, and could drop the address space if an atomic operation in an inferred address space is not legal.

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


More information about the llvm-branch-commits mailing list