• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/

Lines Matching refs:Die

222 void DwarfUnit::addFlag(DIE &Die, dwarf::Attribute Attribute) {
224 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_flag_present,
227 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_flag,
231 void DwarfUnit::addUInt(DIEValueList &Die, dwarf::Attribute Attribute,
237 Die.addValue(DIEValueAllocator, Attribute, *Form, DIEInteger(Integer));
245 void DwarfUnit::addSInt(DIEValueList &Die, dwarf::Attribute Attribute,
249 Die.addValue(DIEValueAllocator, Attribute, *Form, DIEInteger(Integer));
252 void DwarfUnit::addSInt(DIELoc &Die, Optional<dwarf::Form> Form,
254 addSInt(Die, (dwarf::Attribute)0, Form, Integer);
257 void DwarfUnit::addString(DIE &Die, dwarf::Attribute Attribute,
263 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_string,
287 Die.addValue(DIEValueAllocator, Attribute, IxForm,
291 DIEValueList::value_iterator DwarfUnit::addLabel(DIEValueList &Die,
295 return Die.addValue(DIEValueAllocator, Attribute, Form, DIELabel(Label));
298 void DwarfUnit::addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label) {
299 addLabel(Die, (dwarf::Attribute)0, Form, Label);
302 void DwarfUnit::addSectionOffset(DIE &Die, dwarf::Attribute Attribute,
305 addUInt(Die, Attribute, dwarf::DW_FORM_sec_offset, Integer);
307 addUInt(Die, Attribute, dwarf::DW_FORM_data4, Integer);
341 void DwarfUnit::addOpAddress(DIELoc &Die, const MCSymbol *Sym) {
343 addUInt(Die, dwarf::DW_FORM_data1, dwarf::DW_OP_addrx);
344 addUInt(Die, dwarf::DW_FORM_addrx, DD->getAddressPool().getIndex(Sym));
349 addUInt(Die, dwarf::DW_FORM_data1, dwarf::DW_OP_GNU_addr_index);
350 addUInt(Die, dwarf::DW_FORM_GNU_addr_index,
355 addUInt(Die, dwarf::DW_FORM_data1, dwarf::DW_OP_addr);
356 addLabel(Die, dwarf::DW_FORM_udata, Sym);
359 void DwarfUnit::addLabelDelta(DIE &Die, dwarf::Attribute Attribute,
361 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_data4,
365 void DwarfUnit::addDIEEntry(DIE &Die, dwarf::Attribute Attribute, DIE &Entry) {
366 addDIEEntry(Die, Attribute, DIEEntry(Entry));
369 void DwarfUnit::addDIETypeSignature(DIE &Die, uint64_t Signature) {
374 addFlag(Die, dwarf::DW_AT_declaration);
376 Die.addValue(DIEValueAllocator, dwarf::DW_AT_signature,
380 void DwarfUnit::addDIEEntry(DIE &Die, dwarf::Attribute Attribute,
382 const DIEUnit *CU = Die.getUnit();
385 // We assume that Die belongs to this CU, if it is not linked to any CU yet.
389 Die.addValue(DIEValueAllocator, Attribute,
395 DIE &Die = Parent.addChild(DIE::get(DIEValueAllocator, (dwarf::Tag)Tag));
397 insertDIE(N, &Die);
398 return Die;
401 void DwarfUnit::addBlock(DIE &Die, dwarf::Attribute Attribute, DIELoc *Loc) {
404 Die.addValue(DIEValueAllocator, Attribute,
408 void DwarfUnit::addBlock(DIE &Die, dwarf::Attribute Attribute,
412 Die.addValue(DIEValueAllocator, Attribute, Block->BestForm(), Block);
415 void DwarfUnit::addSourceLine(DIE &Die, unsigned Line, const DIFile *File) {
420 addUInt(Die, dwarf::DW_AT_decl_file, None, FileID);
421 addUInt(Die, dwarf::DW_AT_decl_line, None, Line);
424 void DwarfUnit::addSourceLine(DIE &Die, const DILocalVariable *V) {
427 addSourceLine(Die, V->getLine(), V->getFile());
430 void DwarfUnit::addSourceLine(DIE &Die, const DIGlobalVariable *G) {
433 addSourceLine(Die, G->getLine(), G->getFile());
436 void DwarfUnit::addSourceLine(DIE &Die, const DISubprogram *SP) {
439 addSourceLine(Die, SP->getLine(), SP->getFile());
442 void DwarfUnit::addSourceLine(DIE &Die, const DILabel *L) {
445 addSourceLine(Die, L->getLine(), L->getFile());
448 void DwarfUnit::addSourceLine(DIE &Die, const DIType *Ty) {
451 addSourceLine(Die, Ty->getLine(), Ty->getFile());
454 void DwarfUnit::addSourceLine(DIE &Die, const DIObjCProperty *Ty) {
457 addSourceLine(Die, Ty->getLine(), Ty->getFile());
509 void DwarfUnit::addConstantFPValue(DIE &Die, const MachineOperand &MO) {
528 addBlock(Die, dwarf::DW_AT_const_value, Block);
531 void DwarfUnit::addConstantFPValue(DIE &Die, const ConstantFP *CFP) {
533 addConstantValue(Die, CFP->getValueAPF().bitcastToAPInt(), true);
536 void DwarfUnit::addConstantValue(DIE &Die, const ConstantInt *CI,
538 addConstantValue(Die, CI->getValue(), Ty);
541 void DwarfUnit::addConstantValue(DIE &Die, const MachineOperand &MO,
545 addConstantValue(Die, isUnsignedDIType(DD, Ty), MO.getImm());
548 void DwarfUnit::addConstantValue(DIE &Die, uint64_t Val, const DIType *Ty) {
549 addConstantValue(Die, isUnsignedDIType(DD, Ty), Val);
552 void DwarfUnit::addConstantValue(DIE &Die, bool Unsigned, uint64_t Val) {
555 addUInt(Die, dwarf::DW_AT_const_value,
559 void DwarfUnit::addConstantValue(DIE &Die, const APInt &Val, const DIType *Ty) {
560 addConstantValue(Die, Val, isUnsignedDIType(DD, Ty));
563 void DwarfUnit::addConstantValue(DIE &Die, const APInt &Val, bool Unsigned) {
566 addConstantValue(Die, Unsigned,
589 addBlock(Die, dwarf::DW_AT_const_value, Block);
592 void DwarfUnit::addLinkageName(DIE &Die, StringRef LinkageName) {
594 addString(Die,
611 void DwarfUnit::addThrownTypes(DIE &Die, DINodeArray ThrownTypes) {
613 DIE &TT = createAndAddDIE(dwarf::DW_TAG_thrown_type, Die);
1721 DwarfUnit::addSectionDelta(DIE &Die, dwarf::Attribute Attribute,
1723 return Die.addValue(DIEValueAllocator, Attribute,
1730 DwarfUnit::addSectionLabel(DIE &Die, dwarf::Attribute Attribute,
1733 return addLabel(Die, Attribute,
1737 return addSectionDelta(Die, Attribute, Label, Sec);
1746 void DwarfTypeUnit::addGlobalName(StringRef Name, const DIE &Die,
1751 void DwarfTypeUnit::addGlobalType(const DIType *Ty, const DIE &Die,