| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfUnit.h | 59 DIE *IndexTyDie = nullptr; 139 DIE *getDIE(const DINode *D) const; 149 void insertDIE(const DINode *Desc, DIE *D); 151 void insertDIE(DIE *D); 195 void addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry); 257 DIE *createTypeDIE(const DIScope *Context, DIE &ContextDIE, const DIType *Ty); 273 DIE &createAndAddDIE(dwarf::Tag Tag, DIE &Parent, const DINode *N = nullptr); 334 void constructSubrangeDIE(DIE &Buffer, const DISubrange *SR, DIE *IndexTy); 339 DIE &constructMemberDIE(DIE &Buffer, const DIDerivedType *DT); 351 DIE *getIndexTyDie(); [all …]
|
| H A D | DwarfCompileUnit.h | 34 class DIE; variable 59 StringMap<const DIE *> GlobalNames; 62 StringMap<const DIE *> GlobalTypes; 158 void applyStmtList(DIE &D); 174 DIE *Die = nullptr; 180 DIE * 223 void attachRangesOrLowHighPC(DIE &D, 228 DIE *constructInlinedScopeDIE(LexicalScope *Scope, DIE &ParentScopeDIE); 245 DIE *&ObjectPointer); 260 DIE *createAndAddScopeChildren(LexicalScope *Scope, DIE &ScopeDIE); [all …]
|
| H A D | DIEHash.h | 38 uint64_t computeCUSignature(StringRef DWOName, const DIE &Die); 41 uint64_t computeTypeSignature(const DIE &Die); 46 void addParentContext(const DIE &Parent); 49 void addAttributes(const DIE &Die); 52 void computeHash(const DIE &Die); 65 void hashRawTypeReference(const DIE &Entry); 73 void collectAttributes(const DIE &Die, DIEAttrs &Attrs); 80 void hashBlockData(const DIE::const_value_range &Values); 90 const DIE &Entry); 102 void hashNestedType(const DIE &Die, StringRef Name); [all …]
|
| H A D | DwarfUnit.cpp | 352 void DwarfUnit::addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry) { in addDIEEntry() 383 DIE &DwarfUnit::createAndAddDIE(dwarf::Tag Tag, DIE &Parent, const DINode *N) { in createAndAddDIE() 384 DIE &Die = Parent.addChild(DIE::get(DIEValueAllocator, Tag)); in createAndAddDIE() 575 DIE *DwarfUnit::createTypeDIE(const DIScope *Context, DIE &ContextDIE, in createTypeDIE() 1053 DIE &ParamDIE = in constructTemplateTypeParameterDIE() 1158 DIE *ContextDIE = in getOrCreateSubprogramDIE() 1188 DIE *DeclDie = nullptr; in applySubprogramDefinitionAttributes() 1397 DIE &DwGenericSubrange = in constructGenericSubrangeDIE() 1582 DIE &SPDie = *P.first; in constructContainingTypeDIEs() 1586 DIE *NDie = getDIE(D); in constructContainingTypeDIEs() [all …]
|
| H A D | DIEHash.cpp | 78 void DIEHash::addParentContext(const DIE &Parent) { in addParentContext() 84 SmallVector<const DIE *, 1> Parents; in addParentContext() 85 const DIE *Cur = &Parent; in addParentContext() 95 for (const DIE *Die : llvm::reverse(Parents)) { in addParentContext() 138 if (const DIE *Parent = Entry.getParent()) in hashShallowTypeReference() 169 const DIE &Entry) { in hashDIEEntry() 209 void DIEHash::hashRawTypeReference(const DIE &Entry) { in hashRawTypeReference() 226 const DIE &C = in hashBlockData() 347 void DIEHash::addAttributes(const DIE &Die) { in addAttributes() 368 void DIEHash::computeHash(const DIE &Die) { in computeHash() [all …]
|
| H A D | DwarfCompileUnit.cpp | 140 if (DIE *Die = getDIE(GV)) in getOrCreateGlobalVariableDIE() 385 if (DIE *NDie = getDIE(CB)) in getOrCreateCommonBlock() 934 DIE &VariableDie) { in applyConcreteDbgVariableAttributes() 1106 DIE *ObjectPointer = nullptr; in createAndAddScopeChildren() 1158 DIE *ContextDIE; in constructAbstractSubprogramScopeDIE() 1246 DIE &DwarfCompileUnit::constructCallSiteEntryDIE(DIE &ScopeDIE, in constructCallSiteEntryDIE() 1307 DIE::get(DIEValueAllocator, in constructCallSiteParmEntryDIEs() 1328 DIE *IMDie = DIE::get(DIEValueAllocator, (dwarf::Tag)Module->getTag()); in constructImportedEntityDIE() 1330 DIE *EntityDie; in constructImportedEntityDIE() 1384 if (DIE *Die = getDIE(IE)) in getOrCreateImportedEntityDIE() [all …]
|
| H A D | DwarfDebug.h | 50 class DIE; variable 75 DIE *TheDIE = nullptr; 87 DIE *getDIE() const { return TheDIE; } in getDIE() 91 void setDIE(DIE &D) { TheDIE = &D; } in setDIE() 359 DenseMap<const DIE *, DwarfCompileUnit *> CUDieMap; 553 const DIE &Die); 633 void initSkeletonUnit(const DwarfUnit &U, DIE &Die, 865 StringRef Name, const DIE &Die); 869 StringRef Name, const DIE &Die); 873 StringRef Name, const DIE &Die); [all …]
|
| H A D | DwarfFile.h | 91 DenseMap<const DILocalScope *, DIE *> AbstractLocalScopeDIEs; 97 DenseMap<const MDNode *, DIE *> DITypeNodeToDieMap; 115 unsigned computeSizeAndOffset(DIE &Die, unsigned Offset); 165 DenseMap<const DILocalScope *, DIE *> &getAbstractScopeDIEs() { in getAbstractScopeDIEs() 173 void insertDIE(const MDNode *TypeMD, DIE *Die) { in insertDIE() 177 DIE *getDIE(const MDNode *TypeMD) { in getDIE()
|
| H A D | DIE.cpp | 140 DIEAbbrev &DIEAbbrevSet::uniqueAbbreviation(DIE &Die) { in uniqueAbbreviation() 176 DIE *DIE::getParent() const { return dyn_cast_if_present<DIE *>(Owner); } in getParent() 178 DIEAbbrev DIE::generateAbbrev() const { in generateAbbrev() 189 uint64_t DIE::getDebugSectionOffset() const { in getDebugSectionOffset() 195 const DIE *DIE::getUnitDie() const { in getUnitDie() 196 const DIE *p = this; in getUnitDie() 207 DIEUnit *DIE::getUnit() const { in getUnit() 208 const DIE *UnitDie = getUnitDie(); in getUnit() 214 DIEValue DIE::findAttribute(dwarf::Attribute Attribute) const { in findAttribute() 240 void DIE::print(raw_ostream &O, unsigned IndentCount) const { in print() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | DIE.h | 39 class DIE; variable 320 DIE *Entry; 449 construct<DIE##T>(*X.get<DIE##T>()); \ in copyVal() 843 DIE() = delete; 844 DIE(const DIE &RHS) = delete; 845 DIE(DIE &&RHS) = delete; 846 DIE &operator=(const DIE &RHS) = delete; 847 DIE &operator=(const DIE &&RHS) = delete; 934 DIE &addChild(DIE *Child) { in addChild() 941 DIE &addChildFront(DIE *Child) { in addChildFront() [all …]
|
| H A D | AccelTable.h | 285 DWARF5AccelTableData(const DIE &Die, const uint32_t UnitID, 312 const DIE *Entry = std::get<const DIE *>(OffsetVal); 335 static std::optional<uint64_t> getDefiningParentDieOffset(const DIE &Die); 338 std::variant<const DIE *, uint64_t> OffsetVal; 427 AppleAccelTableOffsetData(const DIE &D) : Die(D) {} 440 const DIE &Die; 446 AppleAccelTableTypeData(const DIE &D) : AppleAccelTableOffsetData(D) {}
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinkerCompileUnit.h | 37 DIE::value_iterator I; 41 PatchLocation(DIE::value_iterator I) : I(I) {} in PatchLocation() 42 PatchLocation(DIE::value_iterator I, int64_t Reloc) in PatchLocation() 74 DIE *Clone; 134 DIE *getOutputUnitDIE() const { in getOutputUnitDIE() 190 void noteForwardReference(DIE *Die, const CompileUnit *RefUnit, 205 void noteRangeAttribute(const DIE &Die, PatchLocation Attr); 215 void addNameAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name, 235 const DIE *Die; 246 AccelInfo(DwarfStringPoolEntryRef Name, const DIE *Die, [all …]
|
| H A D | DWARFLinker.h | 152 virtual void emitDIE(DIE &Die) = 0; 386 const DWARFDie *DIE = nullptr) const { 388 WarningHandler(Warning, File.FileName, DIE); 392 const DWARFDie *DIE = nullptr) const { 394 ErrorHandler(Warning, File.FileName, DIE); 465 const DWARFDie &DIE, const DWARFFile &File, 586 DIE *cloneDIE(const DWARFDie &InputDIE, const DWARFFile &File, 644 unsigned cloneAttribute(DIE &Die, const DWARFDie &InputDIE, 653 unsigned cloneStringAttribute(DIE &Die, AttributeSpec AttrSpec, 706 uint32_t hashFullyQualifiedName(DWARFDie DIE, CompileUnit &U, [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | DWARFLinkerGlobalData.h | 26 const Twine &Warning, StringRef Context, const DWARFDie *DIE)>; 122 const DWARFDie *DIE = nullptr) { 124 (WarningHandler)(Warning, Context, DIE); 128 void warn(Error Warning, StringRef Context, const DWARFDie *DIE = nullptr) { 130 warn(Info.message(), Context, DIE); 136 const DWARFDie *DIE = nullptr) { 138 (ErrorHandler)(Err, Context, DIE); 142 void error(Error Err, StringRef Context, const DWARFDie *DIE = nullptr) { 144 error(Info.message(), Context, DIE);
|
| H A D | AcceleratorRecordsSaver.h | 38 void save(const DWARFDebugInfoEntry *InputDieEntry, DIE *OutDIE, 46 void saveObjC(const DWARFDebugInfoEntry *InputDieEntry, DIE *OutDIE, 49 void saveNameRecord(StringEntry *Name, DIE *OutDIE, dwarf::Tag Tag, 51 void saveNamespaceRecord(StringEntry *Name, DIE *OutDIE, dwarf::Tag Tag, 53 void saveObjCNameRecord(StringEntry *Name, DIE *OutDIE, dwarf::Tag Tag); 54 void saveTypeRecord(StringEntry *Name, DIE *OutDIE, dwarf::Tag Tag,
|
| H A D | TypePool.h | 33 DIE &getFinalDie() const { in getFinalDie() 59 std::atomic<DIE *> Die = {nullptr}; 62 std::atomic<DIE *> DeclarationDie = {nullptr}; 133 TypeEntryBody *DIE = Entry->getValue().load(); in getOrCreateTypeEntryBody() local 134 if (DIE) in getOrCreateTypeEntryBody() 135 return DIE; in getOrCreateTypeEntryBody() 138 if (Entry->getValue().compare_exchange_weak(DIE, NewDIE)) { in getOrCreateTypeEntryBody() 143 return DIE; in getOrCreateTypeEntryBody()
|
| H A D | DWARFLinkerCompileUnit.h | 418 std::pair<DIE *, TypeEntry *> 537 GlobalData.warn(Warning, getUnitName(), DIE); 540 void warn(Error Warning, const DWARFDie *DIE = nullptr) { 542 GlobalData.warn(Info.message(), getUnitName(), DIE); 548 DWARFDie DIE(&getOrigUnit(), DieEntry); in warn() 549 GlobalData.warn(Warning, getUnitName(), &DIE); in warn() 557 GlobalData.warn(Err, getUnitName(), DIE); 560 void error(Error Err, const DWARFDie *DIE = nullptr) { 562 GlobalData.error(Info.message(), getUnitName(), DIE); 652 DIE *createPlainDIEandCloneAttributes( [all …]
|
| H A D | DIEGenerator.h | 27 DIEGenerator(DIE *OutputDIE, BumpPtrAllocator &Allocator, DwarfUnit &CU) in DIEGenerator() 31 DIE *createDIE(dwarf::Tag DieTag, uint32_t OutOffset) { in createDIE() 32 OutputDIE = DIE::get(Allocator, DieTag); in createDIE() 39 DIE *getDIE() { return OutputDIE; } in getDIE() 42 void addChild(DIE *Child) { in addChild() 175 DIE *OutputDIE = nullptr;
|
| H A D | DependencyTracker.cpp | 727 DWARFDie DIE = Entry.CU->getDIE(Entry.DieEntry); in isLiveVariableEntry() local 728 CompileUnit::DIEInfo &Info = Entry.CU->getDIEInfo(DIE); in isLiveVariableEntry() 731 const auto *Abbrev = DIE.getAbbreviationDeclarationPtr(); in isLiveVariableEntry() 764 DIE.dump(outs(), 8 /* Indent */, DumpOpts); in isLiveVariableEntry() 771 DWARFDie DIE = Entry.CU->getDIE(Entry.DieEntry); in isLiveSubprogramEntry() local 791 if (DIE.getTag() == dwarf::DW_TAG_subprogram) { in isLiveSubprogramEntry() 794 HighPc = DIE.getHighPC(*LowPc); in isLiveSubprogramEntry() 797 &DIE); in isLiveSubprogramEntry() 803 &DIE); in isLiveSubprogramEntry() 806 } else if (DIE.getTag() == dwarf::DW_TAG_label) { in isLiveSubprogramEntry() [all …]
|
| H A D | OutputSections.h | 105 DebugType2TypeDieRefPatch(uint64_t PatchOffset, DIE *Die, TypeEntry *TypeName, 108 DIE *Die = nullptr; 114 DebugTypeStrPatch(uint64_t PatchOffset, DIE *Die, TypeEntry *TypeName, 117 DIE *Die = nullptr; 123 DebugTypeLineStrPatch(uint64_t PatchOffset, DIE *Die, TypeEntry *TypeName, 126 DIE *Die = nullptr; 132 DebugTypeDeclFilePatch(DIE *Die, TypeEntry *TypeName, StringEntry *Directory, 135 DIE *Die = nullptr;
|
| H A D | DIEAttributeCloner.h | 49 DIEAttributeCloner(DIE *OutDIE, CompileUnit &InUnit, CompileUnit *OutUnit, in DIEAttributeCloner() 61 DIEAttributeCloner(DIE *OutDIE, CompileUnit &InUnit, TypeUnit *OutUnit, in DIEAttributeCloner() 85 DIEAttributeCloner(DIE *OutDIE, CompileUnit &InUnit, in DIEAttributeCloner() 142 DIE *OutDIE = nullptr;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/ |
| H A D | DWARFLinkerCompileUnit.cpp | 71 auto DIE = OrigUnit.getDIEAtIndex(Idx++); in markEverythingAsKept() local 72 DWARFUnit *U = DIE.getDwarfUnit(); in markEverythingAsKept() 77 if (DIE.getTag() != dwarf::DW_TAG_variable && in markEverythingAsKept() 78 DIE.getTag() != dwarf::DW_TAG_constant) in markEverythingAsKept() 82 if (!(Value = DIE.find(dwarf::DW_AT_location))) { in markEverythingAsKept() 83 if ((Value = DIE.find(dwarf::DW_AT_const_value)) && in markEverythingAsKept() 145 DIE *RefDie; in fixupForwardReferences() 188 void CompileUnit::addNamespaceAccelerator(const DIE *Die, in addNamespaceAccelerator() 193 void CompileUnit::addObjCAccelerator(const DIE *Die, in addObjCAccelerator() 199 void CompileUnit::addNameAccelerator(const DIE *Die, in addNameAccelerator() [all …]
|
| H A D | DWARFLinkerDeclContext.cpp | 48 DeclContextTree::getChildDeclContext(DeclContext &Context, const DWARFDie &DIE, in getChildDeclContext() argument 50 unsigned Tag = DIE.getTag(); in getChildDeclContext() 68 !dwarf::toUnsigned(DIE.find(dwarf::DW_AT_external), 0)) in getChildDeclContext() 82 if (dwarf::toUnsigned(DIE.find(dwarf::DW_AT_artificial), 0)) in getChildDeclContext() 90 if (const char *LinkageName = DIE.getLinkageName()) in getChildDeclContext() 92 else if (const char *ShortName = DIE.getShortName()) in getChildDeclContext() 119 ByteSize = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_byte_size), in getChildDeclContext() 123 dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_file), 0)) { in getChildDeclContext() 133 Line = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_line), 0); in getChildDeclContext() 172 Context, DIE, U.getUniqueID()); in getChildDeclContext() [all …]
|
| H A D | DWARFLinker.cpp | 183 const DWARFDie &DIE, CompileUnit &CU, in analyzeImportedModule() argument 220 DIE); in analyzeImportedModule() 415 DWARFUnit *U = DIE.getDwarfUnit(); in getVariableRelocAdjustment() 571 if (DIE.getTag() == dwarf::DW_TAG_label) { in shouldKeepSubprogramDIE() 592 &DIE); in shouldKeepSubprogramDIE() 597 File, &DIE); in shouldKeepSubprogramDIE() 612 switch (DIE.getTag()) { in shouldKeepDIE() 1075 DIE *NewRefDie = nullptr; in cloneDieReferenceAttribute() 1183 if (DIE *Clone = Info.Clone) in cloneExpression() 1515 DIE::value_iterator Patch = in cloneScalarAttribute() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
| H A D | AddressesMap.h | 56 getSubprogramRelocAdjustment(const DWARFDie &DIE, bool Verbose) = 0; 93 getVariableRelocAdjustment(const DWARFDie &DIE, bool Verbose) { in getVariableRelocAdjustment() argument 94 assert((DIE.getTag() == dwarf::DW_TAG_variable || in getVariableRelocAdjustment() 95 DIE.getTag() == dwarf::DW_TAG_constant) && in getVariableRelocAdjustment() 98 const auto *Abbrev = DIE.getAbbreviationDeclarationPtr(); in getVariableRelocAdjustment() 101 DWARFUnit *U = DIE.getDwarfUnit(); in getVariableRelocAdjustment() 109 Abbrev->getAttributeOffsetFromIndex(*LocationIdx, DIE.getOffset(), *U); in getVariableRelocAdjustment() 161 DIE.getDwarfUnit()->getIndexedAddressOffset( in getVariableRelocAdjustment() 167 *AddressOffset + DIE.getDwarfUnit()->getAddressByteSize(), in getVariableRelocAdjustment()
|