bloqade.lanes.dialects.stack_move.NewArray
← Module overview
class
classNewArray¶source
bloqade.lanes.dialects.stack_move.NewArray
Bases: ir.Statement
Create an array.
Signature
class NewArray(values: typing.Sequence[ir.SSAValue], type_tag: int, dim0: int, dim1: int)Bytecode stack effect: doesn’t pop (empty-array placeholder). Python
construction accepts values=() in that case or a non-empty tuple
when authoring stack_move IR directly from Python.
The result type is a fully-parameterised ArrayType[ElemType, Literal[dim0], Literal[dim1]] derived from the type_tag byte
(via TYPE_TAG) and the two dimension attributes.
Parameters
| Name | Type | Description |
|---|---|---|
values | typing.Sequence[ir.SSAValue] | |
type_tag | int | |
dim0 | int | |
dim1 | int |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
traits | — | frozenset({lowering.FromPythonCall()}) | |
values | tuple[ir.SSAValue, ...] | required | |
type_tag | int | info.attribute() | |
dim0 | int | info.attribute() | |
dim1 | int | info.attribute() | |
result | ir.ResultValue | info.result(ArrayType[ElemType, Dim0Type, Dim1Type]) |