[llvm] [NVPTX] Add syncscope support for cmpxchg (PR #140812)
Akshay Deodhar via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 13:48:38 PDT 2025
================
@@ -303,6 +304,7 @@ bool AtomicExpandImpl::processAtomicInstr(Instruction *I) {
if (TLI->shouldInsertFencesForAtomic(I)) {
auto FenceOrdering = AtomicOrdering::Monotonic;
+ SyncScope::ID SSID = SyncScope::System;
----------------
akshayrdeodhar wrote:
Removed the API- the scope of the fence will be exactly the same as the scope of the cas- so the fence APIs can infer the scope of the fence directly.
https://github.com/llvm/llvm-project/pull/140812
More information about the llvm-commits
mailing list