[Mlir-commits] [mlir] [mlir][spirv] Add `GroupNonUniformBallotFindLSB` and `GroupNonUniformBallotFindMSB` ops (PR #104791)

Jakub Kuderski llvmlistbot at llvm.org
Mon Aug 19 08:23:33 PDT 2024


================
@@ -83,6 +83,118 @@ def SPIRV_GroupNonUniformBallotOp : SPIRV_Op<"GroupNonUniformBallot", []> {
 
 // -----
 
+def SPIRV_GroupNonUniformBallotFindLSBOp : SPIRV_Op<"GroupNonUniformBallotFindLSB", []> {
+  let summary = [{
+    Find the least significant bit set to 1 in Value, considering only the
+    bits in Value required to represent all bits of the group's invocations.
+    If none of the considered bits is set to 1, the resulting value is
+    undefined.
+  }];
+
+  let description = [{
+    Result Type  must be a scalar of integer type, whose Signedness operand
----------------
kuhar wrote:

```suggestion
    Result Type must be a scalar of integer type, whose Signedness operand
```

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


More information about the Mlir-commits mailing list