[Mlir-commits] [mlir] [mlir][rocdl] Add IR examples to OP definitions (PR #182147)
Krzysztof Drewniak
llvmlistbot at llvm.org
Wed Feb 18 17:13:11 PST 2026
================
@@ -658,23 +874,59 @@ def ROCDL_WaitAsyncmarkOp: ROCDL_ConcreteNonMemIntrOp<"wait.asyncmark", [], 0, [
def ROCDL_SetPrioOp : ROCDL_ConcreteNonMemIntrOp<"s.setprio", [], 0, [0], ["priority"]>,
Arguments<(ins I16Attr:$priority)> {
let assemblyFormat = "$priority attr-dict";
+ let description = [{
+ Set the wavefront scheduling priority.
+
+ Example:
+ ```mlir
+ // Set priority to 0.
+ rocdl.s.setprio 0
+ ```
+ }];
}
def ROCDL_SchedBarrier : ROCDL_ConcreteNonMemIntrOp<"sched.barrier", [], 0, [0],["mask"]>,
Arguments<(ins I32Attr:$mask)> {
let assemblyFormat = "$mask attr-dict";
+ let description = [{
+ Insert a scheduling barrier with the given mask.
----------------
krzysz00 wrote:
Point at where this mask is defined?
https://github.com/llvm/llvm-project/pull/182147
More information about the Mlir-commits
mailing list