Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:DIE

22 #include "llvm/CodeGen/DIE.h"
77 DIE &UnitDie;
87 DIE *IndexTyDie;
91 DenseMap<const MDNode *, DIE *> MDNodeToDieMap;
100 /// DW_AT_containing_type attribute. This attribute points to a DIE that
101 /// corresponds to the MDNode mapped with the subprogram DIE.
102 DenseMap<DIE *, const DINode *> ContainingTypeMap;
110 bool applySubprogramDefinitionAttributes(const DISubprogram *SP, DIE &SPDie);
126 DIE &getUnitDie() { return UnitDie; }
141 virtual void addGlobalName(StringRef Name, DIE &Die, const DIScope *Context) {
145 virtual void addGlobalType(const DIType *Ty, const DIE &Die,
148 /// Returns the DIE map slot for the specified debug variable.
153 DIE *getDIE(const DINode *D) const;
158 /// Insert DIE into the map.
163 void insertDIE(const DINode *Desc, DIE *D);
165 /// Add a flag that is true to the DIE.
166 void addFlag(DIE &Die, dwarf::Attribute Attribute);
169 void addUInt(DIEValueList &Die, dwarf::Attribute Attribute,
175 void addSInt(DIEValueList &Die, dwarf::Attribute Attribute,
178 void addSInt(DIELoc &Die, Optional<dwarf::Form> Form, int64_t Integer);
186 void addString(DIE &Die, dwarf::Attribute Attribute, StringRef Str);
189 DIEValueList::value_iterator addLabel(DIEValueList &Die,
194 void addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label);
197 void addSectionOffset(DIE &Die, dwarf::Attribute Attribute, uint64_t Integer);
201 void addOpAddress(DIELoc &Die, const MCSymbol *Label);
204 void addLabelDelta(DIE &Die, dwarf::Attribute Attribute, const MCSymbol *Hi,
207 /// Add a DIE attribute data and value.
208 void addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry);
210 /// Add a DIE attribute data and value.
211 void addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIEEntry Entry);
214 void addDIETypeSignature(DIE &Die, uint64_t Signature);
216 void addDIETypeSignature(DIE &Die, dwarf::Attribute Attribute,
220 void addBlock(DIE &Die, dwarf::Attribute Attribute, DIELoc *Block);
223 void addBlock(DIE &Die, dwarf::Attribute Attribute, DIEBlock *Block);
226 void addSourceLine(DIE &Die, unsigned Line, StringRef File,
228 void addSourceLine(DIE &Die, const DILocalVariable *V);
229 void addSourceLine(DIE &Die, const DIGlobalVariable *G);
230 void addSourceLine(DIE &Die, const DISubprogram *SP);
231 void addSourceLine(DIE &Die, const DIType *Ty);
232 void addSourceLine(DIE &Die, const DINamespace *NS);
233 void addSourceLine(DIE &Die, const DIObjCProperty *Ty);
235 /// Add constant value entry in variable DIE.
236 void addConstantValue(DIE &Die, const MachineOperand &MO, const DIType *Ty);
237 void addConstantValue(DIE &Die, const ConstantInt *CI, const DIType *Ty);
238 void addConstantValue(DIE &Die, const APInt &Val, const DIType *Ty);
239 void addConstantValue(DIE &Die, const APInt &Val, bool Unsigned);
240 void addConstantValue(DIE &Die, bool Unsigned, uint64_t Val);
242 /// Add constant value entry in variable DIE.
243 void addConstantFPValue(DIE &Die, const MachineOperand &MO);
244 void addConstantFPValue(DIE &Die, const ConstantFP *CFP);
247 void addLinkageName(DIE &Die, StringRef LinkageName);
250 void addTemplateParams(DIE &Buffer, DINodeArray TParams);
267 /// information to the die. Obsolete, please use addComplexAddress instead.
268 void addBlockByrefAddress(const DbgVariable &DV, DIE &Die,
276 void addType(DIE &Entity, const DIType *Ty,
279 DIE *getOrCreateNameSpace(const DINamespace *NS);
280 DIE *getOrCreateModule(const DIModule *M);
281 DIE *getOrCreateSubprogramDIE(const DISubprogram *SP, bool Minimal = false);
283 void applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie,
286 /// Find existing DIE or create new DIE for the given type.
287 DIE *getOrCreateTypeDIE(const MDNode *N);
289 /// Get context owner's DIE.
290 DIE *createTypeDIE(const DICompositeType *Ty);
292 /// Get context owner's DIE.
293 DIE *getOrCreateContextDIE(const DIScope *Context);
299 void constructSubprogramArguments(DIE &Buffer, DITypeRefArray Args);
301 /// Create a DIE with the given Tag, add the DIE to its parent, and
303 DIE &createAndAddDIE(unsigned Tag, DIE &Parent, const DINode *N = nullptr);
318 void constructTypeDIE(DIE &Buffer, const DICompositeType *CTy);
321 /// Create new static data member DIE.
322 DIE *getOrCreateStaticMemberDIE(const DIDerivedType *DT);
335 void constructTypeDIE(DIE &Buffer, const DIBasicType *BTy);
336 void constructTypeDIE(DIE &Buffer, const DIDerivedType *DTy);
337 void constructTypeDIE(DIE &Buffer, const DISubroutineType *DTy);
338 void constructSubrangeDIE(DIE &Buffer, const DISubrange *SR, DIE *IndexTy);
339 void constructArrayTypeDIE(DIE &Buffer, const DICompositeType *CTy);
340 void constructEnumTypeDIE(DIE &Buffer, const DICompositeType *CTy);
341 void constructMemberDIE(DIE &Buffer, const DIDerivedType *DT);
342 void constructTemplateTypeParameterDIE(DIE &Buffer,
344 void constructTemplateValueParameterDIE(DIE &Buffer,
353 DIE *getIndexTyDie();
356 void setIndexTyDie(DIE *D) { IndexTyDie = D; }
361 const DIE &TyDIE);
368 const DIE *Ty;
380 void setType(const DIE *Ty) { this->Ty = Ty; }
386 sizeof(uint32_t); // Type DIE Offset