IndexInstruction DBasmjit::InstAPI

asmjit::InstAPI Namespace Reference [¶]

Instruction API.

Functions

Error InstAPI::inst_id_to_string(
Arch arch,
InstId inst_id,
String& output
)noexcept[¶]

Appends the name of the instruction specified by inst_id and options into the output string.

Note

Instruction options would only affect instruction prefix & suffix, other options would be ignored. If inst_options is zero then only raw instruction name (without any additional text) will be appended.

InstId InstAPI::string_to_inst_id(
Arch arch,
const char* s,
size_t len
)nodiscardnoexcept[¶]

Parses an instruction name in the given string s. Length is specified by len argument, which can be SIZE_MAX if s is known to be null terminated.

Returns the parsed instruction id or BaseInst::kIdNone if no such instruction exists.

Error InstAPI::validate(
Arch arch,
const BaseInst& inst,
const Operand_* operands,
size_t op_count,
)nodiscardnoexcept[¶]

Validates the given instruction considering the given validation_flags.

Error InstAPI::query_rw_info(
Arch arch,
const BaseInst& inst,
const Operand_* operands,
size_t op_count,
)noexcept[¶]

Gets Read/Write information of the given instruction.

Error InstAPI::query_features(
Arch arch,
const BaseInst& inst,
const Operand_* operands,
size_t op_count,
)noexcept[¶]

Gets CPU features required by the given instruction.