IndexAssemblerasmjit::OperandSignature

asmjit::OperandSignature Struct Reference [¶]

Operand signature is a 32-bit number describing Operand and some of its payload.

In AsmJit operand signature is used to store additional payload of register, memory, and immediate operands. In practice the biggest pressure on OperandSignature is from BaseMem and architecture specific memory operands that need to store additional payload that cannot be stored elsewhere as values of all other members are fully specified by BaseMem.

Public Members

Members

Static Public Attributes

Constants

Member Functions

Overloaded Operators

Overloaded operators make OperandSignature behave like regular integer.

Accessors

Static Functions

Static Constructors

bool OperandSignature::isValid() constconstexprnoexcept[¶]

Tests whether the operand signature is valid (describes a valid operand, and not OperandType::kNone.

OperandType OperandSignature::opType() constconstexprnoexcept[¶]

Returns operand type this operand signature describes.

OperandSignature OperandSignature::fromBits(
uint32_t bits
)constexprstaticnoexcept[¶]

Constructs operand signature from the given bits.

template<uint32_t kFieldMask, typename T>
OperandSignature OperandSignature::fromValue(
const T& value
)constexprstaticnoexcept[¶]

Constructs operand signature from the given value, use kFieldMask to describe where the value is in the signature.

OperandSignature OperandSignature::fromOpType()constexprstaticnoexcept[¶]

Constructs operand signature describing the given operand type opType.

OperandSignature OperandSignature::fromRegType(
RegType regType
)constexprstaticnoexcept[¶]

Constructs operand signature describing the given register type regType.

OperandSignature OperandSignature::fromRegGroup(
RegGroup regGroup
)constexprstaticnoexcept[¶]

Constructs operand signature describing the given register group regGroup.

OperandSignature OperandSignature::fromRegTypeAndGroup(
RegType regType,
RegGroup regGroup
)constexprstaticnoexcept[¶]

Constructs operand signature describing both register type regType and register group regGroup.

OperandSignature OperandSignature::fromMemBaseType(
RegType baseType
)constexprstaticnoexcept[¶]

Constructs operand signature describing a memory base type baseType.

OperandSignature OperandSignature::fromMemIndexType(
RegType indexType
)constexprstaticnoexcept[¶]

Constructs operand signature describing a memory index type indexType.

OperandSignature OperandSignature::fromPredicate(
uint32_t predicate
)constexprstaticnoexcept[¶]

Constructs operand signature describing a predicate.

OperandSignature OperandSignature::fromSize(
uint32_t size
)constexprstaticnoexcept[¶]

Constructs operand signature describing a size.