Home
last modified time | relevance | path

Searched refs:DWARFFormValue (Results 1 – 25 of 31) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFFormValue.cpp30 static const DWARFFormValue::FormClass DWARF5FormClasses[] = {
31 DWARFFormValue::FC_Unknown, // 0x0
32 DWARFFormValue::FC_Address, // 0x01 DW_FORM_addr
33 DWARFFormValue::FC_Unknown, // 0x02 unused
34 DWARFFormValue::FC_Block, // 0x03 DW_FORM_block2
35 DWARFFormValue::FC_Block, // 0x04 DW_FORM_block4
36 DWARFFormValue::FC_Constant, // 0x05 DW_FORM_data2
38 DWARFFormValue::FC_Constant, // 0x06 DW_FORM_data4
39 DWARFFormValue::FC_Constant, // 0x07 DW_FORM_data8
41 DWARFFormValue::FC_String, // 0x08 DW_FORM_string
[all …]
DDWARFDie.cpp84 static void dumpLocation(raw_ostream &OS, DWARFFormValue &FormValue, in dumpLocation()
90 if (FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocation()
91 FormValue.isFormClass(DWARFFormValue::FC_Exprloc)) { in dumpLocation()
101 if (FormValue.isFormClass(DWARFFormValue::FC_SectionOffset)) { in dumpLocation()
202 DWARFFormValue formValue(Form); in dumpAttribute()
265 Optional<DWARFFormValue> Value = Die.find(DW_AT_ranges); in dumpAttribute()
269 DWARFFormValue FV(dwarf::DW_FORM_sec_offset); in dumpAttribute()
291 Optional<DWARFFormValue> DWARFDie::find(dwarf::Attribute Attr) const { in find()
300 Optional<DWARFFormValue>
314 Optional<DWARFFormValue>
[all …]
DDWARFAcceleratorTable.cpp97 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 …]
DDWARFAbbreviationDeclaration.cpp151 Optional<DWARFFormValue> DWARFAbbreviationDeclaration::getAttributeValue( in getAttributeValue()
167 DWARFFormValue FormValue(Spec.Form); in getAttributeValue()
179 DWARFFormValue::skipValue(Spec.Form, DebugInfoData, &Offset, in getAttributeValue()
DCMakeLists.txt22 DWARFFormValue.cpp
DDWARFDebugInfoEntry.cpp61 } else if (!DWARFFormValue::skipValue(AttrSpec.Form, DebugInfoData, in extractFast()
DDWARFVerifier.cpp974 DWARFFormValue::FormClass Class; in verifyNameIndexAttribute()
978 {dwarf::DW_IDX_compile_unit, DWARFFormValue::FC_Constant, {"constant"}}, in verifyNameIndexAttribute()
979 {dwarf::DW_IDX_type_unit, DWARFFormValue::FC_Constant, {"constant"}}, in verifyNameIndexAttribute()
980 {dwarf::DW_IDX_die_offset, DWARFFormValue::FC_Reference, {"reference"}}, in verifyNameIndexAttribute()
981 {dwarf::DW_IDX_parent, DWARFFormValue::FC_Constant, {"constant"}}, in verifyNameIndexAttribute()
995 if (!DWARFFormValue(AttrEnc.Form).isFormClass(Iter->Class)) { in verifyNameIndexAttribute()
1151 Optional<DWARFFormValue> Location = Die.findRecursively(DW_AT_location); in isVariableIndexable()
DDWARFDebugLine.cpp141 std::vector<DWARFFormValue> &IncludeDirectories, in parseV2DirFileTables()
147 DWARFFormValue Dir(dwarf::DW_FORM_string); in parseV2DirFileTables()
201 std::vector<DWARFFormValue> &IncludeDirectories, in parseV5DirFileTables()
215 DWARFFormValue Value(Descriptor.Form); in parseV5DirFileTables()
243 DWARFFormValue Value(Descriptor.Form); in parseV5DirFileTables()
/external/llvm/unittests/DebugInfo/DWARF/
DDWARFFormValueTest.cpp23 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/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDWARFFormValueTest.cpp23 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/lib/DebugInfo/DWARF/
DDWARFFormValue.cpp66 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 …]
DDWARFDebugInfoEntry.cpp131 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 …]
DDWARFAcceleratorTable.cpp61 SmallVector<DWARFFormValue, 3> AtomForms; in dump()
74 AtomForms.push_back(DWARFFormValue(Atom.second)); in dump()
DCMakeLists.txt15 DWARFFormValue.cpp
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h27 class DWARFFormValue {
60 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form()
120 return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params); in skipValue()
148 inline Optional<const char *> toString(const Optional<DWARFFormValue> &V) { in toString()
160 inline const char *toString(const Optional<DWARFFormValue> &V, in toString()
170 inline Optional<uint64_t> toUnsigned(const Optional<DWARFFormValue> &V) { in toUnsigned()
182 inline uint64_t toUnsigned(const Optional<DWARFFormValue> &V, in toUnsigned()
192 inline Optional<uint64_t> toReference(const Optional<DWARFFormValue> &V) { in toReference()
204 inline uint64_t toReference(const Optional<DWARFFormValue> &V, in toReference()
214 inline Optional<int64_t> toSigned(const Optional<DWARFFormValue> &V) { in toSigned()
[all …]
DDWARFAttribute.h33 DWARFFormValue Value;
50 Value = DWARFFormValue(); in clear()
DDWARFAcceleratorTable.h41 SmallVector<DWARFFormValue, 3> Values;
67 ArrayRef<DWARFFormValue> getValues() const { return Values; } in getValues()
103 Optional<uint64_t> extractOffset(Optional<DWARFFormValue> Value) const;
112 bool dumpName(ScopedPrinter &W, SmallVectorImpl<DWARFFormValue> &AtomForms,
138 Optional<DWARFFormValue> lookup(HeaderData::AtomType Atom) const;
314 Optional<DWARFFormValue> lookup(dwarf::Index Index) const;
DDWARFAbbreviationDeclaration.h24 class DWARFFormValue; variable
134 Optional<DWARFFormValue> getAttributeValue(const uint32_t DIEOffset,
DDWARFDebugLine.h37 DWARFFormValue Name;
42 DWARFFormValue Source;
96 std::vector<DWARFFormValue> IncludeDirectories;
DDWARFDie.h142 Optional<DWARFFormValue> find(dwarf::Attribute Attr) const;
155 Optional<DWARFFormValue> find(ArrayRef<dwarf::Attribute> Attrs) const;
166 Optional<DWARFFormValue>
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DDwarfLinker.h335 const DWARFFormValue &Val,
343 const DWARFFormValue &Val, const DWARFUnit &U,
353 const DWARFFormValue &Val,
361 const DWARFFormValue &Val, unsigned AttrSize);
367 const DWARFFormValue &Val,
376 const DWARFFormValue &Val, unsigned AttrSize,
DDwarfLinker.cpp124 const DWARFFormValue &RefValue, in resolveDIEReference()
127 assert(RefValue.isFormClass(DWARFFormValue::FC_Reference)); in resolveDIEReference()
522 DWARFFormValue::skipValue(Abbrev->getFormByIndex(i), Data, &Offset, in getAttributeOffsets()
526 DWARFFormValue::skipValue(Abbrev->getFormByIndex(Idx), Data, &End, in getAttributeOffsets()
706 DWARFFormValue Val(AttrSpec.Form); in keepDIEAndDependencies()
708 if (!Val.isFormClass(DWARFFormValue::FC_Reference) || in keepDIEAndDependencies()
710 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in keepDIEAndDependencies()
924 DIE &Die, AttributeSpec AttrSpec, const DWARFFormValue &Val, in cloneStringAttribute()
945 unsigned AttrSize, const DWARFFormValue &Val, const DebugMapObject &DMO, in cloneDieReferenceAttribute()
1016 const DWARFFormValue &Val, in cloneBlockAttribute()
[all …]
/external/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h22 class DWARFFormValue {
55 DWARFFormValue(uint16_t Form = 0) : Form(Form) {} in Form()
DDWARFDebugInfoEntry.h25 class DWARFFormValue; variable
90 DWARFFormValue &FormValue) const;
/external/llvm/tools/dsymutil/
DDwarfLinker.cpp1322 CompileUnit &U, const DWARFFormValue &Val,
1330 const DWARFFormValue &Val,
1340 const DWARFFormValue &Val, CompileUnit &Unit);
1346 const DWARFFormValue &Val, unsigned AttrSize);
1352 const DWARFFormValue &Val,
1361 const DWARFFormValue &Val, unsigned AttrSize,
1486 const DWARFFormValue &RefValue, const DWARFUnit &Unit, in resolveDIEReference()
1488 assert(RefValue.isFormClass(DWARFFormValue::FC_Reference)); in resolveDIEReference()
2068 DWARFFormValue::skipValue(Abbrev->getFormByIndex(i), Data, &Offset, &Unit); in getAttributeOffsets()
2071 DWARFFormValue::skipValue(Abbrev->getFormByIndex(Idx), Data, &End, &Unit); in getAttributeOffsets()
[all …]

12