IndexFunctionasmjit::FuncValuePack

asmjit::FuncValuePack Struct Reference [¶]

Contains multiple FuncValue instances in an array so functions that use multiple registers for arguments or return values can represent all inputs and outputs.

Member Functions

Initialization & Reset
Accessors

void FuncValuePack::reset()noexcept[¶]

Resets all values in the pack.

uint32_t FuncValuePack::count() constnodiscardnoexcept[¶]

Calculates how many values are in the pack, checking for non-values from the end.

FuncValue* FuncValuePack::values()nodiscardnoexcept[1/2][¶]

Returns values in this value in the pack.

Note

The returned array has exactly Globals::kMaxValuePack elements.

const FuncValue* FuncValuePack::values() constnodiscardnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void FuncValuePack::reset_value(
size_t index
)noexcept[¶]

Resets a value at the given index in the pack, which makes it unassigned.

bool FuncValuePack::has_value(
size_t index
)noexcept[¶]

Tests whether the value at the given index in the pack is assigned.

void FuncValuePack::assign_reg(
size_t index,
const Reg& reg,
)noexcept[1/2][¶]

Assigns a register at the given index to reg and an optional type_id.

void FuncValuePack::assign_reg(
size_t index,
RegType reg_type,
uint32_t reg_id,
)noexcept[2/2][¶]

Assigns a register at the given index to reg_type, reg_id, and an optional type_id.

void FuncValuePack::assign_stack(
size_t index,
int32_t offset,
)noexcept[¶]

Assigns a stack location at the given index to offset and an optional type_id.

FuncValue& FuncValuePack::operator[](
size_t index
)nodiscard[1/2][¶]

Accesses the value in the pack at the given index.

Note

The maximum index value is Globals::kMaxValuePack - 1.

const FuncValue& FuncValuePack::operator[](
size_t index
) constnodiscard[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

FuncValue FuncValuePack::_values[Globals::kMaxValuePack][¶]

Values of the pack.