[llvm] [NVPTX][AtomicExpandPass] Complete support for AtomicRMW in NVPTX (PR #176015)
Akshay Deodhar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 17:11:12 PST 2026
================
@@ -2367,6 +2358,42 @@ multiclass F_ATOMIC_2<RegTyInfo t, string sem_str, string as_str, string op_str,
}
}
+multiclass F_ATOMIC_2<RegTyInfo t, SDPatternOperator op, string op_str, SDNode atomic, list<Predicate> preds = []> {
----------------
akshayrdeodhar wrote:
We'll still need to instantiate one SDNodeXForm per SDNode, because SDNodeXForm takes `SDNode opc` as an argument. There's no hierarchy of types here: each atomicrmw op, and cmpxchg all have different opcodes.
The redundant definitions to stick out- I've tried to reduce the _code_ duplication by commoning them out in a class.
https://github.com/llvm/llvm-project/pull/176015
More information about the llvm-commits
mailing list