[Mlir-commits] [mlir] [mlir][spirv] Add instruction OpGroupNonUniformRotateKHR (PR #133428)
Hsiangkai Wang
llvmlistbot at llvm.org
Wed Apr 2 01:41:13 PDT 2025
================
@@ -304,6 +304,38 @@ LogicalResult GroupNonUniformLogicalXorOp::verify() {
return verifyGroupNonUniformArithmeticOp<GroupNonUniformLogicalXorOp>(*this);
}
+//===----------------------------------------------------------------------===//
+// spirv.GroupNonUniformRotateKHR
+//===----------------------------------------------------------------------===//
+
+LogicalResult GroupNonUniformRotateKHROp::verify() {
+ spirv::Scope scope = getExecutionScope();
+ if (scope != spirv::Scope::Workgroup && scope != spirv::Scope::Subgroup)
+ return emitOpError("execution scope must be 'Workgroup' or 'Subgroup'");
+
+ if (getDelta().getType().isSignedInteger())
+ return emitOpError("delta must be a singless/unsigned integer");
+
+ auto clusterSizeVal = getClusterSize();
+ if (clusterSizeVal) {
----------------
Hsiangkai wrote:
Done.
https://github.com/llvm/llvm-project/pull/133428
More information about the Mlir-commits
mailing list