[Mlir-commits] [mlir] [mlir][spirv][gpu] Add lowering for `gpu.subgroup_broadcast` (PR #185818)
Igor Wodiany
llvmlistbot at llvm.org
Thu Mar 12 02:07:52 PDT 2026
================
@@ -135,6 +135,18 @@ LogicalResult GroupNonUniformBroadcastOp::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// spirv.GroupNonUniformBroadcastFirstOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult GroupNonUniformBroadcastFirstOp::verify() {
+ spirv::Scope scope = getExecutionScope();
+ if (scope != spirv::Scope::Workgroup && scope != spirv::Scope::Subgroup)
+ return emitOpError("execution scope must be 'Workgroup' or 'Subgroup'");
----------------
IgWod wrote:
Please make sure `spirv.GroupNonUniformBroadcastFirst` has correct constraints already in this patch and the remaining ops can be fixed as a separate PR.
https://github.com/llvm/llvm-project/pull/185818
More information about the Mlir-commits
mailing list