kernel.workitem.dispatch.id
← kernel dialect
Read one coordinate of the current invocation in the whole dispatch. This is the logical coordinate formed from workgroup id, workgroup size, and workitem id; target lowering may materialize it directly or derive it from lower-level launch registers.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, HasAncestor(kernel.def) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Result |
result |
index |
required |
Current workitem coordinate in the selected dispatch dimension. |
| Attribute |
dimension |
enum KernelDimension |
required |
Coordinate axis to read. |
Examples
%gid = kernel.workitem.dispatch.id<x> : index