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.

Public Members

Members

Member Functions

Initialization & Reset
Accessors

Member Function Documentation

void FuncValuePack::reset()noexcept◆ 

Resets all values in the pack.

uint32_t FuncValuePack::count() constnoexcept◆ 

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

FuncValue* FuncValuePack::values()noexcept[1/2]◆ 

Returns values in this value in the pack.

Note
The returned array has exactly Globals::kMaxValuePack elements.

const FuncValue* FuncValuePack::values() constnoexcept[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::resetValue(size_t index)noexcept◆ 

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

bool FuncValuePack::hasValue(size_t index)noexcept◆ 

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

void FuncValuePack::assignReg(size_t index, const BaseReg& reg, TypeId typeId = TypeId::kVoid)noexcept[1/2]◆ 

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

void FuncValuePack::assignReg(size_t index, RegType regType, uint32_t regId, TypeId typeId = TypeId::kVoid)noexcept[2/2]◆ 

Assigns a register at the given index to regType, regId, and an optional typeId.

void FuncValuePack::assignStack(size_t index, int32_t offset, TypeId typeId = TypeId::kVoid)noexcept◆ 

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

FuncValue& FuncValuePack::operator[](size_t index)[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) const[2/2]◆ 

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

Member Data Documentation

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

Values of the pack.