/external/llvm-project/llvm/lib/DebugInfo/DWARF/ |
D | DWARFFormValue.cpp | 29 static const DWARFFormValue::FormClass DWARF5FormClasses[] = { 30 DWARFFormValue::FC_Unknown, // 0x0 31 DWARFFormValue::FC_Address, // 0x01 DW_FORM_addr 32 DWARFFormValue::FC_Unknown, // 0x02 unused 33 DWARFFormValue::FC_Block, // 0x03 DW_FORM_block2 34 DWARFFormValue::FC_Block, // 0x04 DW_FORM_block4 35 DWARFFormValue::FC_Constant, // 0x05 DW_FORM_data2 37 DWARFFormValue::FC_Constant, // 0x06 DW_FORM_data4 38 DWARFFormValue::FC_Constant, // 0x07 DW_FORM_data8 40 DWARFFormValue::FC_String, // 0x08 DW_FORM_string [all …]
|
D | DWARFDie.cpp | 72 static void dumpLocation(raw_ostream &OS, DWARFFormValue &FormValue, in dumpLocation() 77 if (FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocation() 78 FormValue.isFormClass(DWARFFormValue::FC_Exprloc)) { in dumpLocation() 87 if (FormValue.isFormClass(DWARFFormValue::FC_SectionOffset)) { in dumpLocation() 122 if (Optional<DWARFFormValue> L = C.find(DW_AT_lower_bound)) in dumpArrayType() 124 if (Optional<DWARFFormValue> CountV = C.find(DW_AT_count)) in dumpArrayType() 126 if (Optional<DWARFFormValue> UpperV = C.find(DW_AT_upper_bound)) in dumpArrayType() 128 if (Optional<DWARFFormValue> LV = in dumpArrayType() 247 DWARFFormValue FormValue = DWARFFormValue::createFromUnit(Form, U, OffsetPtr); in dumpAttribute() 287 DWARFFormValue::dumpAddress(OS, U->getAddressByteSize(), HighPC); in dumpAttribute() [all …]
|
D | DWARFAddressRange.cpp | 21 DWARFFormValue::dumpAddress(OS, AddressSize, LowPC); in dump() 23 DWARFFormValue::dumpAddress(OS, AddressSize, HighPC); in dump() 27 DWARFFormValue::dumpAddressSection(*Obj, OS, DumpOpts, SectionIndex); in dump()
|
D | DWARFAbbreviationDeclaration.cpp | 150 Optional<DWARFFormValue> DWARFAbbreviationDeclaration::getAttributeValue( in getAttributeValue() 169 DWARFFormValue::skipValue(AttributeSpecs[CurAttrIdx].Form, DebugInfoData, in getAttributeValue() 175 return DWARFFormValue::createFromSValue(Spec.Form, in getAttributeValue() 178 DWARFFormValue FormValue(Spec.Form); in getAttributeValue()
|
D | DWARFAcceleratorTable.cpp | 97 DWARFFormValue FormValue(Atom.second); in validateForms() 102 if ((!FormValue.isFormClass(DWARFFormValue::FC_Constant) && in validateForms() 103 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) || in validateForms() 121 DWARFFormValue FormValue(Atom.second); in readAtoms() 148 Optional<DWARFFormValue> Value) const { in extractOffset() 165 SmallVectorImpl<DWARFFormValue> &AtomForms, in dumpName() 213 SmallVector<DWARFFormValue, 3> AtomForms; in dump() 221 AtomForms.push_back(DWARFFormValue(Atom.second)); in dump() 264 Values.push_back(DWARFFormValue(Atom.second)); in Entry() 276 Optional<DWARFFormValue> [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/ |
D | DWARFFormValue.cpp | 29 static const DWARFFormValue::FormClass DWARF5FormClasses[] = { 30 DWARFFormValue::FC_Unknown, // 0x0 31 DWARFFormValue::FC_Address, // 0x01 DW_FORM_addr 32 DWARFFormValue::FC_Unknown, // 0x02 unused 33 DWARFFormValue::FC_Block, // 0x03 DW_FORM_block2 34 DWARFFormValue::FC_Block, // 0x04 DW_FORM_block4 35 DWARFFormValue::FC_Constant, // 0x05 DW_FORM_data2 37 DWARFFormValue::FC_Constant, // 0x06 DW_FORM_data4 38 DWARFFormValue::FC_Constant, // 0x07 DW_FORM_data8 40 DWARFFormValue::FC_String, // 0x08 DW_FORM_string [all …]
|
D | DWARFDie.cpp | 72 static void dumpLocation(raw_ostream &OS, DWARFFormValue &FormValue, in dumpLocation() 77 if (FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocation() 78 FormValue.isFormClass(DWARFFormValue::FC_Exprloc)) { in dumpLocation() 87 if (FormValue.isFormClass(DWARFFormValue::FC_SectionOffset)) { in dumpLocation() 123 if (Optional<DWARFFormValue> L = C.find(DW_AT_lower_bound)) in dumpArrayType() 125 if (Optional<DWARFFormValue> CountV = C.find(DW_AT_count)) in dumpArrayType() 127 if (Optional<DWARFFormValue> UpperV = C.find(DW_AT_upper_bound)) in dumpArrayType() 129 if (Optional<DWARFFormValue> LV = in dumpArrayType() 248 DWARFFormValue FormValue = DWARFFormValue::createFromUnit(Form, U, OffsetPtr); in dumpAttribute() 312 DWARFFormValue FV = DWARFFormValue::createFromUValue( in dumpAttribute() [all …]
|
D | DWARFAbbreviationDeclaration.cpp | 150 Optional<DWARFFormValue> DWARFAbbreviationDeclaration::getAttributeValue( in getAttributeValue() 167 return DWARFFormValue::createFromSValue(Spec.Form, in getAttributeValue() 170 DWARFFormValue FormValue(Spec.Form); in getAttributeValue() 178 DWARFFormValue::skipValue(Spec.Form, DebugInfoData, &Offset, in getAttributeValue()
|
D | DWARFAcceleratorTable.cpp | 97 DWARFFormValue FormValue(Atom.second); in validateForms() 102 if ((!FormValue.isFormClass(DWARFFormValue::FC_Constant) && in validateForms() 103 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) || in validateForms() 121 DWARFFormValue FormValue(Atom.second); in readAtoms() 148 Optional<DWARFFormValue> Value) const { in extractOffset() 165 SmallVectorImpl<DWARFFormValue> &AtomForms, in dumpName() 213 SmallVector<DWARFFormValue, 3> AtomForms; in dump() 221 AtomForms.push_back(DWARFFormValue(Atom.second)); in dump() 264 Values.push_back(DWARFFormValue(Atom.second)); in Entry() 276 Optional<DWARFFormValue> [all …]
|
/external/llvm/unittests/DebugInfo/DWARF/ |
D | DWARFFormValueTest.cpp | 23 TEST(DWARFFormValue, FixedFormSizes) { in TEST() argument 26 ArrayRef<uint8_t> sizes = DWARFFormValue::getFixedFormSizes(4, 2); in TEST() 28 sizes = DWARFFormValue::getFixedFormSizes(8, 2); in TEST() 30 sizes = DWARFFormValue::getFixedFormSizes(8, 3); in TEST() 33 EXPECT_EQ(0U, DWARFFormValue::getFixedFormSizes(16, 2).size()); in TEST() 36 bool isFormClass(uint16_t Form, DWARFFormValue::FormClass FC) { in isFormClass() 37 return DWARFFormValue(Form).isFormClass(FC); in isFormClass() 40 TEST(DWARFFormValue, FormClass) { in TEST() argument 41 EXPECT_TRUE(isFormClass(DW_FORM_addr, DWARFFormValue::FC_Address)); in TEST() 42 EXPECT_FALSE(isFormClass(DW_FORM_data8, DWARFFormValue::FC_Address)); in TEST() [all …]
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFFormValue.cpp | 66 ArrayRef<uint8_t> DWARFFormValue::getFixedFormSizes(uint8_t AddrSize, in getFixedFormSizes() 80 static const DWARFFormValue::FormClass DWARF4FormClasses[] = { 81 DWARFFormValue::FC_Unknown, // 0x0 82 DWARFFormValue::FC_Address, // 0x01 DW_FORM_addr 83 DWARFFormValue::FC_Unknown, // 0x02 unused 84 DWARFFormValue::FC_Block, // 0x03 DW_FORM_block2 85 DWARFFormValue::FC_Block, // 0x04 DW_FORM_block4 86 DWARFFormValue::FC_Constant, // 0x05 DW_FORM_data2 88 DWARFFormValue::FC_Constant, // 0x06 DW_FORM_data4 89 DWARFFormValue::FC_Constant, // 0x07 DW_FORM_data8 [all …]
|
D | DWARFDebugInfoEntry.cpp | 131 DWARFFormValue formValue(form); in dumpAttribute() 203 ArrayRef<uint8_t> FixedFormSizes = DWARFFormValue::getFixedFormSizes( in extractFast() 215 else if (!DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, U)) { in extractFast() 235 const DWARFUnit *U, const uint16_t Attr, DWARFFormValue &FormValue) const { in getAttributeValue() 251 DWARFFormValue::skipValue(AbbrevDecl->getFormByIndex(i), in getAttributeValue() 255 FormValue = DWARFFormValue(AbbrevDecl->getFormByIndex(AttrIdx)); in getAttributeValue() 261 DWARFFormValue FormValue; in getAttributeValueAsString() 270 DWARFFormValue FormValue; in getAttributeValueAsAddress() 279 DWARFFormValue FormValue; in getAttributeValueAsUnsignedConstant() 288 DWARFFormValue FormValue; in getAttributeValueAsReference() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFFormValue.h | 26 class DWARFFormValue { 62 DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {} in DWARFFormValue() function 65 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form() 67 static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V); 68 static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V); 69 static DWARFFormValue createFromPValue(dwarf::Form F, const char *V); 70 static DWARFFormValue createFromBlockValue(dwarf::Form F, 72 static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit, 133 return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params); in skipValue() 161 inline Optional<const char *> toString(const Optional<DWARFFormValue> &V) { in toString() [all …]
|
D | DWARFAcceleratorTable.h | 40 SmallVector<DWARFFormValue, 3> Values; 66 ArrayRef<DWARFFormValue> getValues() const { return Values; } in getValues() 102 Optional<uint64_t> extractOffset(Optional<DWARFFormValue> Value) const; 111 bool dumpName(ScopedPrinter &W, SmallVectorImpl<DWARFFormValue> &AtomForms, 137 Optional<DWARFFormValue> lookup(HeaderData::AtomType Atom) const; 313 Optional<DWARFFormValue> lookup(dwarf::Index Index) const;
|
D | DWARFDie.h | 142 Optional<DWARFFormValue> find(dwarf::Attribute Attr) const; 155 Optional<DWARFFormValue> find(ArrayRef<dwarf::Attribute> Attrs) const; 166 Optional<DWARFFormValue> 183 DWARFDie getAttributeValueAsReferencedDie(const DWARFFormValue &V) const;
|
/external/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFFormValue.h | 26 class DWARFFormValue { 64 DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {} in DWARFFormValue() function 67 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form() 69 static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V); 70 static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V); 71 static DWARFFormValue createFromPValue(dwarf::Form F, const char *V); 72 static DWARFFormValue createFromBlockValue(dwarf::Form F, 74 static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit, 138 return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params); in skipValue() 166 inline Optional<const char *> toString(const Optional<DWARFFormValue> &V) { in toString() [all …]
|
D | DWARFAcceleratorTable.h | 40 SmallVector<DWARFFormValue, 3> Values; 66 ArrayRef<DWARFFormValue> getValues() const { return Values; } in getValues() 102 Optional<uint64_t> extractOffset(Optional<DWARFFormValue> Value) const; 111 bool dumpName(ScopedPrinter &W, SmallVectorImpl<DWARFFormValue> &AtomForms, 137 Optional<DWARFFormValue> lookup(HeaderData::AtomType Atom) const; 309 Optional<DWARFFormValue> lookup(dwarf::Index Index) const;
|
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
D | DWARFFormValueTest.cpp | 23 bool isFormClass(dwarf::Form Form, DWARFFormValue::FormClass FC) { in isFormClass() 24 return DWARFFormValue(Form).isFormClass(FC); in isFormClass() 27 TEST(DWARFFormValue, FormClass) { in TEST() argument 28 EXPECT_TRUE(isFormClass(DW_FORM_addr, DWARFFormValue::FC_Address)); in TEST() 29 EXPECT_FALSE(isFormClass(DW_FORM_data8, DWARFFormValue::FC_Address)); in TEST() 30 EXPECT_TRUE(isFormClass(DW_FORM_data8, DWARFFormValue::FC_Constant)); in TEST() 31 EXPECT_TRUE(isFormClass(DW_FORM_data8, DWARFFormValue::FC_SectionOffset)); in TEST() 33 isFormClass(DW_FORM_sec_offset, DWARFFormValue::FC_SectionOffset)); in TEST() 34 EXPECT_TRUE(isFormClass(DW_FORM_GNU_str_index, DWARFFormValue::FC_String)); in TEST() 35 EXPECT_TRUE(isFormClass(DW_FORM_GNU_addr_index, DWARFFormValue::FC_Address)); in TEST() [all …]
|
/external/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
D | DWARFFormValue.cpp | 24 void DWARFFormValue::Clear() { in Clear() 30 bool DWARFFormValue::ExtractValue(const DWARFDataExtractor &data, in ExtractValue() 190 DWARFFormValue::GetFixedSize(dw_form_t form, const DWARFUnit *u) { in GetFixedSize() 198 llvm::Optional<uint8_t> DWARFFormValue::GetFixedSize() const { in GetFixedSize() 202 bool DWARFFormValue::SkipValue(const DWARFDataExtractor &debug_info_data, in SkipValue() 204 return DWARFFormValue::SkipValue(m_form, debug_info_data, offset_ptr, m_unit); in SkipValue() 207 bool DWARFFormValue::SkipValue(dw_form_t form, in SkipValue() 322 return DWARFFormValue::SkipValue(indirect_form, debug_info_data, offset_ptr, in SkipValue() 332 void DWARFFormValue::Dump(Stream &s) const { in Dump() 456 const char *DWARFFormValue::AsCString() const { in AsCString() [all …]
|
D | DWARFFormValue.h | 20 class DWARFFormValue { 41 DWARFFormValue() = default; 42 DWARFFormValue(const DWARFUnit *unit) : m_unit(unit) {} in DWARFFormValue() function 43 DWARFFormValue(const DWARFUnit *unit, dw_form_t form) in DWARFFormValue() function 78 static int Compare(const DWARFFormValue &a, const DWARFFormValue &b);
|
D | DWARFAttribute.h | 22 DWARFFormValue::ValueType value) in DWARFAttribute() 32 DWARFFormValue::ValueType &val) const { in get() 47 DWARFFormValue::ValueType m_value; 65 bool ExtractFormValueAtIndex(uint32_t i, DWARFFormValue &form_value) const;
|
D | DWARFDebugInfoEntry.cpp | 73 DWARFFormValue::GetFixedSize(form, cu); in Extract() 206 const DWARFFormValue &value) { in GetRangesOrReportError() 252 DWARFFormValue form_value(cu); in GetDIENamesAndRanges() 413 DWARFFormValue form_value(cu); in GetAttributes() 445 llvm::Optional<uint8_t> fixed_skip_size = DWARFFormValue::GetFixedSize(form, cu); in GetAttributes() 449 DWARFFormValue::SkipValue(form, data, &offset, cu); in GetAttributes() 465 const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &form_value, in GetAttributeValue() 477 DWARFFormValue::SkipValue(abbrevDecl->GetFormByIndex(idx++), in GetAttributeValue() 524 DWARFFormValue form_value; in GetAttributeValueAsString() 537 DWARFFormValue form_value; in GetAttributeValueAsUnsigned() [all …]
|
D | DWARFAttribute.cpp | 31 cu, attr_die_offset, {attr, form, DWARFFormValue::ValueType()}}; in Append() 36 uint32_t i, DWARFFormValue &form_value) const { in ExtractFormValueAtIndex() 54 DWARFFormValue form_value; in FormValueAsReferenceAtIndex()
|
D | DWARFASTParserClang.h | 244 DWARFFormValue abstract_origin; 245 DWARFFormValue containing_type; 246 DWARFFormValue signature; 247 DWARFFormValue specification; 248 DWARFFormValue type;
|
/external/llvm-project/llvm/include/llvm/DWARFLinker/ |
D | DWARFLinker.h | 514 const DWARFFormValue &RefValue, 613 const DWARFFormValue &Val, 621 const DWARFFormValue &Val, const DWARFUnit &U, 631 const DWARFFormValue &Val, 645 const DWARFFormValue &Val, unsigned AttrSize, 652 const DWARFFormValue &Val, 661 const DWARFFormValue &Val, unsigned AttrSize,
|