[llvm] [RISCV][GlobalISel] Legalize and select G_ATOMICRMW_ADD instruction (PR #153791)

Kane Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 11:21:18 PDT 2025


================
@@ -729,6 +736,21 @@ bool RISCVLegalizerInfo::legalizeIntrinsic(LegalizerHelper &Helper,
     MI.eraseFromParent();
     return true;
   }
+
+  case Intrinsic::riscv_masked_atomicrmw_add_i32:
----------------
ReVe1uv wrote:

Thanks for letting me know! I'll wait for [#154845 ](https://github.com/llvm/llvm-project/pull/154845)to be merged and will update this PR accordingly.

> I decided to do #154845 instead of #154805. So now there will only be one set of intrinsics shared for i32 and i64.
> 
> > should the cases for riscv_masked_atomicrmw_*_i32/i64 in RISCVLegalizerInfo::legalizeIntrinsic simply return true?
> 
> Yes



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


More information about the llvm-commits mailing list