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

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 14:53:36 PDT 2025


================
@@ -2111,9 +2132,9 @@ multiclass F_ATOMIC_2<RegTyInfo t, string sem_str, string as_str, string op_str,
 }
 
 // has 3 operands
-multiclass F_ATOMIC_3<RegTyInfo t, string sem_str, string as_str, string op_str,
-                      SDPatternOperator op, list<Predicate> preds> {
-  defvar asm_str = "atom" # sem_str # as_str # "." # op_str # " \t$dst, [$addr], $b, $c;";
+multiclass F_ATOMIC_3<RegTyInfo t, string sem_str, string scope_str, string as_str, 
----------------
AlexMaclean wrote:

For LD/ST instructions we keep the scope as an immediate operand with a custom printing function. I think it would be a bit cleaner to re-use this system for scope here as well. 

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


More information about the llvm-commits mailing list