API reference
python:irx:irx.builder.lowering.BufferVisitorMixin.lower_buffer_byte_offset
method lower_buffer_byte_offset
lower_buffer_byte_offset(view: ir.Value, indices: list[ir.Value], *, index_nodes: list[astx.AST], node: astx.AST, element_size: int = 1, bounds_policy: BufferIndexBoundsPolicy = BufferIndexBoundsPolicy.DEFAULT) -> ir.Value
Source: packages/irx/src/irx/builder/lowering/buffer.py:332
Declared as: python:irx:irx.builder.lowering.buffer.BufferVisitorMixin.lower_buffer_byte_offset
Lower one buffer view indexed access to a byte offset.
Parameters
-
view — Type: ir.Value
-
indices — Type: list[ir.Value]
-
index_nodes — Type: list[astx.AST]
-
node — Type: astx.AST
-
element_size — Type: int
-
bounds_policy — Type: BufferIndexBoundsPolicy
Returns
Type: ir.Value