Home
last modified time | relevance | path

Searched refs:DWARFDie (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDie.h42 class DWARFDie {
47 DWARFDie() = default;
48 DWARFDie(DWARFUnit *Unit, const DWARFDebugInfoEntry *D) : U(Unit), Die(D) {} in DWARFDie() function
96 DWARFDie getParent() const;
102 DWARFDie getSibling() const;
108 DWARFDie getPreviousSibling() const;
114 DWARFDie getFirstChild() const;
120 DWARFDie getLastChild() const;
181 DWARFDie getAttributeValueAsReferencedDie(dwarf::Attribute Attr) const;
182 DWARFDie getAttributeValueAsReferencedDie(const DWARFFormValue &V) const;
[all …]
H A DDWARFTypePrinter.h34 void appendArrayType(const DWARFDie &D);
36 DWARFDie skipQualifiers(DWARFDie D);
38 bool needsParens(DWARFDie D);
40 void appendPointerLikeTypeBefore(DWARFDie D, DWARFDie Inner, StringRef Ptr);
42 DWARFDie appendUnqualifiedNameBefore(DWARFDie D,
45 void appendUnqualifiedNameAfter(DWARFDie D, DWARFDie Inner,
47 void appendQualifiedName(DWARFDie D);
48 DWARFDie appendQualifiedNameBefore(DWARFDie D);
49 bool appendTemplateParameters(DWARFDie D, bool *FirstParameter = nullptr);
50 void decomposeConstVolatile(DWARFDie &N, DWARFDie &T, DWARFDie &C,
[all …]
H A DDWARFUnit.h248 std::map<uint64_t, std::pair<uint64_t, DWARFDie>> AddrDieMap;
252 std::map<uint64_t, std::pair<uint64_t, DWARFDie>> VariableDieMap;
370 void updateAddressDieMap(DWARFDie Die);
373 void updateVariableDieMap(DWARFDie Die);
443 DWARFDie getUnitDIE(bool ExtractUnitDIEOnly = true) {
446 return DWARFDie();
447 return DWARFDie(this, &DieArray[0]);
450 DWARFDie getNonSkeletonUnitDIE(bool ExtractUnitDIEOnly = true,
488 DWARFDie getSubroutineForAddress(uint64_t Address);
492 DWARFDie getVariableForAddress(uint64_t Address);
[all …]
H A DDWARFVerifier.h52 DWARFDie Die;
61 DieRangeInfo(DWARFDie Die) : Die(Die) {} in DieRangeInfo()
107 raw_ostream &dump(const DWARFDie &Die, unsigned indent = 0) const;
144 bool verifyName(const DWARFDie &Die);
181 unsigned verifyDebugInfoCallSite(const DWARFDie &Die);
189 unsigned verifyDieRanges(const DWARFDie &Die, DieRangeInfo &ParentRI);
202 unsigned verifyDebugInfoAttribute(const DWARFDie &Die,
217 unsigned verifyDebugInfoForm(const DWARFDie &Die, DWARFAttribute &AttrValue,
276 unsigned verifyNameIndexCompleteness(const DWARFDie &Die,
H A DDWARFContext.h271 DWARFDie getDIEForOffset(uint64_t Offset);
366 DWARFDie FunctionDIE;
367 DWARFDie BlockDIE;
489 void addLocalsForDie(DWARFCompileUnit *CU, DWARFDie Subprogram, DWARFDie Die,
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp106 static DWARFDie resolveReferencedType(DWARFDie D, DWARFFormValue F) { in resolveReferencedType()
110 static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die, in dumpAttribute()
201 DWARFDie D = resolveReferencedType(Die, FormValue); in dumpAttribute()
233 void DWARFDie::getFullName(raw_string_ostream &OS, in getFullName()
243 bool DWARFDie::isSubprogramDIE() const { return getTag() == DW_TAG_subprogram; } in isSubprogramDIE()
245 bool DWARFDie::isSubroutineDIE() const { in isSubroutineDIE()
250 std::optional<DWARFFormValue> DWARFDie::find(dwarf::Attribute Attr) const { in find()
260 DWARFDie::find(ArrayRef<dwarf::Attribute> Attrs) const { in find()
274 DWARFDie::findRecursively(ArrayRef<dwarf::Attribute> Attrs) const { in findRecursively()
275 SmallVector<DWARFDie, 3> Worklist; in findRecursively()
[all …]
H A DDWARFTypePrinter.cpp18 void DWARFTypePrinter::appendArrayType(const DWARFDie &D) { in appendArrayType()
19 for (const DWARFDie &C : D.children()) { in appendArrayType()
65 static DWARFDie resolveReferencedType(DWARFDie D, in resolveReferencedType()
69 static DWARFDie resolveReferencedType(DWARFDie D, DWARFFormValue F) { in resolveReferencedType()
72 DWARFDie DWARFTypePrinter::skipQualifiers(DWARFDie D) { in skipQualifiers()
79 bool DWARFTypePrinter::needsParens(DWARFDie D) { in needsParens()
85 void DWARFTypePrinter::appendPointerLikeTypeBefore(DWARFDie D, DWARFDie Inner, in appendPointerLikeTypeBefore()
97 DWARFDie
98 DWARFTypePrinter::appendUnqualifiedNameBefore(DWARFDie D, in appendUnqualifiedNameBefore()
103 return DWARFDie(); in appendUnqualifiedNameBefore()
[all …]
H A DDWARFUnit.cpp513 DWARFDie UnitDie(this, &DieArray[0]); in tryExtractDIEsIfNeeded()
608 DWARFDie UnitDie = getUnitDIE(); in parseDWO()
695 DWARFDie UnitDie = getUnitDIE(); in collectAddressRanges()
732 void DWARFUnit::updateAddressDieMap(DWARFDie Die) { in updateAddressDieMap()
759 for (DWARFDie Child = Die.getFirstChild(); Child; Child = Child.getSibling()) in updateAddressDieMap()
763 DWARFDie DWARFUnit::getSubroutineForAddress(uint64_t Address) { in getSubroutineForAddress()
769 return DWARFDie(); in getSubroutineForAddress()
773 return DWARFDie(); in getSubroutineForAddress()
777 void DWARFUnit::updateVariableDieMap(DWARFDie Die) { in updateVariableDieMap()
778 for (DWARFDie Child : Die) { in updateVariableDieMap()
[all …]
H A DDWARFTypeUnit.cpp19 DWARFDie TD = getDIEForOffset(getTypeOffset() + getOffset()); in dump()
47 if (DWARFDie TU = getUnitDIE(false)) in dump()
H A DDWARFVerifier.cpp219 bool DWARFVerifier::verifyName(const DWARFDie &Die) { in verifyName()
275 DWARFDie Die = Unit.getUnitDIE(/* ExtractUnitDIEOnly = */ false); in verifyUnitContents()
318 unsigned DWARFVerifier::verifyDebugInfoCallSite(const DWARFDie &Die) { in verifyDebugInfoCallSite()
322 DWARFDie Curr = Die.getParent(); in verifyDebugInfoCallSite()
550 unsigned DWARFVerifier::verifyDieRanges(const DWARFDie &Die, in verifyDieRanges()
650 for (DWARFDie Child : Die) in verifyDieRanges()
656 unsigned DWARFVerifier::verifyDebugInfoAttribute(const DWARFDie &Die, in verifyDebugInfoAttribute()
760 DWARFDie TypeDie = Die.getAttributeValueAsReferencedDie(DW_AT_type); in verifyDebugInfoAttribute()
825 unsigned DWARFVerifier::verifyDebugInfoForm(const DWARFDie &Die, in verifyDebugInfoForm()
913 return DWARFDie(); in verifyDebugInfoReferences()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFLinker.h
H A DDWARFLinkerDeclContext.h
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DDwarfTransformer.cpp44 DWARFDie Die = CU->getUnitDIE(); in CUInfo()
89 static DWARFDie GetParentDeclContextDIE(DWARFDie &Die) { in GetParentDeclContextDIE()
90 if (DWARFDie SpecDie = in GetParentDeclContextDIE()
92 if (DWARFDie SpecParent = GetParentDeclContextDIE(SpecDie)) in GetParentDeclContextDIE()
95 if (DWARFDie AbstDie = in GetParentDeclContextDIE()
97 if (DWARFDie AbstParent = GetParentDeclContextDIE(AbstDie)) in GetParentDeclContextDIE()
105 return DWARFDie(); in GetParentDeclContextDIE()
107 DWARFDie ParentDie = Die.getParent(); in GetParentDeclContextDIE()
109 return DWARFDie(); in GetParentDeclContextDIE()
124 return DWARFDie(); in GetParentDeclContextDIE()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerGlobalData.h19 class DWARFDie; variable
25 const Twine &Warning, StringRef Context, const DWARFDie *DIE)>;
108 const DWARFDie *DIE = nullptr) {
114 void warn(Error Warning, StringRef Context, const DWARFDie *DIE = nullptr) {
122 const DWARFDie *DIE = nullptr) {
128 void error(Error Err, StringRef Context, const DWARFDie *DIE = nullptr) {
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DDWARFLinkerCompileUnit.h
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVDWARFReader.h86 void traverseDieAndChildren(DWARFDie &DIE, LVScope *Parent,
87 DWARFDie &SkeletonDie);
89 LVScope *processOneDie(const DWARFDie &InputDIE, LVScope *Parent,
90 DWARFDie &SkeletonDie);
91 void processOneAttribute(const DWARFDie &Die, LVOffset *OffsetPtr,
114 const DWARFDie &Die, uint64_t OffsetOnEntry);
116 const DWARFFormValue &FormValue, const DWARFDie &Die,
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DSourcePrinter.h31 const DWARFDie FuncDie;
34 DWARFUnit *Unit, const DWARFDie FuncDie) in LiveVariable()
66 void addVariable(DWARFDie FuncDie, DWARFDie VarDie);
68 void addFunction(DWARFDie D);
89 void addCompileUnit(DWARFDie D);
H A DSourcePrinter.cpp54 void LiveVariablePrinter::addVariable(DWARFDie FuncDie, DWARFDie VarDie) { in addVariable()
85 void LiveVariablePrinter::addFunction(DWARFDie D) { in addFunction()
86 for (const DWARFDie &Child : D.children()) { in addFunction()
140 void LiveVariablePrinter::addCompileUnit(DWARFDie D) { in addCompileUnit()
144 for (const DWARFDie &Child : D.children()) in addCompileUnit()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinker.cpp74 DWARFDie DWARFLinker::resolveDIEReference(const DWARFFile &File, in resolveDIEReference()
77 const DWARFDie &DIE, in resolveDIEReference()
87 return DWARFDie(); in resolveDIEReference()
98 return DWARFDie(); in resolveDIEReference()
153 bool DWARFLinker::DIECloner::getDIENames(const DWARFDie &Die, in getDIENames()
185 static void resolveRelativeObjectPath(SmallVectorImpl<char> &Buf, DWARFDie CU) { in resolveRelativeObjectPath()
192 const DWARFDie &DIE, CompileUnit &CU, in analyzeImportedModule()
194 std::function<void(const Twine &, const DWARFDie &)> ReportWarning) { in analyzeImportedModule()
223 DWARFDie CUDie = CU.getOrigUnit().getUnitDIE(); in analyzeImportedModule()
247 DWARFDie Die;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A Dllvm-dwarfdump.cpp398 const StringSet<> &Names, DWARFDie Die, StringRef NameRef, raw_ostream &OS, in filterByName()
433 DWARFDie Die = {Unit, &Entry}; in filterByName()
445 DWARFDie CUDie = CU->getUnitDIE(false); in filterByName()
446 DWARFDie CUNonSkeletonDie = CU->getNonSkeletonUnitDIE(false); in filterByName()
455 StringRef Name, SmallVectorImpl<DWARFDie> &Dies) { in getDies()
458 if (DWARFDie Die = DICtx.getDIEForOffset(*Off)) in getDies()
464 static DWARFDie toDie(const DWARFDebugNames::Entry &Entry, in toDie()
469 return DWARFDie(); in toDie()
473 return DWARFDie(); in toDie()
479 return DWARFDie(); in toDie()
[all …]
H A DStatistics.cpp235 static std::string constructDieID(DWARFDie Die, in constructDieID()
272 static void collectStatsForDie(DWARFDie Die, const std::string &FnPrefix, in collectStatsForDie()
419 if (DWARFDie D = in collectStatsForDie()
477 DWARFDie Die, uint64_t SPOffset, in collectAbstractOriginFnInfo()
480 DWARFDie Child = Die.getFirstChild(); in collectAbstractOriginFnInfo()
496 DWARFDie Die, std::string FnPrefix, std::string VarPrefix, in collectStatsRecursive()
623 DWARFDie Child = Die.getFirstChild(); in collectStatsRecursive()
746 DWARFDie FnDieWithAbstractOrigin, in updateVarsWithAbstractOriginLocCovInfo()
748 DWARFDie Child = FnDieWithAbstractOrigin.getFirstChild(); in updateVarsWithAbstractOriginLocCovInfo()
776 DWARFDie FnDieWithAbstractOrigin = DwUnit->getDIEForOffset(FnOffset); in collectZeroLocCovForVarsWithAbstractOrigin()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVDWARFReader.cpp246 void LVDWARFReader::processOneAttribute(const DWARFDie &Die, in processOneAttribute()
519 LVScope *LVDWARFReader::processOneDie(const DWARFDie &InputDIE, LVScope *Parent, in processOneDie()
520 DWARFDie &SkeletonDie) { in processOneDie()
525 const DWARFDie &DIE = SkeletonDie.isValid() ? SkeletonDie : InputDIE; in processOneDie()
592 auto ProcessAttributes = [&](const DWARFDie &TheDIE, in processOneDie()
692 void LVDWARFReader::traverseDieAndChildren(DWARFDie &DIE, LVScope *Parent, in traverseDieAndChildren()
693 DWARFDie &SkeletonDie) { in traverseDieAndChildren()
699 DWARFDie DummyDie; in traverseDieAndChildren()
701 DWARFDie Child = DIE.getFirstChild(); in traverseDieAndChildren()
924 DWARFDie UnitDie = CU->getUnitDIE(); in createScopes()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h25 class DWARFDie; variable
186 std::optional<uint64_t> getLocation(const DWARFDie &Die) const;
190 static bool isDIEOfProbe(const DWARFDie &Die);
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfCorrelator.cpp285 DwarfInstrProfCorrelator<IntPtrT>::getLocation(const DWARFDie &Die) const { in getLocation()
310 bool DwarfInstrProfCorrelator<IntPtrT>::isDIEOfProbe(const DWARFDie &Die) { in isDIEOfProbe()
331 auto maybeAddProbe = [&](DWARFDie Die) { in correlateProfileDataImpl()
340 for (const DWARFDie &Child : Die.children()) { in correlateProfileDataImpl()
417 maybeAddProbe(DWARFDie(CU.get(), &Entry)); in correlateProfileDataImpl()
420 maybeAddProbe(DWARFDie(CU.get(), &Entry)); in correlateProfileDataImpl()

12