[llvm] [NVPTX] Add syncscope support for cmpxchg (PR #140812)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 09:33:37 PDT 2025


================
@@ -303,6 +304,7 @@ bool AtomicExpandImpl::processAtomicInstr(Instruction *I) {
 
   if (TLI->shouldInsertFencesForAtomic(I)) {
     auto FenceOrdering = AtomicOrdering::Monotonic;
+    SyncScope::ID SSID = SyncScope::System;
----------------
gonzalobg wrote:

I find how this value is overridden below and then reused a bit too subtle, but I don't have a concrete proposal on how to improve this.

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


More information about the llvm-commits mailing list