[clang] [llvm] [AMDGPU] Add an option to disable unsafe uses of atomic xor (PR #69229)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 29 03:39:57 PST 2024
arsenm wrote:
> In this case, MMRAs would only help in the sense that you won't need any new attributes and can just add an MMRA such as `atomic-lowering:fine-grained`. It's not really what MMRAs were made for (because this attribute doesn't affect semantics, just lowering style I think?),
It is semantics. You get undefined behavior if you access fine grained memory for an atomic where the instruction doesn't handle it. I don't think it quite fits into the MMRA box, since it isn't about the synchronization properties of the memory access but where the underlying memory is
https://github.com/llvm/llvm-project/pull/69229
More information about the cfe-commits
mailing list