[Mlir-commits] [mlir] [mlir][gpu] Add `gpu.subgroup_uniform` op (PR #157743)

Jianhui Li llvmlistbot at llvm.org
Thu Sep 11 10:09:52 PDT 2025


================
@@ -3255,4 +3255,37 @@ def GPU_SubgroupBroadcastOp : GPU_Op<"subgroup_broadcast",
   let hasVerifier = 1;
 }
 
+def GPU_SubgroupUniformOp : GPU_Op<"subgroup_uniform",
----------------
Jianhui-Li wrote:

Consider 
      assume_uniform @scope=subgroup %uniform_val? 

Rational: 1) prefix assume* imply compiler hint, to be consistent with other dialects like memref.assume*. 2) simpler, avoid confusion as shown in the discussion below.  3) extensible scope for potential needs. 


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


More information about the Mlir-commits mailing list