63 uint64_t ReferenceType;
68 const char *ReferenceName;
76 cStream << ReferenceName;
83 cStream <<
"symbol stub for: " << ReferenceName;
85 cStream <<
"Objc message: " << ReferenceName;
86 if (!Name && !IsBranch)
101 const MCExpr *Sub =
nullptr;
112 const MCExpr *Off =
nullptr;
113 if (SymbolicOp.
Value != 0)
162 const char *ReferenceName;
165 cStream <<
"literal pool symbol address: " << ReferenceName;
166 else if(ReferenceType ==
168 cStream <<
"literal pool for: \"";
172 else if(ReferenceType ==
174 cStream <<
"Objc cfstring ref: @\"" << ReferenceName <<
"\"";
175 else if(ReferenceType ==
177 cStream <<
"Objc message: " << ReferenceName;
178 else if(ReferenceType ==
180 cStream <<
"Objc message ref: " << ReferenceName;
181 else if(ReferenceType ==
183 cStream <<
"Objc selector ref: " << ReferenceName;
184 else if(ReferenceType ==
186 cStream <<
"Objc class ref: " << ReferenceName;
194 std::unique_ptr<MCRelocationInfo> &&
RelInfo) {
195 assert(Ctx &&
"No MCContext given for symbolic disassembly");
198 SymbolLookUp, DisInfo);
std::unique_ptr< MCRelocationInfo > RelInfo
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
#define LLVMDisassembler_ReferenceType_Out_Objc_Message
This class represents lattice values for constants.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static MCOperand createExpr(const MCExpr *Val)
#define LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref
MCSymbolizer * createMCSymbolizer(const Triple &TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, std::unique_ptr< MCRelocationInfo > &&RelInfo)
void * DisInfo
The pointer to the block of symbolic information for above call back.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
#define LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref
#define LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref
Base class for the full range of assembler expressions which are needed for parsing.
int(* LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, uint64_t Size, int TagType, void *TagBuf)
The type for the operand information call back function.
Context object for machine code objects.
static const MCBinaryExpr * createSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExpr * createAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
Instances of this class represent a single low-level machine instruction.
MCExternalSymbolizer(MCContext &Ctx, std::unique_ptr< MCRelocationInfo > RelInfo, LLVMOpInfoCallback getOpInfo, LLVMSymbolLookupCallback symbolLookUp, void *disInfo)
#define LLVMDisassembler_ReferenceType_In_PCrel_Load
Symbolize and annotate disassembled instructions.
#define LLVMDisassembler_ReferenceType_Out_SymbolStub
#define LLVMDisassembler_ReferenceType_InOut_None
The reference types on input and output.
struct LLVMOpInfoSymbol1 AddSymbol
struct LLVMOpInfoSymbol1 SubtractSymbol
#define LLVMDisassembler_ReferenceType_In_Branch
Triple - Helper class for working with autoconf configuration names.
static const MCUnaryExpr * createMinus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc=SMLoc())
#define LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr
raw_ostream & write_escaped(StringRef Str, bool UseHexEscapes=false)
Output Str, turning '\', '', ' ', '"', and anything that doesn't satisfy llvm::isPrint into an escape...
void tryAddingPcLoadReferenceComment(raw_ostream &CommentStream, int64_t Value, uint64_t Address) override
Try to add a comment on the PC-relative load.
bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t InstSize) override
Try to add a symbolic operand instead of Value to the MCInst.
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
#define LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
LLVMOpInfoCallback GetOpInfo
#define LLVMDisassembler_ReferenceType_DeMangled_Name
This class implements an extremely fast bulk output stream that can only output to a stream...
void addOperand(const MCOperand &Op)
StringRef - Represent a constant reference to a string, i.e.
#define LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref
const char *(* LLVMSymbolLookupCallback)(void *DisInfo, uint64_t ReferenceValue, uint64_t *ReferenceType, uint64_t ReferencePC, const char **ReferenceName)
The type for the symbol lookup function.
static const MCConstantExpr * create(int64_t Value, MCContext &Ctx)
LLVMSymbolLookupCallback SymbolLookUp
The function to lookup a symbol name.