For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
registers_map
def registers_map(values: Int, lanes: Int = Int(1)) -> OperandMap
Returns a register operand: value v of lane l is register v of thread l.
Args:
- values (
Int): The registers each thread holds, a power of two. - lanes (
Int): The threads that issue the instruction together, a power of two: 1 for a per-thread instruction, 32 for a warp-collective one.
Returns:
OperandMap: A map that fixes every value and lane bit.