[Mlir-commits] [mlir] [mlir] Support ROCDL::ReadlaneOp (PR #116593)

Krzysztof Drewniak llvmlistbot at llvm.org
Mon Nov 18 09:02:39 PST 2024


================
@@ -197,6 +197,26 @@ def ROCDL_BallotOp :
   let assemblyFormat = "$pred attr-dict `:` type($res)";
 }
 
+def ROCDL_ReadlaneOp : ROCDL_Op<"readlane">,
+  Results<(outs LLVM_Type:$res)>,
+  Arguments<(ins LLVM_Type:$src0,
+                 I32:$src1)> {
+  let summary = "Get the value in the specific lane";
+
+  let description = [{
+    Get the value in lane `src1` from input `src0`.
+  }];
+
+  string llvmBuilder = [{
----------------
krzysz00 wrote:

Can we use the `ROCDL_IntrOp` infrastructure? It'll allow round-tripping if someone gets around to that

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


More information about the Mlir-commits mailing list