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
vector_map
def vector_map(values: Int, element_bytes: Int) -> OperandMap
Returns a memory operand of a per-lane vector access: value v is v * element_bytes bytes past the address the lane supplies.
Every lane supplies its own address, so lane bits are free; they must keep clear of the bytes one access covers.
Args:
- values (
Int): The elements one access moves, a power of two. - element_bytes (
Int): The bytes per element, a power of two.
Returns:
OperandMap: A map that fixes the value bits.