Skip to content

Commit e30cec1

Browse files
committed
add descriptions
1 parent 501bd7a commit e30cec1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,24 +286,52 @@ def ROCDL_BarrierWaitOp : ROCDL_ConcreteNonMemIntrOp<"s.barrier.wait", [], 0, [0
286286

287287
def ROCDL_WaitDscntOp: ROCDL_ConcreteNonMemIntrOp<"s.wait.dscnt", [], 0, [0], ["count"]>,
288288
Arguments<(ins I16Attr:$count)> {
289+
let summary = "Wait until DSCNT is less than or equal to `count`";
290+
let description = [{
291+
Wait for the counter specified to be less-than or equal-to the `count`
292+
before continuing
293+
294+
Available on gfx12+.
295+
}];
289296
let results = (outs);
290297
let assemblyFormat = "$count attr-dict";
291298
}
292299

293300
def ROCDL_WaitLoadcntOp: ROCDL_ConcreteNonMemIntrOp<"s.wait.loadcnt", [], 0, [0], ["count"]>,
294301
Arguments<(ins I16Attr:$count)> {
302+
let summary = "Wait until LOADCNT is less than or equal to `count`";
303+
let description = [{
304+
Wait for the counter specified to be less-than or equal-to the `count`
305+
before continuing
306+
307+
Available on gfx12+.
308+
}];
295309
let results = (outs);
296310
let assemblyFormat = "$count attr-dict";
297311
}
298312

299313
def ROCDL_WaitStorecntOp: ROCDL_ConcreteNonMemIntrOp<"s.wait.storecnt", [], 0, [0], ["count"]>,
300314
Arguments<(ins I16Attr:$count)> {
315+
let summary = "Wait until STORECNT is less than or equal to `count`";
316+
let description = [{
317+
Wait for the counter specified to be less-than or equal-to the `count`
318+
before continuing
319+
320+
Available on gfx12+.
321+
}];
301322
let results = (outs);
302323
let assemblyFormat = "$count attr-dict";
303324
}
304325

305326
def ROCDL_WaitExpcntOp: ROCDL_ConcreteNonMemIntrOp<"s.wait.expcnt", [], 0, [0], ["count"]>,
306327
Arguments<(ins I16Attr:$count)> {
328+
let summary = "Wait until EXPCNT is less than or equal to `count`";
329+
let description = [{
330+
Wait for the counter specified to be less-than or equal-to the `count`
331+
before continuing
332+
333+
Available on gfx12+.
334+
}];
307335
let results = (outs);
308336
let assemblyFormat = "$count attr-dict";
309337
}

0 commit comments

Comments
 (0)