[Mlir-commits] [mlir] [mlir][ROCDL] Add synchronization primitives (#1077) (PR #80888)

Krzysztof Drewniak llvmlistbot at llvm.org
Tue Feb 6 11:00:13 PST 2024


================
@@ -192,6 +192,18 @@ def ROCDL_BarrierOp : ROCDL_Op<"barrier"> {
   let assemblyFormat = "attr-dict";
 }
 
+def ROCDL_SetPrioOp : ROCDL_IntrOp<"s.setprio", [], [], [], 0>,
+  Arguments<(ins I16:$priority)> {
+  let results = (outs);
+  let assemblyFormat = "$priority attr-dict";
+}
+
+def ROCDL_SchedBarrier : ROCDL_IntrOp<"sched.barrier", [], [], [], 0>,
+  Arguments<(ins I32:$mask)> {
----------------
krzysz00 wrote:

Wait, hold on a minute, this is an "ImmArg", it should be an attribute.

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


More information about the Mlir-commits mailing list