asmjit::BaseInst Class Reference [¶]
Instruction id, options, and extra_reg in a single structure. This structure exists mainly to simplify analysis and validation API that requires BaseInst
and Operand[]
array.
Instruction id, options, and extra_reg in a single structure. This structure exists mainly to simplify analysis and validation API that requires BaseInst
and Operand[]
array.
Creates a new BaseInst instance with id
and options
set.
Default values of id
and options
are zero, which means 'none' instruction. Such instruction is guaranteed to never exist for any architecture supported by AsmJit.
Sets the instruction id and modifiers from inst_id
.
Resets the instruction id and modifiers to zero, see kIdNone.
Returns a real instruction id that doesn't contain any modifiers.
Returns instruction options associated with this instruction.
Tests whether the given instruction option
is enabled.
Replaces all instruction options by the given options
.
Adds instruction options provided by options
.
Clears instruction options provided by options
.
Resets all instruction options to InstOptions::kNone
(there will be no instruction options active after reset).
Tests whether the instruction has associated an extra register.
Extra registers are currently only used on X86 by AVX-512 masking such as {k}
and {k}{z}
and by repeated instructions to explicitly assign a virtual register that would be ECX/RCX.
Instruction options.