Home
last modified time | relevance | path

Searched refs:DIE (Results 1 – 25 of 183) sorted by relevance

12345678

/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfUnit.h77 DIE &UnitDie;
87 DIE *IndexTyDie;
91 DenseMap<const MDNode *, DIE *> MDNodeToDieMap;
102 DenseMap<DIE *, const DINode *> ContainingTypeMap;
110 bool applySubprogramDefinitionAttributes(const DISubprogram *SP, DIE &SPDie);
126 DIE &getUnitDie() { return UnitDie; } in getUnitDie()
141 virtual void addGlobalName(StringRef Name, DIE &Die, const DIScope *Context) { in addGlobalName()
145 virtual void addGlobalType(const DIType *Ty, const DIE &Die, in addGlobalType()
153 DIE *getDIE(const DINode *D) const;
163 void insertDIE(const DINode *Desc, DIE *D);
[all …]
DDwarfCompileUnit.h25 class DIE; variable
40 DIE::value_iterator StmtListValue;
58 StringMap<const DIE *> GlobalNames;
61 StringMap<const DIE *> GlobalTypes;
76 DIE *constructVariableDIEImpl(const DbgVariable &DV, bool Abstract);
97 void applyStmtList(DIE &D);
100 DIE *getOrCreateGlobalVariableDIE(const DIGlobalVariable *GV);
104 void addLabelAddress(DIE &Die, dwarf::Attribute Attribute,
109 void addLocalLabelAddress(DIE &Die, dwarf::Attribute Attribute,
113 DIE::value_iterator addSectionDelta(DIE &Die, dwarf::Attribute Attribute,
[all …]
DDwarfCompileUnit.cpp31 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress()
50 void DwarfCompileUnit::addLocalLabelAddress(DIE &Die, in addLocalLabelAddress()
104 DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE( in getOrCreateGlobalVariableDIE()
107 if (DIE *Die = getDIE(GV)) in getOrCreateGlobalVariableDIE()
117 DIE *ContextDIE = getOrCreateContextDIE(GVContext); in getOrCreateGlobalVariableDIE()
120 DIE *VariableDIE = &createAndAddDIE(GV->getTag(), *ContextDIE, GV); in getOrCreateGlobalVariableDIE()
127 DIE *VariableSpecDIE = getOrCreateStaticMemberDIE(SDMDecl); in getOrCreateGlobalVariableDIE()
248 DIE::value_iterator
249 DwarfCompileUnit::addSectionLabel(DIE &Die, dwarf::Attribute Attribute, in addSectionLabel()
275 void DwarfCompileUnit::applyStmtList(DIE &D) { in applyStmtList()
[all …]
DDwarfUnit.cpp48 DIELoc &DIE) in DIEDwarfExpression() argument
50 DIE(DIE) {} in DIEDwarfExpression()
53 DU.addUInt(DIE, dwarf::DW_FORM_data1, Op); in EmitOp()
56 DU.addSInt(DIE, dwarf::DW_FORM_sdata, Value); in EmitSigned()
59 DU.addUInt(DIE, dwarf::DW_FORM_udata, Value); in EmitUnsigned()
68 : CUNode(Node), UnitDie(*DIE::get(DIEValueAllocator, UnitTag)), Asm(A), in DwarfUnit()
170 DIE *DwarfUnit::getDIE(const DINode *D) const { in getDIE()
176 void DwarfUnit::insertDIE(const DINode *Desc, DIE *D) { in insertDIE()
184 void DwarfUnit::addFlag(DIE &Die, dwarf::Attribute Attribute) { in addFlag()
217 void DwarfUnit::addString(DIE &Die, dwarf::Attribute Attribute, in addString()
[all …]
DDIEHash.h88 uint64_t computeCUSignature(const DIE &Die);
91 uint64_t computeTypeSignature(const DIE &Die);
96 void addParentContext(const DIE &Die);
99 void addAttributes(const DIE &Die);
102 void computeHash(const DIE &Die);
121 void collectAttributes(const DIE &Die, DIEAttrs &Attrs);
128 void hashBlockData(const DIE::const_value_range &Values);
138 const DIE &Entry);
143 void hashShallowTypeReference(dwarf::Attribute Attribute, const DIE &Entry,
150 void hashNestedType(const DIE &Die, StringRef Name);
[all …]
DDwarfFile.h31 class DIE; variable
58 DenseMap<const MDNode *, DIE *> AbstractSPDies;
63 DenseMap<const MDNode *, DIE *> DITypeNodeToDieMap;
75 unsigned computeSizeAndOffset(DIE &Die, unsigned Offset);
88 DIEAbbrev &assignAbbrevNumber(DIE &Die);
116 DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { in getAbstractSPDies()
120 void insertDIE(const MDNode *TypeMD, DIE *Die) { in insertDIE()
123 DIE *getDIE(const MDNode *TypeMD) { in getDIE()
DDIEHash.cpp33 static StringRef getDIEStringAttr(const DIE &Die, uint16_t Attr) { in getDIEStringAttr()
81 void DIEHash::addParentContext(const DIE &Parent) { in addParentContext()
87 SmallVector<const DIE *, 1> Parents; in addParentContext()
88 const DIE *Cur = &Parent; in addParentContext()
98 for (SmallVectorImpl<const DIE *>::reverse_iterator I = Parents.rbegin(), in addParentContext()
101 const DIE &Die = **I; in addParentContext()
118 void DIEHash::collectAttributes(const DIE &Die, DIEAttrs &Attrs) { in collectAttributes()
185 const DIE &Entry, StringRef Name) { in hashShallowTypeReference()
193 if (const DIE *Parent = Entry.getParent()) in hashShallowTypeReference()
224 const DIE &Entry) { in hashDIEEntry()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DDwarfUnit.h84 DIE *IndexTyDie;
88 DenseMap<const MDNode *, DIE *> MDNodeToDieMap;
99 DenseMap<DIE *, const DINode *> ContainingTypeMap;
104 bool applySubprogramDefinitionAttributes(const DISubprogram *SP, DIE &SPDie);
130 virtual void addGlobalName(StringRef Name, const DIE &Die,
134 virtual void addGlobalType(const DIType *Ty, const DIE &Die,
142 DIE *getDIE(const DINode *D) const;
152 void insertDIE(const DINode *Desc, DIE *D);
155 void addFlag(DIE &Die, dwarf::Attribute Attribute);
175 void addString(DIE &Die, dwarf::Attribute Attribute, StringRef Str);
[all …]
DDwarfCompileUnit.h50 DIE::value_iterator StmtListValue;
67 StringMap<const DIE *> GlobalNames;
70 StringMap<const DIE *> GlobalTypes;
83 DenseMap<const MDNode *, DIE *> AbstractSPDies;
91 DIE *constructVariableDIEImpl(const DbgVariable &DV, bool Abstract);
95 DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { in getAbstractSPDies()
122 void applyStmtList(DIE &D);
131 DIE *
137 void addLabelAddress(DIE &Die, dwarf::Attribute Attribute,
142 void addLocalLabelAddress(DIE &Die, dwarf::Attribute Attribute,
[all …]
DDIEHash.h39 uint64_t computeCUSignature(StringRef DWOName, const DIE &Die);
42 uint64_t computeTypeSignature(const DIE &Die);
47 void addParentContext(const DIE &Parent);
50 void addAttributes(const DIE &Die);
53 void computeHash(const DIE &Die);
72 void collectAttributes(const DIE &Die, DIEAttrs &Attrs);
79 void hashBlockData(const DIE::const_value_range &Values);
89 const DIE &Entry);
94 void hashShallowTypeReference(dwarf::Attribute Attribute, const DIE &Entry,
101 void hashNestedType(const DIE &Die, StringRef Name);
[all …]
DDwarfUnit.cpp51 DIELoc &DIE) in DIEDwarfExpression() argument
53 DIE(DIE) {} in DIEDwarfExpression()
56 DU.addUInt(DIE, dwarf::DW_FORM_data1, Op); in emitOp()
60 DU.addSInt(DIE, dwarf::DW_FORM_sdata, Value); in emitSigned()
64 DU.addUInt(DIE, dwarf::DW_FORM_udata, Value); in emitUnsigned()
186 DIE *DwarfUnit::getDIE(const DINode *D) const { in getDIE()
192 void DwarfUnit::insertDIE(const DINode *Desc, DIE *D) { in insertDIE()
200 void DwarfUnit::addFlag(DIE &Die, dwarf::Attribute Attribute) { in addFlag()
235 void DwarfUnit::addString(DIE &Die, dwarf::Attribute Attribute, in addString()
272 void DwarfUnit::addSectionOffset(DIE &Die, dwarf::Attribute Attribute, in addSectionOffset()
[all …]
DDwarfCompileUnit.cpp65 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress()
83 void DwarfCompileUnit::addLocalLabelAddress(DIE &Die, in addLocalLabelAddress()
111 DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE( in getOrCreateGlobalVariableDIE()
114 if (DIE *Die = getDIE(GV)) in getOrCreateGlobalVariableDIE()
124 DIE *ContextDIE = getOrCreateContextDIE(GVContext); in getOrCreateGlobalVariableDIE()
127 DIE *VariableDIE = &createAndAddDIE(GV->getTag(), *ContextDIE, GV); in getOrCreateGlobalVariableDIE()
134 DIE *VariableSpecDIE = getOrCreateStaticMemberDIE(SDMDecl); in getOrCreateGlobalVariableDIE()
298 void DwarfCompileUnit::applyStmtList(DIE &D) { in applyStmtList()
302 void DwarfCompileUnit::attachLowHighPC(DIE &D, const MCSymbol *Begin, in attachLowHighPC()
319 DIE &DwarfCompileUnit::updateSubprogramScopeDIE(const DISubprogram *SP) { in updateSubprogramScopeDIE()
[all …]
DDIEHash.cpp33 static StringRef getDIEStringAttr(const DIE &Die, uint16_t Attr) { in getDIEStringAttr()
81 void DIEHash::addParentContext(const DIE &Parent) { in addParentContext()
87 SmallVector<const DIE *, 1> Parents; in addParentContext()
88 const DIE *Cur = &Parent; in addParentContext()
98 for (SmallVectorImpl<const DIE *>::reverse_iterator I = Parents.rbegin(), in addParentContext()
101 const DIE &Die = **I; in addParentContext()
118 void DIEHash::collectAttributes(const DIE &Die, DIEAttrs &Attrs) { in collectAttributes()
137 const DIE &Entry, StringRef Name) { in hashShallowTypeReference()
145 if (const DIE *Parent = Entry.getParent()) in hashShallowTypeReference()
176 const DIE &Entry) { in hashDIEEntry()
[all …]
DDwarfDebug.h53 class DIE; variable
79 DIE *TheDIE = nullptr; /// Variable DIE.
132 void setDIE(DIE &D) { TheDIE = &D; } in setDIE()
133 DIE *getDIE() const { return TheDIE; } in getDIE()
212 DenseMap<const DIE *, DwarfCompileUnit *> CUDieMap;
350 const DIE &Die);
394 const StringMap<const DIE *> &Globals);
423 void initSkeletonUnit(const DwarfUnit &U, DIE &Die,
455 void addGnuPubAttributes(DwarfCompileUnit &U, DIE &D) const;
520 DIE &Die, const DICompositeType *CTy);
[all …]
/external/llvm/unittests/CodeGen/
DDIEHashTest.cpp41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
79 DIE &CU = *DIE::get(Alloc, dwarf::DW_TAG_compile_unit); in TEST_F()
81 auto Space = DIE::get(Alloc, dwarf::DW_TAG_namespace); in TEST_F()
90 auto Foo = DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
95 DIE &N = *Foo; in TEST_F()
107 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
111 DIE &Int = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
120 auto Member = DIE::get(Alloc, dwarf::DW_TAG_member); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DDIEHashTest.cpp41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
79 DIE &CU = *DIE::get(Alloc, dwarf::DW_TAG_compile_unit); in TEST_F()
81 auto Space = DIE::get(Alloc, dwarf::DW_TAG_namespace); in TEST_F()
90 auto Foo = DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
95 DIE &N = *Foo; in TEST_F()
107 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
111 DIE &Int = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
120 auto Member = DIE::get(Alloc, dwarf::DW_TAG_member); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DDIE.h40 class DIE; variable
154 DIEAbbrev &uniqueAbbreviation(DIE &Die);
295 DIE *Entry;
299 explicit DIEEntry(DIE &E) : Entry(&E) {} in DIEEntry()
301 DIE &getEntry() const { return *Entry; } in getEntry()
386 destruct<DIE##T>(); \ in destroyVal()
390 destruct<const DIE##T *>(); \ in destroyVal()
407 construct<DIE##T>(*X.get<DIE##T>()); \ in copyVal()
411 construct<const DIE##T *>(*X.get<const DIE##T *>()); \ in copyVal()
436 DIEValue(dwarf::Attribute Attribute, dwarf::Form Form, const DIE##T &V) \
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DCompileUnit.cpp34 auto DIE = OrigUnit.getDIEAtIndex(Idx++); in markEverythingAsKept() local
39 if (DIE.getTag() != dwarf::DW_TAG_variable && in markEverythingAsKept()
40 DIE.getTag() != dwarf::DW_TAG_constant) in markEverythingAsKept()
44 if (!(Value = DIE.find(dwarf::DW_AT_location))) { in markEverythingAsKept()
45 if ((Value = DIE.find(dwarf::DW_AT_const_value)) && in markEverythingAsKept()
70 void CompileUnit::noteForwardReference(DIE *Die, const CompileUnit *RefUnit, in noteForwardReference()
77 DIE *RefDie; in fixupForwardReferences()
100 void CompileUnit::noteRangeAttribute(const DIE &Die, PatchLocation Attr) { in noteRangeAttribute()
111 void CompileUnit::addNamespaceAccelerator(const DIE *Die, in addNamespaceAccelerator()
116 void CompileUnit::addObjCAccelerator(const DIE *Die, in addObjCAccelerator()
[all …]
DCompileUnit.h31 DIE::value_iterator I;
34 PatchLocation(DIE::value_iterator I) : I(I) {} in PatchLocation()
62 DIE *Clone;
110 DIE *getOutputUnitDIE() const { in getOutputUnitDIE()
163 void noteForwardReference(DIE *Die, const CompileUnit *RefUnit,
178 void noteRangeAttribute(const DIE &Die, PatchLocation Attr);
185 void addNamespaceAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name);
188 void addNameAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name,
194 void addObjCAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name,
199 void addTypeAccelerator(const DIE *Die, DwarfStringPoolEntryRef Name,
[all …]
DDeclContext.cpp46 DeclContext &Context, const DWARFDie &DIE, CompileUnit &U, in getChildDeclContext() argument
48 unsigned Tag = DIE.getTag(); in getChildDeclContext()
66 !dwarf::toUnsigned(DIE.find(dwarf::DW_AT_external), 0)) in getChildDeclContext()
80 if (dwarf::toUnsigned(DIE.find(dwarf::DW_AT_artificial), 0)) in getChildDeclContext()
85 const char *Name = DIE.getName(DINameKind::LinkageName); in getChildDeclContext()
86 const char *ShortName = DIE.getName(DINameKind::ShortName); in getChildDeclContext()
120 ByteSize = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_byte_size), in getChildDeclContext()
124 dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_file), 0)) { in getChildDeclContext()
134 Line = dwarf::toUnsigned(DIE.find(dwarf::DW_AT_decl_line), 0); in getChildDeclContext()
188 Context, DIE, U.getUniqueID()); in getChildDeclContext()
[all …]
DDwarfLinker.h67 const DWARFDie *DIE = nullptr) const;
187 const UnitListTy &Units, const DWARFDie &DIE,
228 const UnitListTy &Units, const DWARFDie &DIE,
234 const DWARFDie &DIE, const DebugMapObject &DMO,
239 const DWARFDie &DIE, CompileUnit &Unit,
243 RangesTy &Ranges, const DWARFDie &DIE,
285 DIE *cloneDIE(const DWARFDie &InputDIE, const DebugMapObject &DMO,
288 DIE *Die = nullptr);
332 unsigned cloneAttribute(DIE &Die, const DWARFDie &InputDIE,
342 unsigned cloneStringAttribute(DIE &Die, AttributeSpec AttrSpec,
[all …]
/external/llvm/include/llvm/CodeGen/
DDIE.h222 class DIE; variable
224 DIE *Entry;
229 explicit DIEEntry(DIE &E) : Entry(&E) {} in DIEEntry()
231 DIE &getEntry() const { return *Entry; } in getEntry()
325 destruct<DIE##T>(); in destroyVal()
329 destruct<const DIE##T *>(); in destroyVal()
346 construct<DIE##T>(*X.get<DIE##T>()); \ in copyVal()
350 construct<const DIE##T *>(*X.get<const DIE##T *>()); \ in copyVal()
372 DIEValue(dwarf::Attribute Attribute, dwarf::Form Form, const DIE##T &V) \
374 construct<DIE##T>(V); \
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DDWARFUnit.cpp165 for (auto &DIE : DieArray) { in setDIERelations() local
167 SiblingChain->setSibling(&DIE); in setDIERelations()
170 DIE.getAbbreviationDeclarationPtr()) { in setDIERelations()
173 ParentChain.push_back(&DIE); in setDIERelations()
176 SiblingChain = &DIE; in setDIERelations()
198 DWARFDebugInfoEntryMinimal DIE; in extractDIEsToVector() local
202 while (DIEOffset < NextCUOffset && DIE.extractFast(this, &DIEOffset)) { in extractDIEsToVector()
205 Dies.push_back(DIE); in extractDIEsToVector()
214 Dies.push_back(DIE); in extractDIEsToVector()
218 DIE.getAbbreviationDeclarationPtr()) { in extractDIEsToVector()
[all …]
/external/libxml2/
Dautogen.sh9 DIE=0
16 DIE=1
24 DIE=1
29 DIE=1
35 if test "$DIE" -eq 1; then
/external/clang/test/Parser/
Dcxx-decl.cpp174 struct DIE {
178 void test (DIE die, DIE *Die, DIE INT, DIE *FLOAT) {
179 DIE.foo(); // expected-error {{cannot use dot operator on a type}}
182 DIE->foo(); // expected-error {{cannot use arrow operator on a type}}

12345678