[clang] clang/AMDGPU: Set noalias.addrspace metadata on atomicrmw (PR #102462)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 8 03:00:43 PDT 2024
================
@@ -647,6 +647,14 @@ class LangOptions : public LangOptionsBase {
return ConvergentFunctions;
}
+ /// Return true if atomicrmw operations targeting allocations in private
+ /// memory are undefined.
+ bool threadPrivateMemoryAtomicsAreUndefined() const {
+ // Should be false for OpenMP.
+ // TODO: Should this be true for SYCL?
----------------
arsenm wrote:
This is now derived from the builtins rather than the language mode
https://github.com/llvm/llvm-project/pull/102462
More information about the cfe-commits
mailing list