[Mlir-commits] [mlir] [rfc][mlir][gpu] Add operations to extract/insert/rotate within subgroup (PR #139048)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 8 06:19:44 PDT 2025


================
@@ -1364,6 +1364,35 @@ def GPU_ShuffleOp : GPU_Op<
   ];
 }
 
+def GPU_RotateOp : GPU_Op<
+    "rotate", [Pure, AllTypesMatch<["value", "rotateResult"]>]>,
+    Arguments<(ins AnyIntegerOrFloatOr1DVector:$value, I32:$offset, I32:$width)>,
+    Results<(outs AnyIntegerOrFloatOr1DVector:$rotateResult)> {
+  let summary = "Rotate values within a subgroup.";
+  let description = [{
+    The "rotate" op moves values to a across lanes circularly (a.k.a.,
----------------
SoftwareBoi wrote:

```suggestion
    The "rotate" op moves values across lanes circularly (a.k.a.,
```
?

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


More information about the Mlir-commits mailing list