asmjit::FuncSignature Struct Reference
Inheritance diagram for asmjit::FuncSignature:
asmjit::FuncSignatureBuilder asmjit::FuncSignatureT< RET_ARGS >

Function signature.

Contains information about function return type, count of arguments and their TypeIds. Function signature is a low level structure which doesn't contain platform specific or calling convention specific information.

Public Members


Public Types


Member Functions

Initializtion & Reset

Member Enumeration Documentation

anonymous enum : uint8_t


Doesn't have variable number of arguments (...).

Member Function Documentation

void FuncSignature::init(CallConvId ccId, uint32_t vaIndex, TypeId ret, const TypeId* args, uint32_t argCount)noexcept

Initializes the function signature.

CallConvId FuncSignature::callConvId() constnoexcept

Returns the calling convention.

void FuncSignature::setCallConvId(CallConvId ccId)noexcept

Sets the calling convention to ccId;.

bool FuncSignature::hasVarArgs() constnoexcept

Tests whether the function has variable number of arguments (...).

uint32_t FuncSignature::vaIndex() constnoexcept

Returns the variable arguments (...) index, kNoVarArgs if none.

void FuncSignature::setVaIndex(uint32_t index)noexcept

Sets the variable arguments (...) index to index.

void FuncSignature::resetVaIndex()noexcept

Resets the variable arguments index (making it a non-va function).

uint32_t FuncSignature::argCount() constnoexcept

Returns the number of function arguments.

TypeId FuncSignature::ret() constnoexcept

Returns the return value type.

TypeId FuncSignature::arg(uint32_t i) constnoexcept

Returns the type of the argument at index i.

const TypeId* FuncSignature::args() constnoexcept

Returns the array of function arguments' types.

Member Data Documentation

CallConvId FuncSignature::_ccId

Calling convention id.

uint8_t FuncSignature::_argCount

Count of arguments.

uint8_t FuncSignature::_vaIndex

Index of a first VA or kNoVarArgs.

TypeId FuncSignature::_ret

Return value TypeId.

const TypeId* FuncSignature::_args

Function arguments TypeIds.