[llvm-branch-commits] [clang] [llvm] [PowerPC] Add support for AMO store builtins (PR #170933)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 14 15:02:56 PST 2026


================
@@ -5604,3 +5611,6 @@ def : Pat<(int_ppc_dcbtt ForceXForm:$dst),
 
 def : Pat<(int_ppc_stfiw ForceXForm:$dst, f64:$XT),
           (STFIWX f64:$XT, ForceXForm:$dst)>;
+
+def : Pat<(PPCstat i32:$val, ptr_rc_nor0:$ptr, timm:$fc),
+          (STWAT $val, $ptr, $fc)>;
----------------
RolandF77 wrote:

Can you just use the underlying class XForm_base_r3xo_memOp? It kind of looks like the only purpose of the X_RD5_RS5_IM5 class it to use the other class but prevent patterns. Maybe that makes sense for the loads, which are pretty weird, but for stores patterns may be okay.

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


More information about the llvm-branch-commits mailing list