Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:DIE

17 #include "DIE.h"
46 /// Die - Compile unit debug information entry.
48 const OwningPtr<DIE> CUDie;
58 DIE *IndexTyDie;
62 DenseMap<const MDNode *, DIE *> MDNodeToDieMap;
70 StringMap<DIE*> GlobalNames;
74 StringMap<DIE*> GlobalTypes;
78 StringMap<std::vector<DIE*> > AccelNames;
79 StringMap<std::vector<DIE*> > AccelObjC;
80 StringMap<std::vector<DIE*> > AccelNamespace;
81 StringMap<std::vector<std::pair<DIE*, unsigned> > > AccelTypes;
87 /// need DW_AT_containing_type attribute. This attribute points to a DIE that
88 /// corresponds to the MDNode mapped with the subprogram DIE.
89 DenseMap<DIE *, const MDNode *> ContainingTypeMap;
99 CompileUnit(unsigned UID, unsigned L, DIE *D, const MDNode *N, AsmPrinter *A,
106 DIE* getCUDie() const { return CUDie.get(); }
108 const StringMap<DIE*> &getGlobalNames() const { return GlobalNames; }
109 const StringMap<DIE*> &getGlobalTypes() const { return GlobalTypes; }
111 const StringMap<std::vector<DIE*> > &getAccelNames() const {
114 const StringMap<std::vector<DIE*> > &getAccelObjC() const {
117 const StringMap<std::vector<DIE*> > &getAccelNamespace() const {
120 const StringMap<std::vector<std::pair<DIE*, unsigned > > >
132 void addGlobalName(StringRef Name, DIE *Die) { GlobalNames[Name] = Die; }
140 void addAccelName(StringRef Name, DIE *Die) {
141 std::vector<DIE*> &DIEs = AccelNames[Name];
142 DIEs.push_back(Die);
144 void addAccelObjC(StringRef Name, DIE *Die) {
145 std::vector<DIE*> &DIEs = AccelObjC[Name];
146 DIEs.push_back(Die);
148 void addAccelNamespace(StringRef Name, DIE *Die) {
149 std::vector<DIE*> &DIEs = AccelNamespace[Name];
150 DIEs.push_back(Die);
152 void addAccelType(StringRef Name, std::pair<DIE *, unsigned> Die) {
153 std::vector<std::pair<DIE *, unsigned> > &DIEs = AccelTypes[Name];
154 DIEs.push_back(Die);
159 DIE *getDIE(const MDNode *N) const { return MDNodeToDieMap.lookup(N); }
165 /// insertDIE - Insert DIE into the map.
166 void insertDIE(const MDNode *N, DIE *D) {
181 /// addDie - Adds or interns the DIE to the compile unit.
183 void addDie(DIE *Buffer) {
188 DIE *getIndexTyDie() {
194 void setIndexTyDie(DIE *D) {
198 /// addFlag - Add a flag that is true to the DIE.
199 void addFlag(DIE *Die, unsigned Attribute);
203 void addUInt(DIE *Die, unsigned Attribute, unsigned Form, uint64_t Integer);
207 void addSInt(DIE *Die, unsigned Attribute, unsigned Form, int64_t Integer);
211 void addString(DIE *Die, unsigned Attribute, const StringRef Str);
215 void addLocalString(DIE *Die, unsigned Attribute, const StringRef Str);
219 void addExpr(DIE *Die, unsigned Attribute, unsigned Form,
224 void addLabel(DIE *Die, unsigned Attribute, unsigned Form,
230 void addLabelAddress(DIE *Die, unsigned Attribute, MCSymbol *Label);
235 void addOpAddress(DIE *Die, const MCSymbol *Label);
236 void addOpAddress(DIE *Die, const MCSymbolRefExpr *Label);
240 void addDelta(DIE *Die, unsigned Attribute, unsigned Form,
243 /// addDIEEntry - Add a DIE attribute data and value.
245 void addDIEEntry(DIE *Die, unsigned Attribute, unsigned Form, DIE *Entry);
249 void addBlock(DIE *Die, unsigned Attribute, unsigned Form, DIEBlock *Block);
253 void addSourceLine(DIE *Die, DIVariable V);
254 void addSourceLine(DIE *Die, DIGlobalVariable G);
255 void addSourceLine(DIE *Die, DISubprogram SP);
256 void addSourceLine(DIE *Die, DIType Ty);
257 void addSourceLine(DIE *Die, DINameSpace NS);
258 void addSourceLine(DIE *Die, DIObjCProperty Ty);
260 /// addAddress - Add an address attribute to a die based on the location
262 void addAddress(DIE *Die, unsigned Attribute,
265 /// addConstantValue - Add constant value entry in variable DIE.
266 void addConstantValue(DIE *Die, const MachineOperand &MO, DIType Ty);
267 void addConstantValue(DIE *Die, const ConstantInt *CI, bool Unsigned);
268 void addConstantValue(DIE *Die, const APInt &Val, bool Unsigned);
270 /// addConstantFPValue - Add constant value entry in variable DIE.
271 void addConstantFPValue(DIE *Die, const MachineOperand &MO);
272 void addConstantFPValue(DIE *Die, const ConstantFP *CFP);
275 void addTemplateParams(DIE &Buffer, DIArray TParams);
278 void addRegisterOp(DIE *TheDie, unsigned Reg);
281 void addRegisterOffset(DIE *TheDie, unsigned Reg, int64_t Offset);
286 /// the starting location. Add the DWARF information to the die.
288 void addComplexAddress(const DbgVariable &DV, DIE *Die, unsigned Attribute,
295 /// starting location. Add the DWARF information to the die. Obsolete,
298 void addBlockByrefAddress(const DbgVariable &DV, DIE *Die, unsigned Attribute,
303 void addVariableAddress(const DbgVariable &DV, DIE *Die,
306 /// addToContextOwner - Add Die into the list of its context owner's children.
307 void addToContextOwner(DIE *Die, DIDescriptor Context);
312 void addType(DIE *Entity, DIType Ty, unsigned Attribute = dwarf::DW_AT_type);
314 /// getOrCreateNameSpace - Create a DIE for DINameSpace.
315 DIE *getOrCreateNameSpace(DINameSpace NS);
317 /// getOrCreateSubprogramDIE - Create new DIE using SP.
318 DIE *getOrCreateSubprogramDIE(DISubprogram SP);
320 /// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
322 DIE *getOrCreateTypeDIE(const MDNode *N);
324 /// getOrCreateTemplateTypeParameterDIE - Find existing DIE or create new DIE
326 DIE *getOrCreateTemplateTypeParameterDIE(DITemplateTypeParameter TP);
328 /// getOrCreateTemplateValueParameterDIE - Find existing DIE or create
329 /// new DIE for the given DITemplateValueParameter.
330 DIE *getOrCreateTemplateValueParameterDIE(DITemplateValueParameter TVP);
334 DIEEntry *createDIEEntry(DIE *Entry);
336 /// createGlobalVariableDIE - create global variable DIE.
341 /// constructTypeDIE - Construct basic type die from DIBasicType.
342 void constructTypeDIE(DIE &Buffer,
345 /// constructTypeDIE - Construct derived type die from DIDerivedType.
346 void constructTypeDIE(DIE &Buffer,
349 /// constructTypeDIE - Construct type DIE from DICompositeType.
350 void constructTypeDIE(DIE &Buffer,
353 /// constructSubrangeDIE - Construct subrange DIE from DISubrange.
354 void constructSubrangeDIE(DIE &Buffer, DISubrange SR, DIE *IndexTy);
356 /// constructArrayTypeDIE - Construct array type DIE from DICompositeType.
357 void constructArrayTypeDIE(DIE &Buffer,
360 /// constructEnumTypeDIE - Construct enum type DIE from DIEnumerator.
361 DIE *constructEnumTypeDIE(DIEnumerator ETy);
367 /// constructVariableDIE - Construct a DIE for the given DbgVariable.
368 DIE *constructVariableDIE(DbgVariable *DV, bool isScopeAbstract);
370 /// createMemberDIE - Create new member DIE.
371 DIE *createMemberDIE(DIDerivedType DT);
373 /// createStaticMemberDIE - Create new static data member DIE.
374 DIE *createStaticMemberDIE(DIDerivedType DT);
376 /// getOrCreateContextDIE - Get context owner's DIE.
377 DIE *getOrCreateContextDIE(DIDescriptor Context);