Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFFormValue.cpp33 DWARFFormValue::FC_Unknown, // 0x0
83 DWARFFormValue DWARFFormValue::createFromSValue(dwarf::Form F, int64_t V) { in createFromSValue()
84 return DWARFFormValue(F, ValueType(V)); in createFromSValue()
87 DWARFFormValue DWARFFormValue::createFromUValue(dwarf::Form F, uint64_t V) { in createFromUValue()
91 DWARFFormValue DWARFFormValue::createFromPValue(dwarf::Form F, const char *V) { in createFromPValue()
95 DWARFFormValue DWARFFormValue::createFromBlockValue(dwarf::Form F, in createFromBlockValue()
100 return DWARFFormValue(F, V); in createFromBlockValue()
103 DWARFFormValue DWARFFormValue::createFromUnit(dwarf::Form F, const DWARFUnit *U, in createFromUnit()
105 DWARFFormValue FormValue(F); in createFromUnit()
215 bool DWARFFormValue::isFormClass(DWARFFormValue::FormClass FC) const { in isFormClass()
[all …]
H A DDWARFDie.cpp98 assert((FormValue.isFormClass(DWARFFormValue::FC_Block) || in dumpLocationExpr()
130 const DWARFFormValue &FormValue = AttrValue.Value; in dumpAttribute()
186 FormValue.isFormClass(DWARFFormValue::FC_Block))) in dumpAttribute()
219 DWARFFormValue FV = DWARFFormValue::createFromUValue( in dumpAttribute()
261 Optional<DWARFFormValue>
275 Optional<DWARFFormValue>
310 if (Optional<DWARFFormValue> F = find(Attr)) in getAttributeValueAsReferencedDie()
388 Optional<DWARFFormValue> Value = find(DW_AT_ranges); in getAddressRanges()
412 Optional<DWARFFormValue> Location = find(Attr); in getLocations()
687 AttrValue.Value = DWARFFormValue::createFromSValue( in updateForIndex()
[all …]
H A DDWARFAddressRange.cpp21 DWARFFormValue::dumpAddress(OS, AddressSize, LowPC); in dump()
23 DWARFFormValue::dumpAddress(OS, AddressSize, HighPC); in dump()
27 DWARFFormValue::dumpAddressSection(*Obj, OS, DumpOpts, SectionIndex); in dump()
H A DDWARFAbbreviationDeclaration.cpp162 DWARFFormValue::skipValue(AttributeSpecs[CurAttrIdx].Form, DebugInfoData, in getAttributeOffsetFromIndex()
167 Optional<DWARFFormValue>
176 return DWARFFormValue::createFromSValue(Spec.Form, in getAttributeValueFromOffset()
179 DWARFFormValue FormValue(Spec.Form); in getAttributeValueFromOffset()
186 Optional<DWARFFormValue>
H A DDWARFAcceleratorTable.cpp96 DWARFFormValue FormValue(Atom.second); in validateForms()
101 if ((!FormValue.isFormClass(DWARFFormValue::FC_Constant) && in validateForms()
102 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) || in validateForms()
120 DWARFFormValue FormValue(Atom.second); in readAtoms()
147 Optional<DWARFFormValue> Value) const { in extractOffset()
212 SmallVector<DWARFFormValue, 3> AtomForms; in dump()
220 AtomForms.push_back(DWARFFormValue(Atom.second)); in dump()
263 Values.push_back(DWARFFormValue(Atom.second)); in Entry()
275 Optional<DWARFFormValue>
295 Optional<DWARFFormValue> Tag = lookup(dwarf::DW_ATOM_die_tag); in getTag()
[all …]
H A DDWARFTypePrinter.cpp26 if (Optional<DWARFFormValue> L = C.find(DW_AT_lower_bound)) in appendArrayType()
28 if (Optional<DWARFFormValue> CountV = C.find(DW_AT_count)) in appendArrayType()
30 if (Optional<DWARFFormValue> UpperV = C.find(DW_AT_upper_bound)) in appendArrayType()
32 if (Optional<DWARFFormValue> LV = in appendArrayType()
69 static DWARFDie resolveReferencedType(DWARFDie D, DWARFFormValue F) { in resolveReferencedType()
H A DDWARFDebugArangeSet.cpp26 DWARFFormValue::dumpAddress(OS, AddressSize, Address); in dump()
28 DWARFFormValue::dumpAddress(OS, AddressSize, getEndAddress()); in dump()
H A DCMakeLists.txt23 DWARFFormValue.cpp
H A DDWARFDebugLine.cpp186 std::vector<DWARFFormValue> &IncludeDirectories, in parseV2DirFileTables()
199 DWARFFormValue Dir = in parseV2DirFileTables()
200 DWARFFormValue::createFromPValue(dwarf::DW_FORM_string, S.data()); in parseV2DirFileTables()
215 DWARFFormValue::createFromPValue(dwarf::DW_FORM_string, Name.data()); in parseV2DirFileTables()
272 std::vector<DWARFFormValue> &IncludeDirectories, in parseV5DirFileTables()
284 DWARFFormValue Value(Descriptor.Form); in parseV5DirFileTables()
313 DWARFFormValue Value(Descriptor.Form); in parseV5DirFileTables()
906 DWARFFormValue::dumpAddress(*OS, OpcodeAddressSize, State.Row.Address.Address); in parse()
937 DWARFFormValue::createFromPValue(dwarf::DW_FORM_string, Name); in parse()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFFormValue.h28 class DWARFFormValue {
66 DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {} in DWARFFormValue() function
69 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form()
71 static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V);
72 static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V);
74 static DWARFFormValue createFromBlockValue(dwarf::Form F,
193 inline StringRef toStringRef(const Optional<DWARFFormValue> &V,
213 inline const char *toString(const Optional<DWARFFormValue> &V, in toString()
237 inline uint64_t toUnsigned(const Optional<DWARFFormValue> &V, in toUnsigned()
259 inline uint64_t toReference(const Optional<DWARFFormValue> &V, in toReference()
[all …]
H A DDWARFAbbreviationDeclaration.h23 class DWARFFormValue; variable
143 Optional<DWARFFormValue> getAttributeValue(const uint64_t DIEOffset,
164 Optional<DWARFFormValue>
H A DDWARFAcceleratorTable.h40 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;
316 Optional<DWARFFormValue> lookup(dwarf::Index Index) const;
H A DDWARFDie.h142 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;
H A DDWARFDebugLine.h34 DWARFFormValue Name;
39 DWARFFormValue Source;
93 std::vector<DWARFFormValue> IncludeDirectories;
H A DDWARFAttribute.h32 DWARFFormValue Value;
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFFormValueTest.cpp25 return DWARFFormValue(Form).isFormClass(FC); in isFormClass()
28 TEST(DWARFFormValue, FormClass) { in TEST() argument
47 DWARFFormValue Result(Form); in createDataXFormValue()
54 DWARFFormValue createULEBFormValue(uint64_t Value) { in createULEBFormValue()
59 DWARFFormValue Result(DW_FORM_udata); in createULEBFormValue()
65 DWARFFormValue createSLEBFormValue(int64_t Value) { in createSLEBFormValue()
70 DWARFFormValue Result(DW_FORM_sdata); in createSLEBFormValue()
76 TEST(DWARFFormValue, SignedConstantForms) { in TEST() argument
114 DWARFFormValue Data16(DW_FORM_data16); in TEST()
321 DWARFFormValue Form(Fm); in TEST_P()
[all …]
H A DDWARFDebugInfoTest.cpp248 Optional<DWARFFormValue> FormValue; in TestAllForms()
1120 Optional<DWARFFormValue> Form2 = DieDG.find(Attr2);
1127 Optional<DWARFFormValue> Form3 = DieDG.find(Attr3);
1640 Optional<DWARFFormValue> FormValOpt1 = DWARFFormValue();
1657 Optional<DWARFFormValue> FormValOpt2 =
1658 DWARFFormValue::createFromUValue(DW_FORM_addr, Address);
1676 Optional<DWARFFormValue> FormValOpt3 =
1677 DWARFFormValue::createFromUValue(DW_FORM_udata, UData8);
1695 Optional<DWARFFormValue> FormValOpt4 =
1714 Optional<DWARFFormValue> FormValOpt5 =
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFAttribute.h22 DWARFFormValue::ValueType value) in DWARFAttribute()
27 DWARFFormValue::ValueType get_value() const { return m_value; } in get_value()
29 DWARFFormValue::ValueType &val) const { in get()
41 DWARFFormValue::ValueType m_value;
49 void Append(const DWARFFormValue &form_value, dw_offset_t attr_die_offset,
59 DWARFFormValue::ValueType ValueAtIndex(uint32_t i) const { in ValueAtIndex()
62 bool ExtractFormValueAtIndex(uint32_t i, DWARFFormValue &form_value) const;
H A DDWARFFormValue.cpp25 void DWARFFormValue::Clear() { in Clear()
31 bool DWARFFormValue::ExtractValue(const DWARFDataExtractor &data, in ExtractValue()
199 llvm::Optional<uint8_t> DWARFFormValue::GetFixedSize() const { in GetFixedSize()
208 bool DWARFFormValue::SkipValue(dw_form_t form, in SkipValue()
334 void DWARFFormValue::Dump(Stream &s) const { in Dump()
459 const char *DWARFFormValue::AsCString() const { in AsCString()
484 dw_addr_t DWARFFormValue::Address() const { in Address()
502 DWARFDIE DWARFFormValue::Reference() const { in Reference()
569 bool DWARFFormValue::IsBlockForm(const dw_form_t form) { in IsBlockForm()
581 bool DWARFFormValue::IsDataForm(const dw_form_t form) { in IsDataForm()
[all …]
H A DDWARFFormValue.h20 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);
H A DDWARFDebugInfoEntry.cpp78 DWARFFormValue::GetFixedSize(form, cu); in Extract()
256 DWARFFormValue form_value(cu); in GetDIENamesAndRanges()
418 DWARFFormValue form_value(cu); in GetAttributes()
454 DWARFFormValue::SkipValue(form, data, &offset, cu); in GetAttributes()
482 DWARFFormValue::SkipValue(abbrevDecl->GetFormByIndex(idx++), in GetAttributeValue()
529 DWARFFormValue form_value; in GetAttributeValueAsString()
542 DWARFFormValue form_value; in GetAttributeValueAsUnsigned()
556 DWARFFormValue form_value; in GetAttributeValueAsReference()
566 DWARFFormValue form_value; in GetAttributeValueAsAddress()
582 DWARFFormValue form_value; in GetAttributeHighPC()
[all …]
H A DDWARFAttribute.cpp30 void DWARFAttributes::Append(const DWARFFormValue &form_value, in Append()
39 uint32_t i, DWARFFormValue &form_value) const { in ExtractFormValueAtIndex()
61 DWARFFormValue form_value; in FormValueAsReferenceAtIndex()
H A DDWARFASTParserClang.h85 const DWARFFormValue &form_value) const;
293 DWARFFormValue abstract_origin;
294 DWARFFormValue containing_type;
295 DWARFFormValue signature;
296 DWARFFormValue specification;
297 DWARFFormValue type;
/llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/
H A DDWARFLinker.h520 const DWARFFormValue &RefValue,
619 const DWARFFormValue &Val,
627 const DWARFFormValue &Val, const DWARFUnit &U,
637 const DWARFFormValue &Val,
651 const DWARFFormValue &Val, unsigned AttrSize,
658 const DWARFFormValue &Val,
667 const DWARFFormValue &Val, unsigned AttrSize,
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp71 assert(RefValue.isFormClass(DWARFFormValue::FC_Reference)); in resolveDIEReference()
661 DWARFFormValue Val(AttrSpec.Form); in lookForRefDIEsToKeep()
662 if (!Val.isFormClass(DWARFFormValue::FC_Reference) || in lookForRefDIEsToKeep()
664 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in lookForRefDIEsToKeep()
1070 (Val.isFormClass(DWARFFormValue::FC_Block) || in cloneBlockAttribute()
1071 Val.isFormClass(DWARFFormValue::FC_Exprloc))) { in cloneBlockAttribute()
1365 !DWARFFormValue(AttrSpec.Form).isFormClass(DWARFFormValue::FC_Block); in shouldSkipAttribute()
1472 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in cloneDIE()
1477 DWARFFormValue Val(AttrSpec.Form); in cloneDIE()
1961 Optional<DWARFFormValue> Ref; in hashFullyQualifiedName()
[all …]

123