[llvm] AMDGPU: Add codegen for atomicrmw operations usub_cond and usub_sat (PR #141068)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 07:28:06 PDT 2025
================
@@ -1089,7 +1089,34 @@ multiclass DSAtomicRetNoRetPat_mc<DS_Pseudo inst, DS_Pseudo noRetInst,
}
}
+multiclass DSAtomicRetNoRetPatCondSub_mc<DS_Pseudo inst, DS_Pseudo noRetInst,
+ ValueType vt, string frag> {
+ let OtherPredicates = [LDSRequiresM0Init] in {
+ def : DSAtomicRetPat<inst, vt,
+ !cast<PatFrag>(frag#"_local_m0_"#vt)>;
+ let OtherPredicates = [HasAtomicCSubNoRtnInsts] in
----------------
anjenner wrote:
I have removed DSAtomicRetNoRetPatCondSub_mc from the latest version of my patch as it was the same as DSAtomicRetNoRetPat_mc. I found another place in DSInstructions.md with the same issue and have just fixed that as well.
https://github.com/llvm/llvm-project/pull/141068
More information about the llvm-commits
mailing list