asmjit::InstAPI Namespace Reference

Instruction API.

Functions

Function Documentation

Error InstAPI::instIdToString(Arch arch, InstId instId, String& output)noexcept◆ 

Appends the name of the instruction specified by instId and instOptions into the output string.

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

InstId InstAPI::stringToInstId(Arch arch, const char* s, size_t len)noexcept◆ 

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 opCount, ValidationFlags validationFlags = ValidationFlags::kNone)noexcept◆ 

Validates the given instruction considering the given validationFlags.

Error InstAPI::queryRWInfo(Arch arch, const BaseInst& inst, const Operand_* operands, size_t opCount, InstRWInfo* out)noexcept◆ 

Gets Read/Write information of the given instruction.

Error InstAPI::queryFeatures(Arch arch, const BaseInst& inst, const Operand_* operands, size_t opCount, CpuFeatures* out)noexcept◆ 

Gets CPU features required by the given instruction.