IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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.

Was this page helpful?