LLVM API Documentation
#include <X86Disassembler.h>
Public Member Functions | |
X86GenericDisassembler (const MCSubtargetInfo &STI, MCContext &Ctx, std::unique_ptr< const MCInstrInfo > MII) | |
DecodeStatus | getInstruction (MCInst &instr, uint64_t &size, const MemoryObject ®ion, uint64_t address, raw_ostream &vStream, raw_ostream &cStream) const override |
getInstruction - See MCDisassembler. |
X86GenericDisassembler - Generic disassembler for all X86 platforms. All each platform class should have to do is subclass the constructor, and provide a different disassemblerMode value.
Definition at line 93 of file X86Disassembler.h.
X86GenericDisassembler::X86GenericDisassembler | ( | const MCSubtargetInfo & | STI, |
MCContext & | Ctx, | ||
std::unique_ptr< const MCInstrInfo > | MII | ||
) |
Constructor - Initializes the disassembler.
Definition at line 79 of file X86Disassembler.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm_unreachable, llvm::X86Disassembler::MODE_16BIT, llvm::X86Disassembler::MODE_32BIT, and llvm::X86Disassembler::MODE_64BIT.
MCDisassembler::DecodeStatus X86GenericDisassembler::getInstruction | ( | MCInst & | instr, |
uint64_t & | size, | ||
const MemoryObject & | region, | ||
uint64_t | address, | ||
raw_ostream & | vStream, | ||
raw_ostream & | cStream | ||
) | const [override, virtual] |
getInstruction - See MCDisassembler.
Implements llvm::MCDisassembler.
Definition at line 131 of file X86Disassembler.cpp.
References llvm::MCDisassembler::CommentStream, llvm::X86Disassembler::decodeInstruction(), llvm::MCDisassembler::Fail, llvm::X86Disassembler::InternalInstruction::length, logger(), llvm::nulls(), llvm::X86Disassembler::InternalInstruction::readerCursor, regionReader(), llvm::MCDisassembler::Success, and translateInstruction().