[Mlir-commits] [mlir] [mlir][spirv][gpu] Add lowering for `gpu.subgroup_broadcast` (PR #185818)

Igor Wodiany llvmlistbot at llvm.org
Wed Mar 11 02:00:49 PDT 2026


================
@@ -269,6 +269,55 @@ def SPIRV_GroupNonUniformBroadcastOp : SPIRV_Op<"GroupNonUniformBroadcast",
 
 // -----
 
+def SPIRV_GroupNonUniformBroadcastFirstOp : SPIRV_Op<"GroupNonUniformBroadcastFirst",
+  [Pure, AllTypesMatch<["value", "result"]>]> {
+  let summary = [{
+    Result is the Value of the invocation from the active invocations with 
+    the lowest id in the group to all active invocations in the group.
----------------
IgWod wrote:

I think we should follow the language in the spec more closely here and use "Execution scope" rather than "group".

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


More information about the Mlir-commits mailing list