19 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record));
26 case SymbolKind::S_GPROC32:
27 case SymbolKind::S_LPROC32:
28 case SymbolKind::S_GPROC32_ID:
29 case SymbolKind::S_LPROC32_ID:
30 case SymbolKind::S_LPROC32_DPC:
31 case SymbolKind::S_LPROC32_DPC_ID: {
35 case SymbolKind::S_BLOCK32: {
39 case SymbolKind::S_THUNK32: {
43 case SymbolKind::S_INLINESITE: {
48 assert(
false &&
"Unknown record type");
57 case SymbolKind::S_GPROC32:
58 case SymbolKind::S_LPROC32:
59 case SymbolKind::S_GPROC32_ID:
60 case SymbolKind::S_LPROC32_ID:
61 case SymbolKind::S_LPROC32_DPC:
62 case SymbolKind::S_LPROC32_DPC_ID: {
66 case SymbolKind::S_BLOCK32: {
70 case SymbolKind::S_THUNK32: {
74 case SymbolKind::S_INLINESITE: {
79 assert(
false &&
"Unknown record type");
87 CVSymbol Opener = *Symbols.at(ScopeBegin);
90 CVSymbol Closer = *Symbols.at(EndOffset);
92 return Symbols.substream(ScopeBegin, EndOffset);
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static RecordT createRecord(const CVSymbol &sym)
size_t size() const
size - Get the array size.
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
ArrayRef< uint8_t > RecordData
SymbolRecordKind
Distinguishes individual records in the Symbols subsection of a .debug$S section.
uint32_t getScopeEndOffset(const CVSymbol &Symbol)
Given a symbol P for which symbolOpensScope(P) == true, return the corresponding end offset.
uint32_t getScopeParentOffset(const CVSymbol &Symbol)
bool symbolOpensScope(SymbolKind Kind)
Return true if this symbol opens a scope.
CVSymbolArray limitSymbolArrayToScope(const CVSymbolArray &Symbols, uint32_t ScopeBegin)
This is an optimization pass for GlobalISel generic memory operations.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.