[llvm] [AMDGPU] Extend wave reduce intrinsics for i32 type (PR #126469)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 05:40:23 PST 2025


================
@@ -277,16 +277,31 @@ def : GCNPat <(vt (int_amdgcn_set_inactive vt:$src, vt:$inactive)),
 def : GCNPat<(i32 (int_amdgcn_set_inactive_chain_arg i32:$src, i32:$inactive)),
     (V_SET_INACTIVE_B32 0, VGPR_32:$src, 0, VGPR_32:$inactive, (IMPLICIT_DEF))>;
 
-let usesCustomInserter = 1, hasSideEffects = 0, mayLoad = 0, mayStore = 0, Uses = [EXEC] in {
-  def WAVE_REDUCE_UMIN_PSEUDO_U32 : VPseudoInstSI <(outs SGPR_32:$sdst),
-    (ins VSrc_b32: $src, VSrc_b32:$strategy),
-    [(set i32:$sdst, (int_amdgcn_wave_reduce_umin i32:$src, i32:$strategy))]> {
+// clang-format off
----------------
jhuber6 wrote:

There were some recent changes that made tablegen get formatted by `clang-format`. It's sometimes annoying but at least the github action won't complain if you ignore it.

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


More information about the llvm-commits mailing list