9 #ifndef LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H 10 #define LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H 18 template <
typename T>
class ArrayRef;
22 class MCSubtargetInfo;
58 : Ctx(Ctx), STI(STI) {}
108 uint64_t Address,
bool IsBranch,
109 uint64_t
Offset, uint64_t InstSize)
const;
128 #endif // LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H This class represents lattice values for constants.
virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef< uint8_t > Bytes, uint64_t Address, raw_ostream &CStream) const =0
Returns the disassembly of a single instruction.
DecodeStatus
Ternary decode status.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Superclass for all disassemblers.
raw_ostream * CommentStream
bool tryAddingSymbolicOperand(MCInst &Inst, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t InstSize) const
void setSymbolizer(std::unique_ptr< MCSymbolizer > Symzer)
Set Symzer as the current symbolizer.
std::unique_ptr< MCSymbolizer > Symbolizer
MCDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
Context object for machine code objects.
const MCSubtargetInfo & STI
Instances of this class represent a single low-level machine instruction.
void tryAddingPcLoadReferenceComment(int64_t Value, uint64_t Address) const
virtual ~MCDisassembler()
virtual DecodeStatus onSymbolStart(StringRef Name, uint64_t &Size, ArrayRef< uint8_t > Bytes, uint64_t Address, raw_ostream &CStream) const
May parse any prelude that precedes instructions after the start of a symbol.
MCContext & getContext() const
Generic base class for all target subtargets.
LLVM Value Representation.
const MCSubtargetInfo & getSubtargetInfo() const
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.