| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfUnit.h | 54 DIE *IndexTyDie = nullptr; 127 DIE *getDIE(const DINode *D) const; 137 void insertDIE(const DINode *Desc, DIE *D); 139 void insertDIE(DIE *D); 183 void addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry); 245 DIE *createTypeDIE(const DIScope *Context, DIE &ContextDIE, const DIType *Ty); 261 DIE &createAndAddDIE(dwarf::Tag Tag, DIE &Parent, const DINode *N = nullptr); 322 void constructSubrangeDIE(DIE &Buffer, const DISubrange *SR, DIE *IndexTy); 327 DIE &constructMemberDIE(DIE &Buffer, const DIDerivedType *DT); 339 DIE *getIndexTyDie(); [all …]
|
| H A D | DwarfCompileUnit.h | 35 class DIE; variable 70 StringMap<const DIE *> GlobalNames; 73 StringMap<const DIE *> GlobalTypes; 82 DenseMap<const MDNode *, DIE *> AbstractSPDies; 128 void applyStmtList(DIE &D); 144 DIE *Die = nullptr; 150 DIE * 204 void attachRangesOrLowHighPC(DIE &D, 219 DIE *&ObjectPointer); 230 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 | 353 void DwarfUnit::addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry) { in addDIEEntry() 384 DIE &DwarfUnit::createAndAddDIE(dwarf::Tag Tag, DIE &Parent, const DINode *N) { in createAndAddDIE() 385 DIE &Die = Parent.addChild(DIE::get(DIEValueAllocator, Tag)); in createAndAddDIE() 576 DIE *DwarfUnit::createTypeDIE(const DIScope *Context, DIE &ContextDIE, in createTypeDIE() 1051 DIE &ParamDIE = in constructTemplateTypeParameterDIE() 1156 DIE *ContextDIE = in getOrCreateSubprogramDIE() 1186 DIE *DeclDie = nullptr; in applySubprogramDefinitionAttributes() 1398 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 | 139 if (DIE *Die = getDIE(GV)) in getOrCreateGlobalVariableDIE() 365 if (DIE *NDie = getDIE(CB)) in getOrCreateCommonBlock() 1048 DIE *ObjectPointer = nullptr; in createAndAddScopeChildren() 1102 DIE *ContextDIE; in constructAbstractSubprogramScopeDIE() 1185 DIE &DwarfCompileUnit::constructCallSiteEntryDIE(DIE &ScopeDIE, in constructCallSiteEntryDIE() 1246 DIE::get(DIEValueAllocator, in constructCallSiteParmEntryDIEs() 1267 DIE *IMDie = DIE::get(DIEValueAllocator, (dwarf::Tag)Module->getTag()); in constructImportedEntityDIE() 1269 DIE *EntityDie; in constructImportedEntityDIE() 1304 DIE *D = getDIE(SP); in finishSubprogramDefinition() 1543 const DISubprogram *SP, DIE &SPDie) { in applySubprogramAttributesToDefinition() [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() 302 DenseMap<const DIE *, DwarfCompileUnit *> CUDieMap; 479 StringRef Name, const DIE &Die); 559 void initSkeletonUnit(const DwarfUnit &U, DIE &Die, 591 void addGnuPubAttributes(DwarfCompileUnit &U, DIE &D) const; 787 DIE &Die); 796 const DIE &Die); [all …]
|
| H A D | DwarfFile.h | 90 DenseMap<const MDNode *, DIE *> AbstractSPDies; 96 DenseMap<const MDNode *, DIE *> DITypeNodeToDieMap; 114 unsigned computeSizeAndOffset(DIE &Die, unsigned Offset); 165 DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { in getAbstractSPDies() 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 { in getParent() 177 return Owner.dyn_cast<DIE*>(); in getParent() 180 DIEAbbrev DIE::generateAbbrev() const { in generateAbbrev() 191 uint64_t DIE::getDebugSectionOffset() const { in getDebugSectionOffset() 197 const DIE *DIE::getUnitDie() const { in getUnitDie() 198 const DIE *p = this; in getUnitDie() 209 DIEUnit *DIE::getUnit() const { in getUnit() 210 const DIE *UnitDie = getUnitDie(); in getUnit() 242 void DIE::print(raw_ostream &O, unsigned IndentCount) const { in print() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | DIEHashTest.cpp | 57 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 66 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 81 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 95 DIE &CU = *DIE::get(Alloc, dwarf::DW_TAG_compile_unit); in TEST_F() 111 DIE &N = *Foo; in TEST_F() 127 DIE &Int = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 158 DIE &Int = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 193 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 215 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 245 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | DIE.h | 39 class DIE; variable 315 DIE *Entry; 444 construct<DIE##T>(*X.get<DIE##T>()); \ in copyVal() 763 DIE() = delete; 764 DIE(const DIE &RHS) = delete; 765 DIE(DIE &&RHS) = delete; 766 DIE &operator=(const DIE &RHS) = delete; 767 DIE &operator=(const DIE &&RHS) = delete; 854 DIE &addChild(DIE *Child) { in addChild() 861 DIE &addChildFront(DIE *Child) { in addChildFront() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinkerCompileUnit.cpp | 46 auto DIE = OrigUnit.getDIEAtIndex(Idx++); in markEverythingAsKept() local 51 if (DIE.getTag() != dwarf::DW_TAG_variable && in markEverythingAsKept() 52 DIE.getTag() != dwarf::DW_TAG_constant) in markEverythingAsKept() 56 if (!(Value = DIE.find(dwarf::DW_AT_location))) { in markEverythingAsKept() 57 if ((Value = DIE.find(dwarf::DW_AT_const_value)) && in markEverythingAsKept() 88 DIE *RefDie; in fixupForwardReferences() 113 void CompileUnit::noteRangeAttribute(const DIE &Die, PatchLocation Attr) { in noteRangeAttribute() 124 void CompileUnit::addNamespaceAccelerator(const DIE *Die, in addNamespaceAccelerator() 129 void CompileUnit::addObjCAccelerator(const DIE *Die, in addObjCAccelerator() 135 void CompileUnit::addNameAccelerator(const DIE *Die, in addNameAccelerator() [all …]
|
| H A D | DWARFLinkerDeclContext.cpp | 45 DeclContextTree::getChildDeclContext(DeclContext &Context, const DWARFDie &DIE, in getChildDeclContext() argument 47 unsigned Tag = DIE.getTag(); in getChildDeclContext() 65 !dwarf::toUnsigned(DIE.find(dwarf::DW_AT_external), 0)) in getChildDeclContext() 79 if (dwarf::toUnsigned(DIE.find(dwarf::DW_AT_artificial), 0)) in getChildDeclContext() 87 if (const char *LinkageName = DIE.getLinkageName()) in getChildDeclContext() 89 else if (const char *ShortName = DIE.getShortName()) in getChildDeclContext() 116 ByteSize = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_byte_size), in getChildDeclContext() 120 dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_file), 0)) { in getChildDeclContext() 130 Line = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_line), 0); in getChildDeclContext() 169 Context, DIE, U.getUniqueID()); in getChildDeclContext() [all …]
|
| H A D | DWARFLinker.cpp | 210 const DWARFDie &DIE, CompileUnit &CU, in analyzeImportedModule() argument 241 DIE); in analyzeImportedModule() 391 return CU.getInfo(DIE).Prune; in analyzeContextInfo() 504 &DIE); in shouldKeepSubprogramDIE() 509 File, &DIE); in shouldKeepSubprogramDIE() 526 switch (DIE.getTag()) { in shouldKeepDIE() 912 DIE *NewRefDie = nullptr; in cloneDieReferenceAttribute() 1016 if (DIE *Clone = Info.Clone) in cloneExpression() 1979 DIE = RefDIE; in hashFullyQualifiedName() 2268 DIE *CUDie = DIE::get(DIEAlloc, dwarf::DW_TAG_compile_unit); in emitPaperTrailWarnings() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinkerCompileUnit.h | 27 DIE::value_iterator I; 30 PatchLocation(DIE::value_iterator I) : I(I) {} in PatchLocation() 58 DIE *Clone; 108 DIE *getOutputUnitDIE() const { in getOutputUnitDIE() 167 void noteForwardReference(DIE *Die, const CompileUnit *RefUnit, 182 void noteRangeAttribute(const DIE &Die, PatchLocation Attr); 192 void addNameAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name, 198 void addObjCAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name, 212 const DIE *Die; 223 AccelInfo(DwarfStringPoolEntryRef Name, const DIE *Die, [all …]
|
| H A D | DWARFLinker.h | 56 virtual bool isLiveVariable(const DWARFDie &DIE, 62 virtual bool isLiveSubprogram(const DWARFDie &DIE, 90 virtual void emitPaperTrailWarningsDie(DIE &Die) = 0; 178 virtual void emitDIE(DIE &Die) = 0; 215 const DWARFDie *DIE)> 387 const DWARFDie *DIE = nullptr) const { 389 Options.WarningHandler(Warning, File.FileName, DIE); 393 const DWARFDie *DIE = nullptr) const { 395 Options.ErrorHandler(Warning, File.FileName, DIE); 565 bool IsLittleEndian, DIE *Die = nullptr); [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/dsymutil/ |
| H A D | basic-linking.test | 29 CHECK-NEXT: Keeping subprogram DIE: 34 CHECK-NEXT: Keeping variable DIE: 39 CHECK-NEXT: Keeping variable DIE: 44 CHECK-NEXT: Keeping subprogram DIE: 49 CHECK-NEXT: Keeping subprogram DIE: 55 CHECK-NEXT: Keeping variable DIE: 60 CHECK-NEXT: Keeping subprogram DIE: 65 CHECK-NEXT: Keeping subprogram DIE: 92 CHECK-LTO-NEXT: Keeping variable DIE: 97 CHECK-LTO-NEXT: Keeping variable DIE: [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/ |
| H A D | DebugInfoLinker.cpp | 72 bool isLiveSubprogram(const DWARFDie &DIE, in isLiveSubprogram() argument 74 assert((DIE.getTag() == dwarf::DW_TAG_subprogram || in isLiveSubprogram() 75 DIE.getTag() == dwarf::DW_TAG_label) && in isLiveSubprogram() 79 dwarf::toAddress(DIE.find(dwarf::DW_AT_low_pc))) { in isLiveSubprogram() 80 if (!isDeadAddress(*LowPC, DIE.getDwarfUnit()->getVersion(), in isLiveSubprogram() 82 DIE.getDwarfUnit()->getAddressByteSize())) { in isLiveSubprogram() 92 bool isLiveVariable(const DWARFDie &DIE, in isLiveVariable() argument 94 assert((DIE.getTag() == dwarf::DW_TAG_variable || in isLiveVariable() 95 DIE.getTag() == dwarf::DW_TAG_constant) && in isLiveVariable() 99 DIE.getLocations(dwarf::DW_AT_location)) { in isLiveVariable() [all …]
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | DWARFRewriter.cpp | 49 static void printDie(const DWARFDie &DIE) { in printDie() argument 55 DIE.dump(dbgs(), 0, DumpOpts); in printDie() 232 const DWARFDie &DIE = Unit.getUnitDIE(); in updateDebugInfo() local 389 DWARFDie DIE(&Unit, &Die); in updateUnitDebugInfo() local 391 switch (DIE.getTag()) { in updateUnitDebugInfo() 425 DIE.getAddressRanges(); in updateUnitDebugInfo() 734 assert(DIE.isValid() && "Invalid DIE."); in updateUnitDebugInfo() 777 if (!DIE) in updateDWARFObjectAddressRanges() 781 DIE.getAbbreviationDeclarationPtr(); in updateDWARFObjectAddressRanges() 852 .insertNewEntry(DIE, *RangesBase); in updateDWARFObjectAddressRanges() [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Rewrite/ |
| H A D | DWARFRewriter.h | 112 void updateDWARFObjectAddressRanges(const DWARFDie DIE, 144 DWARFDebugInfoEntry DIE; member 146 DWARFDieWrapper(DWARFUnit *Unit, DWARFDebugInfoEntry DIE) in DWARFDieWrapper() 147 : Unit(Unit), DIE(DIE) {} in DWARFDieWrapper() 150 : Unit(Die.getDwarfUnit()), DIE(*Die.getDebugInfoEntry()) {} in DWARFDieWrapper() 152 operator DWARFDie() { return DWARFDie(Unit, &DIE); } in DWARFDie() 172 void convertToRangesPatchDebugInfo(DWARFDie DIE, uint64_t RangesSectionOffset,
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/ |
| H A D | DW_TAG_GNU_call_site-DW_AT_low_pc.s | 72 .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) 79 .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) 88 .uleb128 0x3 # (DIE (0x4f) DW_TAG_GNU_call_site) 91 .uleb128 0x4 # (DIE (0x5c) DW_TAG_GNU_call_site_parameter) 96 .byte 0 # end of children of DIE 0x4f 97 .byte 0 # end of children of DIE 0x2d 99 .uleb128 0x5 # (DIE (0x63) DW_TAG_base_type) 104 .uleb128 0x6 # (DIE (0x6a) DW_TAG_subprogram) 112 .uleb128 0x7 # (DIE (0x86) DW_TAG_formal_parameter) 116 .byte 0 # end of children of DIE 0x6a [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-dwarfdump/X86/ |
| H A D | debug-names-verify-completeness.s | 3 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_namespace) with name namesp missin… 4 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_block_addr… 5 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_namespace) with name (anonymous na… 6 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_addr m… 7 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_tls mi… 8 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_gnu_tl… 9 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_subprogram) with name fun_name mis… 10 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_subprogram) with name _Z8fun_name … 11 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_inlined_subroutine) with name fun_… 12 # CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_label) with name label missing.
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | cxx-decl.cpp | 176 struct DIE { 180 void test (DIE die, DIE *Die, DIE INT, DIE *FLOAT) { 181 DIE.foo(); // expected-error {{cannot use dot operator on a type}} 184 DIE->foo(); // expected-error {{cannot use arrow operator on a type}}
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/ |
| H A D | DwarfGenerator.h | 29 class DIE; variable 57 class DIE { 59 llvm::DIE *Die; 65 DIE(CompileUnit *U = nullptr, llvm::DIE *D = nullptr) : CU(U), Die(D) {} in CU() 118 void addAttribute(uint16_t Attr, dwarf::Form Form, dwarfgen::DIE &RefDie); 141 dwarfgen::DIE addChild(dwarf::Tag Tag); 159 DIE getUnitDIE();
|
| H A D | DwarfGenerator.cpp | 48 unsigned dwarfgen::DIE::computeSizeAndOffsets(unsigned Offset) { in computeSizeAndOffsets() 54 void dwarfgen::DIE::addAttribute(uint16_t A, dwarf::Form Form, uint64_t U) { in addAttribute() 66 void dwarfgen::DIE::addAttribute(uint16_t A, dwarf::Form Form, in addAttribute() 98 void dwarfgen::DIE::addAttribute(uint16_t A, dwarf::Form Form, in addAttribute() 99 dwarfgen::DIE &RefDie) { in addAttribute() 120 void dwarfgen::DIE::addAttribute(uint16_t A, dwarf::Form Form) { in addAttribute() 127 void dwarfgen::DIE::addStrOffsetsBaseAttribute() { in addStrOffsetsBaseAttribute() 145 dwarfgen::DIE dwarfgen::DIE::addChild(dwarf::Tag Tag) { in addChild() 147 return dwarfgen::DIE(CU, in addChild() 151 dwarfgen::DIE dwarfgen::CompileUnit::getUnitDIE() { in getUnitDIE() [all …]
|