Home
last modified time | relevance | path

Searched refs:dwarf (Results 1 – 25 of 688) sorted by relevance

12345678910>>...28

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDIE.cpp47 if (Form == dwarf::DW_FORM_implicit_const) in Profile()
70 AP->emitULEB128(Tag, dwarf::TagString(Tag).data()); in Emit()
73 AP->emitULEB128((unsigned)Children, dwarf::ChildrenString(Children).data()); in Emit()
81 dwarf::AttributeString(AttrData.getAttribute()).data()); in Emit()
87 if (!dwarf::isValidFormForVersion(AttrData.getForm(), in Emit()
96 dwarf::FormEncodingString(AttrData.getForm()).data()); in Emit()
99 if (AttrData.getForm() == dwarf::DW_FORM_implicit_const) in Emit()
113 << dwarf::TagString(Tag) in print()
115 << dwarf::ChildrenString(Children) in print()
120 << dwarf::AttributeString(Data[i].getAttribute()) in print()
[all …]
H A DDwarfUnit.cpp53 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_data1, Op); in emitOp()
57 CU.addSInt(getActiveDIE(), dwarf::DW_FORM_sdata, Value); in emitSigned()
61 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_udata, Value); in emitUnsigned()
65 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_data1, Value); in emitData1()
90 DwarfUnit::DwarfUnit(dwarf::Tag UnitTag, const DICompileUnit *Node, in DwarfUnit()
98 : DwarfUnit(dwarf::DW_TAG_type_unit, CU.getCUNode(), A, DW, DWU), CU(CU), in DwarfTypeUnit()
115 case dwarf::DW_LANG_C: in getDefaultLowerBound()
116 case dwarf::DW_LANG_C89: in getDefaultLowerBound()
117 case dwarf::DW_LANG_C_plus_plus: in getDefaultLowerBound()
120 case dwarf::DW_LANG_Fortran77: in getDefaultLowerBound()
[all …]
H A DDwarfExpression.cpp30 emitOp(dwarf::DW_OP_lit0 + Value); in emitConstu()
34 emitOp(dwarf::DW_OP_lit0); in emitConstu()
35 emitOp(dwarf::DW_OP_not); in emitConstu()
37 emitOp(dwarf::DW_OP_constu); in emitConstu()
48 emitOp(dwarf::DW_OP_reg0 + DwarfReg, Comment); in addReg()
50 emitOp(dwarf::DW_OP_regx, Comment); in addReg()
59 emitOp(dwarf::DW_OP_breg0 + DwarfReg); in addBReg()
61 emitOp(dwarf::DW_OP_bregx); in addBReg()
68 emitOp(dwarf::DW_OP_fbreg); in addFBReg()
78 emitOp(dwarf::DW_OP_bit_piece); in addOpPiece()
[all …]
H A DAsmPrinterDwarf.cpp63 case dwarf::DW_EH_PE_absptr: in DecodeDWARFEncoding()
65 case dwarf::DW_EH_PE_omit: in DecodeDWARFEncoding()
67 case dwarf::DW_EH_PE_pcrel: in DecodeDWARFEncoding()
69 case dwarf::DW_EH_PE_uleb128: in DecodeDWARFEncoding()
71 case dwarf::DW_EH_PE_sleb128: in DecodeDWARFEncoding()
73 case dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding()
75 case dwarf::DW_EH_PE_udata8: in DecodeDWARFEncoding()
77 case dwarf::DW_EH_PE_sdata4: in DecodeDWARFEncoding()
79 case dwarf::DW_EH_PE_sdata8: in DecodeDWARFEncoding()
81 case dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding()
[all …]
H A DDwarfCompileUnit.cpp45 static dwarf::Tag GetCompileUnitType(UnitKind Kind, DwarfDebug *DW) { in GetCompileUnitType()
53 return dwarf::DW_TAG_skeleton_unit; in GetCompileUnitType()
55 return dwarf::DW_TAG_compile_unit; in GetCompileUnitType()
68 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress()
87 DD->getDwarfVersion() >= 5 ? dwarf::DW_FORM_addrx in addLabelAddress()
88 : dwarf::DW_FORM_GNU_addr_index, in addLabelAddress()
101 addBlock(Die, Attribute, dwarf::DW_FORM_exprloc, Loc); in addLabelAddress()
103 addAttribute(Die, Attribute, dwarf::DW_FORM_LLVM_addrx_offset, in addLabelAddress()
109 dwarf::Attribute Attribute, in addLocalLabelAddress()
115 addAttribute(Die, Attribute, dwarf::DW_FORM_addr, DIELabel(Label)); in addLocalLabelAddress()
[all …]
H A DDebugHandlerBase.cpp54 Op->getOp() == dwarf::DW_OP_LLVM_arg) in extractFromMachineInstruction()
61 case dwarf::DW_OP_constu: { in extractFromMachineInstruction()
66 case dwarf::DW_OP_minus: in extractFromMachineInstruction()
69 case dwarf::DW_OP_plus: in extractFromMachineInstruction()
77 case dwarf::DW_OP_plus_uconst: in extractFromMachineInstruction()
80 case dwarf::DW_OP_LLVM_fragment: in extractFromMachineInstruction()
83 case dwarf::DW_OP_deref: in extractFromMachineInstruction()
156 if (Tag != dwarf::DW_TAG_member && Tag != dwarf::DW_TAG_typedef && in getBaseTypeSize()
157 Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && in getBaseTypeSize()
158 Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_atomic_type) in getBaseTypeSize()
[all …]
H A DDIEHash.cpp91 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit || in addParentContext()
92 Cur->getTag() == dwarf::DW_TAG_type_unit); in addParentContext()
108 StringRef Name = getDIEStringAttr(Die, dwarf::DW_AT_name); in addParentContext()
120 << dwarf::AttributeString(V.getAttribute()) in collectAttributes()
124 case dwarf::NAME: \ in collectAttributes()
134 void DIEHash::hashShallowTypeReference(dwarf::Attribute Attribute, in hashShallowTypeReference()
160 void DIEHash::hashRepeatedTypeReference(dwarf::Attribute Attribute, in hashRepeatedTypeReference()
173 void DIEHash::hashDIEEntry(dwarf::Attribute Attribute, dwarf::Tag Tag, in hashDIEEntry()
175 assert(Tag != dwarf::DW_TAG_friend && "No current LLVM clients emit friend " in hashDIEEntry()
180 if ((Tag == dwarf::DW_TAG_pointer_type || in hashDIEEntry()
[all …]
H A DDwarfUnit.h73 DwarfUnit(dwarf::Tag, const DICompileUnit *Node, AsmPrinter *A, DwarfDebug *DW,
81 void addAttribute(DIEValueList &Die, dwarf::Attribute Attribute, in addAttribute()
82 dwarf::Form Form, T &&Value) { in addAttribute()
89 DD->getDwarfVersion() < dwarf::AttributeVersion(Attribute)) in addAttribute()
144 void addFlag(DIE &Die, dwarf::Attribute Attribute);
147 void addUInt(DIEValueList &Die, dwarf::Attribute Attribute,
148 Optional<dwarf::Form> Form, uint64_t Integer);
150 void addUInt(DIEValueList &Block, dwarf::Form Form, uint64_t Integer);
153 void addSInt(DIEValueList &Die, dwarf::Attribute Attribute,
154 Optional<dwarf::Form> Form, int64_t Integer);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/
H A DDwarf.cpp19 using namespace dwarf;
21 StringRef llvm::dwarf::TagString(unsigned Tag) { in TagString()
32 unsigned llvm::dwarf::getTag(StringRef TagString) { in getTag()
40 unsigned llvm::dwarf::TagVersion(dwarf::Tag Tag) { in TagVersion()
51 unsigned llvm::dwarf::TagVendor(dwarf::Tag Tag) { in TagVendor()
62 StringRef llvm::dwarf::ChildrenString(unsigned Children) { in ChildrenString()
72 StringRef llvm::dwarf::AttributeString(unsigned Attribute) { in AttributeString()
83 unsigned llvm::dwarf::AttributeVersion(dwarf::Attribute Attribute) { in AttributeVersion()
94 unsigned llvm::dwarf::AttributeVendor(dwarf::Attribute Attribute) { in AttributeVendor()
105 StringRef llvm::dwarf::FormEncodingString(unsigned Encoding) { in FormEncodingString()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DWARFLinker/
H A DDWARFLinkerDeclContext.cpp56 case dwarf::DW_TAG_module: in getChildDeclContext()
58 case dwarf::DW_TAG_compile_unit: in getChildDeclContext()
60 case dwarf::DW_TAG_subprogram: in getChildDeclContext()
62 if ((Context.getTag() == dwarf::DW_TAG_namespace || in getChildDeclContext()
63 Context.getTag() == dwarf::DW_TAG_compile_unit) && in getChildDeclContext()
64 !dwarf::toUnsigned(DIE.find(dwarf::DW_AT_external), 0)) in getChildDeclContext()
67 case dwarf::DW_TAG_member: in getChildDeclContext()
68 case dwarf::DW_TAG_namespace: in getChildDeclContext()
69 case dwarf::DW_TAG_structure_type: in getChildDeclContext()
70 case dwarf::DW_TAG_class_type: in getChildDeclContext()
[all …]
H A DDWARFLinker.cpp90 case dwarf::DW_AT_type: in isODRAttribute()
91 case dwarf::DW_AT_containing_type: in isODRAttribute()
92 case dwarf::DW_AT_specification: in isODRAttribute()
93 case dwarf::DW_AT_abstract_origin: in isODRAttribute()
94 case dwarf::DW_AT_import: in isODRAttribute()
102 case dwarf::DW_TAG_array_type: in isTypeTag()
103 case dwarf::DW_TAG_class_type: in isTypeTag()
104 case dwarf::DW_TAG_enumeration_type: in isTypeTag()
105 case dwarf::DW_TAG_pointer_type: in isTypeTag()
106 case dwarf::DW_TAG_reference_type: in isTypeTag()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/DWARF/
H A DDWARFDataExtractor.cpp14 std::pair<uint64_t, dwarf::DwarfFormat>
18 return {0, dwarf::DWARF32}; in getInitialLength()
22 dwarf::DwarfFormat Format = dwarf::DWARF32; in getInitialLength()
23 if (Length == dwarf::DW_LENGTH_DWARF64) { in getInitialLength()
25 Format = dwarf::DWARF64; in getInitialLength()
26 } else if (Length >= dwarf::DW_LENGTH_lo_reserved) { in getInitialLength()
32 return {0, dwarf::DWARF32}; in getInitialLength()
43 return {0, dwarf::DWARF32}; in getInitialLength()
72 if (Encoding == dwarf::DW_EH_PE_omit) in getEncodedPointer()
79 case dwarf::DW_EH_PE_absptr: in getEncodedPointer()
[all …]
H A DDWARFDebugLoc.cpp46 Index, dwarf::LocListEncodingString(Kind).data()); in createResolverError()
52 case dwarf::DW_LLE_end_of_list: in Interpret()
54 case dwarf::DW_LLE_base_addressx: { in Interpret()
60 case dwarf::DW_LLE_startx_endx: { in Interpret()
71 case dwarf::DW_LLE_startx_length: { in Interpret()
80 case dwarf::DW_LLE_offset_pair: { in Interpret()
92 case dwarf::DW_LLE_default_location: in Interpret()
94 case dwarf::DW_LLE_base_address: in Interpret()
97 case dwarf::DW_LLE_start_end: in Interpret()
100 case dwarf::DW_LLE_start_length: in Interpret()
[all …]
H A DDWARFDebugRnglists.cpp31 case dwarf::DW_RLE_end_of_list: in extract()
35 case dwarf::DW_RLE_base_addressx: { in extract()
39 case dwarf::DW_RLE_startx_endx: in extract()
43 case dwarf::DW_RLE_startx_length: { in extract()
48 case dwarf::DW_RLE_offset_pair: { in extract()
53 case dwarf::DW_RLE_base_address: { in extract()
57 case dwarf::DW_RLE_start_end: { in extract()
62 case dwarf::DW_RLE_start_length: { in extract()
80 dwarf::RLEString(Encoding).data(), Offset); in extract()
100 uint64_t Tombstone = dwarf::computeTombstoneAddress(AddressByteSize); in getAbsoluteRanges()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Ddwarf2yaml.cpp34 Abbrv.Children = AbbrvDecl.hasChildren() ? dwarf::DW_CHILDREN_yes in dumpDebugAbbrev()
35 : dwarf::DW_CHILDREN_no; in dumpDebugAbbrev()
40 if (AttAbrv.Form == dwarf::DW_FORM_implicit_const) in dumpDebugAbbrev()
218 NewUnit.Type = (dwarf::UnitType)CU->getUnitType(); in dumpDebugInfo()
254 case dwarf::DW_FORM_addr: in dumpDebugInfo()
255 case dwarf::DW_FORM_GNU_addr_index: in dumpDebugInfo()
259 case dwarf::DW_FORM_ref_addr: in dumpDebugInfo()
260 case dwarf::DW_FORM_ref1: in dumpDebugInfo()
261 case dwarf::DW_FORM_ref2: in dumpDebugInfo()
262 case dwarf::DW_FORM_ref4: in dumpDebugInfo()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DDIE.h51 dwarf::Attribute Attribute;
54 dwarf::Form Form;
60 DIEAbbrevData(dwarf::Attribute A, dwarf::Form F) in DIEAbbrevData()
62 DIEAbbrevData(dwarf::Attribute A, int64_t V) in DIEAbbrevData()
63 : Attribute(A), Form(dwarf::DW_FORM_implicit_const), Value(V) {} in DIEAbbrevData()
67 dwarf::Attribute getAttribute() const { return Attribute; } in getAttribute()
68 dwarf::Form getForm() const { return Form; } in getForm()
84 dwarf::Tag Tag;
96 DIEAbbrev(dwarf::Tag T, bool C) : Tag(T), Children(C) {} in DIEAbbrev()
100 dwarf::Tag getTag() const { return Tag; } in getTag()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h31 llvm::dwarf::Attribute Attribute;
32 llvm::dwarf::Form Form;
38 llvm::dwarf::Tag Tag;
39 llvm::dwarf::Constants Children;
54 dwarf::DwarfFormat Format;
84 dwarf::DwarfFormat Format;
110 dwarf::DwarfFormat Format;
114 llvm::dwarf::UnitType Type; // Added in DWARF 5
128 dwarf::LineNumberOps Opcode;
130 dwarf::LineNumberExtendedOps SubOpcode;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ObjectYAML/
H A DDWARFEmitter.cpp70 static void writeInitialLength(const dwarf::DwarfFormat Format, in writeInitialLength()
73 bool IsDWARF64 = Format == dwarf::DWARF64; in writeInitialLength()
75 cantFail(writeVariableSizedInteger(dwarf::DW_LENGTH_DWARF64, 4, OS, in writeInitialLength()
81 static void writeDWARFOffset(uint64_t Offset, dwarf::DwarfFormat Format, in writeDWARFOffset()
83 cantFail(writeVariableSizedInteger(Offset, Format == dwarf::DWARF64 ? 8 : 4, in writeDWARFOffset()
115 if (Attr.Form == dwarf::DW_FORM_implicit_const) in getAbbrevTableContentByIndex()
152 Range.Format == dwarf::DWARF64 ? 8 : 4; // sizeof(debug_info_offset) in emitDebugAranges()
155 Length + (Range.Format == dwarf::DWARF64 in emitDebugAranges()
266 const dwarf::FormParams &Params, in writeDIE()
296 dwarf::Form Form = AbbrForm->Form; in writeDIE()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/
H A DMCDwarf.cpp52 if (DwarfFormat == dwarf::DWARF64) { in emitListsTableHeaderStart()
54 S.emitInt32(dwarf::DW_LENGTH_DWARF64); in emitListsTableHeaderStart()
58 dwarf::getDwarfOffsetByteSize(DwarfFormat)); in emitListsTableHeaderStart()
182 MCOS->emitInt8(dwarf::DW_LNS_set_file); in emitDwarfLineTable()
187 MCOS->emitInt8(dwarf::DW_LNS_set_column); in emitDwarfLineTable()
194 MCOS->emitInt8(dwarf::DW_LNS_extended_op); in emitDwarfLineTable()
196 MCOS->emitInt8(dwarf::DW_LNE_set_discriminator); in emitDwarfLineTable()
201 MCOS->emitInt8(dwarf::DW_LNS_set_isa); in emitDwarfLineTable()
206 MCOS->emitInt8(dwarf::DW_LNS_negate_stmt); in emitDwarfLineTable()
209 MCOS->emitInt8(dwarf::DW_LNS_set_basic_block); in emitDwarfLineTable()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-dwarfdump/
H A DStatistics.cpp197 auto DeclFile = Die.findRecursively(dwarf::DW_AT_decl_file); in constructDieID()
203 dwarf::toUnsigned(DeclFile, 0), U->getCompilationDir(), in constructDieID()
209 << dwarf::toUnsigned(Die.findRecursively(dwarf::DW_AT_decl_line), 0); in constructDieID()
230 const dwarf::Tag Tag = Die.getTag(); in collectStatsForDie()
232 if (Tag == dwarf::DW_TAG_compile_unit) in collectStatsForDie()
242 bool IsParam = Tag == dwarf::DW_TAG_formal_parameter; in collectStatsForDie()
243 bool IsLocalVar = Tag == dwarf::DW_TAG_variable; in collectStatsForDie()
244 bool IsConstantMember = Tag == dwarf::DW_TAG_member && in collectStatsForDie()
245 Die.find(dwarf::DW_AT_const_value); in collectStatsForDie()
251 if (Tag == dwarf::DW_TAG_call_site || Tag == dwarf::DW_TAG_GNU_call_site) { in collectStatsForDie()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DDebugInfoMetadata.cpp555 case dwarf::DW_ATE_signed: in getSignedness()
556 case dwarf::DW_ATE_signed_char: in getSignedness()
558 case dwarf::DW_ATE_unsigned: in getSignedness()
559 case dwarf::DW_ATE_unsigned_char: in getSignedness()
1063 if (Op >= dwarf::DW_OP_breg0 && Op <= dwarf::DW_OP_breg31) in getSize()
1067 case dwarf::DW_OP_LLVM_convert: in getSize()
1068 case dwarf::DW_OP_LLVM_fragment: in getSize()
1069 case dwarf::DW_OP_bregx: in getSize()
1071 case dwarf::DW_OP_constu: in getSize()
1072 case dwarf::DW_OP_consts: in getSize()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp70 using namespace dwarf;
135 ? dwarf::DW_EH_PE_indirect | in Initialize()
136 dwarf::DW_EH_PE_pcrel | in Initialize()
137 dwarf::DW_EH_PE_sdata4 in Initialize()
138 : dwarf::DW_EH_PE_absptr; in Initialize()
140 ? dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4 in Initialize()
141 : dwarf::DW_EH_PE_absptr; in Initialize()
143 ? dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | in Initialize()
144 dwarf::DW_EH_PE_sdata4 in Initialize()
145 : dwarf::DW_EH_PE_absptr; in Initialize()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/GSYM/
H A DDwarfTransformer.cpp41 Language = dwarf::toUnsigned(Die.find(dwarf::DW_AT_language), 0); in CUInfo()
87 Die.getAttributeValueAsReferencedDie(dwarf::DW_AT_specification)) { in GetParentDeclContextDIE()
92 Die.getAttributeValueAsReferencedDie(dwarf::DW_AT_abstract_origin)) { in GetParentDeclContextDIE()
100 if (Die.getTag() == dwarf::DW_TAG_inlined_subroutine) in GetParentDeclContextDIE()
108 case dwarf::DW_TAG_namespace: in GetParentDeclContextDIE()
109 case dwarf::DW_TAG_structure_type: in GetParentDeclContextDIE()
110 case dwarf::DW_TAG_union_type: in GetParentDeclContextDIE()
111 case dwarf::DW_TAG_class_type: in GetParentDeclContextDIE()
112 case dwarf::DW_TAG_subprogram: in GetParentDeclContextDIE()
114 case dwarf::DW_TAG_lexical_block: in GetParentDeclContextDIE()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAbbreviationDeclaration.h30 AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value) in AttributeSpec()
34 AttributeSpec(dwarf::Attribute A, dwarf::Form F, Optional<uint8_t> ByteSize) in AttributeSpec()
42 dwarf::Attribute Attr;
43 dwarf::Form Form;
70 return Form == dwarf::DW_FORM_implicit_const; in isImplicitConst()
90 dwarf::Tag getTag() const { return Tag; } in getTag()
100 dwarf::Form getFormByIndex(uint32_t idx) const { in getFormByIndex()
109 dwarf::Attribute getAttrByIndex(uint32_t idx) const { in getAttrByIndex()
131 Optional<uint32_t> findAttributeIndex(dwarf::Attribute attr) const;
144 const dwarf::Attribute Attr,
[all …]
H A DDWARFFormValue.h57 dwarf::Form Form; /// Form for this value.
58 dwarf::DwarfFormat Format =
59 dwarf::DWARF32; /// Remember the DWARF format at extract time.
64 DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {} in DWARFFormValue()
67 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form()
69 static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V);
70 static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V);
71 static DWARFFormValue createFromPValue(dwarf::Form F, const char *V);
72 static DWARFFormValue createFromBlockValue(dwarf::Form F,
74 static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit,
[all …]

12345678910>>...28