LLVM: lib/MC/MCDisassembler/MCDisassembler.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
11
12using namespace llvm;
13
15
20 return false;
21}
22
25 return 1;
26}
27
35 OpSize, InstSize);
36 return false;
37}
38
43}
44
47}
48
49#define SMC_PCASE(A, P) \
50 case XCOFF::XMC_##A: \
51 return P;
52
54 switch (SMC) {
76#undef SMC_PCASE
77 }
78 return 0;
79}
80
81
82
83
84
86
89
90
92 SymInfo.StorageMappingClass.has_value())
93 return SymInfo.StorageMappingClass.has_value();
94
98 }
99
100 return false;
101}
static uint8_t getSMCPriority(XCOFF::StorageMappingClass SMC)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Tagged union holding either a T or a Error.
virtual Expected< bool > onSymbolStart(SymbolInfoTy &Symbol, uint64_t &Size, ArrayRef< uint8_t > Bytes, uint64_t Address) const
Used to perform separate target specific disassembly for a particular symbol.
bool tryAddingSymbolicOperand(MCInst &Inst, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t OpSize, uint64_t InstSize) const
std::unique_ptr< MCSymbolizer > Symbolizer
raw_ostream * CommentStream
void setSymbolizer(std::unique_ptr< MCSymbolizer > Symzer)
Set Symzer as the current symbolizer.
void tryAddingPcLoadReferenceComment(int64_t Value, uint64_t Address) const
virtual uint64_t suggestBytesToSkip(ArrayRef< uint8_t > Bytes, uint64_t Address) const
Suggest a distance to skip in a buffer of data to find the next place to look for the start of an ins...
virtual ~MCDisassembler()
Instances of this class represent a single low-level machine instruction.
LLVM Value Representation.
StorageMappingClass
Storage Mapping Class definitions.
This is an optimization pass for GlobalISel generic memory operations.
SymInfo contains information about symbol: it's address and section index which is -1LL for absolute ...
bool operator<(const XCOFFSymbolInfoTy &SymInfo) const
The function is for symbol sorting when symbols have the same address.