Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDIE.cpp41 if (Form == dwarf::DW_FORM_implicit_const) in Profile()
64 AP->emitULEB128(Tag, dwarf::TagString(Tag).data()); in Emit()
67 AP->emitULEB128((unsigned)Children, dwarf::ChildrenString(Children).data()); in Emit()
73 dwarf::AttributeString(AttrData.getAttribute()).data()); in Emit()
79 if (!dwarf::isValidFormForVersion(AttrData.getForm(), in Emit()
88 dwarf::FormEncodingString(AttrData.getForm()).data()); in Emit()
91 if (AttrData.getForm() == dwarf::DW_FORM_implicit_const) in Emit()
105 << dwarf::TagString(Tag) in print()
107 << dwarf::ChildrenString(Children) in print()
111 O << " " << dwarf::AttributeString(D.getAttribute()) << " " in print()
[all …]
H A DDwarfUnit.cpp46 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_data1, Op); in emitOp()
50 CU.addSInt(getActiveDIE(), dwarf::DW_FORM_sdata, Value); in emitSigned()
54 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_udata, Value); in emitUnsigned()
58 CU.addUInt(getActiveDIE(), dwarf::DW_FORM_data1, Value); in emitData1()
83 DwarfUnit::DwarfUnit(dwarf::Tag UnitTag, const DICompileUnit *Node, in DwarfUnit()
92 : DwarfUnit(dwarf::DW_TAG_type_unit, CU.getCUNode(), A, DW, DWU, UniqueID), in DwarfTypeUnit()
108 case dwarf::DW_LANG_C: in getDefaultLowerBound()
109 case dwarf::DW_LANG_C89: in getDefaultLowerBound()
110 case dwarf::DW_LANG_C_plus_plus: in getDefaultLowerBound()
113 case dwarf::DW_LANG_Fortran77: in getDefaultLowerBound()
[all …]
H A DDwarfExpression.cpp31 emitOp(dwarf::DW_OP_lit0 + Value); in emitConstu()
35 emitOp(dwarf::DW_OP_lit0); in emitConstu()
36 emitOp(dwarf::DW_OP_not); in emitConstu()
38 emitOp(dwarf::DW_OP_constu); in emitConstu()
49 emitOp(dwarf::DW_OP_reg0 + DwarfReg, Comment); in addReg()
51 emitOp(dwarf::DW_OP_regx, Comment); in addReg()
60 emitOp(dwarf::DW_OP_breg0 + DwarfReg); in addBReg()
62 emitOp(dwarf::DW_OP_bregx); in addBReg()
69 emitOp(dwarf::DW_OP_fbreg); in addFBReg()
79 emitOp(dwarf::DW_OP_bit_piece); in addOpPiece()
[all …]
H A DAsmPrinterDwarf.cpp36 case dwarf::DW_EH_PE_absptr: in DecodeDWARFEncoding()
38 case dwarf::DW_EH_PE_omit: in DecodeDWARFEncoding()
40 case dwarf::DW_EH_PE_pcrel: in DecodeDWARFEncoding()
42 case dwarf::DW_EH_PE_uleb128: in DecodeDWARFEncoding()
44 case dwarf::DW_EH_PE_sleb128: in DecodeDWARFEncoding()
46 case dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding()
48 case dwarf::DW_EH_PE_udata8: in DecodeDWARFEncoding()
50 case dwarf::DW_EH_PE_sdata4: in DecodeDWARFEncoding()
52 case dwarf::DW_EH_PE_sdata8: in DecodeDWARFEncoding()
54 case dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding()
[all …]
H A DDebugHandlerBase.cpp53 Op->getOp() == dwarf::DW_OP_LLVM_arg) in extractFromMachineInstruction()
60 case dwarf::DW_OP_constu: { in extractFromMachineInstruction()
65 case dwarf::DW_OP_minus: in extractFromMachineInstruction()
68 case dwarf::DW_OP_plus: in extractFromMachineInstruction()
76 case dwarf::DW_OP_plus_uconst: in extractFromMachineInstruction()
79 case dwarf::DW_OP_LLVM_fragment: in extractFromMachineInstruction()
82 case dwarf::DW_OP_deref: in extractFromMachineInstruction()
154 if (Tag != dwarf::DW_TAG_member && Tag != dwarf::DW_TAG_typedef && in getBaseTypeSize()
155 Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && in getBaseTypeSize()
156 Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_atomic_type && in getBaseTypeSize()
[all …]
H A DDwarfCompileUnit.cpp66 static dwarf::Tag GetCompileUnitType(UnitKind Kind, DwarfDebug *DW) { in GetCompileUnitType()
74 return dwarf::DW_TAG_skeleton_unit; in GetCompileUnitType()
76 return dwarf::DW_TAG_compile_unit; in GetCompileUnitType()
109 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress()
128 DD->getDwarfVersion() >= 5 ? dwarf::DW_FORM_addrx in addLabelAddress()
129 : dwarf::DW_FORM_GNU_addr_index, in addLabelAddress()
142 addBlock(Die, Attribute, dwarf::DW_FORM_exprloc, Loc); in addLabelAddress()
144 addAttribute(Die, Attribute, dwarf::DW_FORM_LLVM_addrx_offset, in addLabelAddress()
150 dwarf::Attribute Attribute, in addLocalLabelAddress()
153 addAttribute(Die, Attribute, dwarf::DW_FORM_addr, DIELabel(Label)); in addLocalLabelAddress()
[all …]
H A DDIEHash.cpp90 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit || in addParentContext()
91 Cur->getTag() == dwarf::DW_TAG_type_unit); in addParentContext()
103 StringRef Name = getDIEStringAttr(*Die, dwarf::DW_AT_name); in addParentContext()
115 << dwarf::AttributeString(V.getAttribute()) in collectAttributes()
119 case dwarf::NAME: \ in collectAttributes()
129 void DIEHash::hashShallowTypeReference(dwarf::Attribute Attribute, in hashShallowTypeReference()
155 void DIEHash::hashRepeatedTypeReference(dwarf::Attribute Attribute, in hashRepeatedTypeReference()
168 void DIEHash::hashDIEEntry(dwarf::Attribute Attribute, dwarf::Tag Tag, in hashDIEEntry()
170 assert(Tag != dwarf::DW_TAG_friend && "No current LLVM clients emit friend " in hashDIEEntry()
175 if ((Tag == dwarf::DW_TAG_pointer_type || in hashDIEEntry()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DSyntheticTypeNameBuilder.cpp42 if (CurChild->getTag() == dwarf::DW_TAG_subrange_type || in addArrayDimension()
43 CurChild->getTag() == dwarf::DW_TAG_generic_subrange) { in addArrayDimension()
46 InputUnitEntryPair.CU->find(CurChild, dwarf::DW_AT_count)) { in addArrayDimension()
60 static dwarf::Attribute TypeAttr[] = {dwarf::DW_AT_type};
75 dwarf::Tag ChildTag = CurChild->getTag(); in addSignature()
77 (ChildTag == dwarf::DW_TAG_template_type_parameter || in addSignature()
78 ChildTag == dwarf::DW_TAG_template_value_parameter)) in addSignature()
80 else if (ChildTag == dwarf::DW_TAG_formal_parameter || in addSignature()
81 ChildTag == dwarf::DW_TAG_unspecified_parameters) in addSignature()
84 ChildTag == dwarf::DW_TAG_GNU_template_parameter_pack) { in addSignature()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVLocation.cpp35 if (dwarf::DW_OP_lit0 <= Code && Code <= dwarf::DW_OP_lit31) { in getOperandsDWARFInfo()
36 Stream << format("lit%d", Code - dwarf::DW_OP_lit0); in getOperandsDWARFInfo()
43 if (dwarf::DW_OP_breg0 <= Code && Code <= dwarf::DW_OP_breg31) { in getOperandsDWARFInfo()
45 Stream << format("breg%d+%d%s", Code - dwarf::DW_OP_breg0, Operands[0], in getOperandsDWARFInfo()
53 if (dwarf::DW_OP_reg0 <= Code && Code <= dwarf::DW_OP_reg31) { in getOperandsDWARFInfo()
55 Stream << format("reg%d%s", Code - dwarf::DW_OP_reg0, in getOperandsDWARFInfo()
68 case dwarf::DW_OP_addr: in getOperandsDWARFInfo()
71 case dwarf::DW_OP_constu: in getOperandsDWARFInfo()
72 case dwarf::DW_OP_const1u: in getOperandsDWARFInfo()
73 case dwarf::DW_OP_const2u: in getOperandsDWARFInfo()
[all …]
H A DLVReader.cpp219 LVElement *LVReader::createElement(dwarf::Tag Tag) { in createElement()
226 { dbgs() << "\n[createElement] " << dwarf::TagString(Tag) << "\n"; }); in createElement()
233 case dwarf::DW_TAG_formal_parameter: in createElement()
234 case dwarf::DW_TAG_unspecified_parameters: in createElement()
235 case dwarf::DW_TAG_member: in createElement()
236 case dwarf::DW_TAG_variable: in createElement()
237 case dwarf::DW_TAG_inheritance: in createElement()
238 case dwarf::DW_TAG_constant: in createElement()
239 case dwarf::DW_TAG_call_site_parameter: in createElement()
240 case dwarf::DW_TAG_GNU_call_site_parameter: in createElement()
[all …]
H A DLVElement.cpp126 case dwarf::DW_ACCESS_public: in accessibilityString()
128 case dwarf::DW_ACCESS_protected: in accessibilityString()
130 case dwarf::DW_ACCESS_private: in accessibilityString()
140 return dwarf::DW_ACCESS_private; in getAccessibilityCode()
142 return dwarf::DW_ACCESS_protected; in getAccessibilityCode()
144 return dwarf::DW_ACCESS_public; in getAccessibilityCode()
157 case dwarf::DW_INL_not_inlined: in inlineCodeString()
159 case dwarf::DW_INL_inlined: in inlineCodeString()
161 case dwarf::DW_INL_declared_not_inlined: in inlineCodeString()
163 case dwarf::DW_INL_declared_inlined: in inlineCodeString()
[all …]
/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFTypePrinter.h33 void appendTypeTagName(dwarf::Tag T);
67 static inline bool scopedTAGs(dwarf::Tag Tag) { in scopedTAGs()
69 case dwarf::DW_TAG_structure_type: in scopedTAGs()
70 case dwarf::DW_TAG_class_type: in scopedTAGs()
71 case dwarf::DW_TAG_union_type: in scopedTAGs()
72 case dwarf::DW_TAG_namespace: in scopedTAGs()
73 case dwarf::DW_TAG_enumeration_type: in scopedTAGs()
74 case dwarf::DW_TAG_typedef: in scopedTAGs()
84 void DWARFTypePrinter<DieType>::appendTypeTagName(dwarf::Tag T) { in appendTypeTagName()
98 if (C.getTag() != dwarf::DW_TAG_subrange_type) in appendArrayType()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.h36 namespace dwarf {
44 class DWARFASTParserClang : public lldb_private::plugin::dwarf::DWARFASTParser {
53 const lldb_private::plugin::dwarf::DWARFDIE &die,
57 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
61 const lldb_private::plugin::dwarf::DWARFDIE &die,
65 const lldb_private::plugin::dwarf::DWARFDIE &die,
70 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
76 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
79 const lldb_private::plugin::dwarf::DWARFDIE &die) override;
97 const lldb_private::plugin::dwarf::DWARFFormValue &form_value) const;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinkerDeclContext.cpp
H A DDWARFLinker.cpp
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DDIE.h52 dwarf::Attribute Attribute;
55 dwarf::Form Form;
61 DIEAbbrevData(dwarf::Attribute A, dwarf::Form F) in DIEAbbrevData()
63 DIEAbbrevData(dwarf::Attribute A, int64_t V) in DIEAbbrevData()
64 : Attribute(A), Form(dwarf::DW_FORM_implicit_const), Value(V) {} in DIEAbbrevData()
68 dwarf::Attribute getAttribute() const { return Attribute; } in getAttribute()
69 dwarf::Form getForm() const { return Form; } in getForm()
85 dwarf::Tag Tag;
97 DIEAbbrev(dwarf::Tag T, bool C) : Tag(T), Children(C) {} in DIEAbbrev()
101 dwarf::Tag getTag() const { return Tag; } in getTag()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVDWARFReader.cpp56 case dwarf::DW_FORM_ref_addr: in processOneAttribute()
57 case dwarf::DW_FORM_ref1: in processOneAttribute()
58 case dwarf::DW_FORM_ref2: in processOneAttribute()
59 case dwarf::DW_FORM_ref4: in processOneAttribute()
60 case dwarf::DW_FORM_ref8: in processOneAttribute()
61 case dwarf::DW_FORM_ref_udata: in processOneAttribute()
62 case dwarf::DW_FORM_ref_sig8: in processOneAttribute()
64 case dwarf::DW_FORM_data1: in processOneAttribute()
65 case dwarf::DW_FORM_flag: in processOneAttribute()
66 case dwarf::DW_FORM_data2: in processOneAttribute()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/LowLevel/
H A DDWARFDataExtractorSimple.h69 std::pair<uint64_t, dwarf::DwarfFormat>
73 return {0, dwarf::DWARF32};
77 dwarf::DwarfFormat Format = dwarf::DWARF32;
78 if (Length == dwarf::DW_LENGTH_DWARF64) {
80 Format = dwarf::DWARF64;
81 } else if (Length >= dwarf::DW_LENGTH_lo_reserved) {
87 return {0, dwarf::DWARF32};
98 return {0, dwarf::DWARF32};
101 std::pair<uint64_t, dwarf::DwarfFormat> getInitialLength(Cursor &C) const { in getInitialLength()
111 if (Encoding == dwarf::DW_EH_PE_omit) in getEncodedPointer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDIExpressionOptimizer.cpp21 if (Op.getOp() == dwarf::DW_OP_constu) in isConstantVal()
29 case dwarf::DW_OP_plus: in isNeutralElement()
30 case dwarf::DW_OP_minus: in isNeutralElement()
31 case dwarf::DW_OP_shl: in isNeutralElement()
32 case dwarf::DW_OP_shr: in isNeutralElement()
34 case dwarf::DW_OP_mul: in isNeutralElement()
35 case dwarf::DW_OP_div: in isNeutralElement()
46 dwarf::LocationAtom Operator) { in foldOperationIfPossible()
50 case dwarf::DW_OP_plus: { in foldOperationIfPossible()
56 case dwarf::DW_OP_minus: { in foldOperationIfPossible()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFCFIChecker/
H A DDWARFCFIState.cpp21 std::optional<dwarf::UnwindRow> DWARFCFIState::getCurrentUnwindRow() const { in getCurrentUnwindRow()
32 dwarf::UnwindRow NewRow = Row; in update()
39 dwarf::UnwindTable::RowContainer PrecedingRows; in update()
62 dwarf::CFIProgram DWARFCFIState::convert(MCCFIInstruction Directive) { in convert()
63 auto CFIP = dwarf::CFIProgram( in convert()
70 CFIP.addInstruction(dwarf::DW_CFA_same_value, Directive.getRegister()); in convert()
91 CFIP.addInstruction(dwarf::DW_CFA_offset, Directive.getRegister(), in convert()
95 CFIP.addInstruction(dwarf::DW_CFA_LLVM_def_aspace_cfa, in convert()
99 CFIP.addInstruction(dwarf::DW_CFA_def_cfa_register, in convert()
103 CFIP.addInstruction(dwarf::DW_CFA_def_cfa_offset, Directive.getOffset()); in convert()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinker.cpp107 case dwarf::DW_AT_type: in isODRAttribute()
108 case dwarf::DW_AT_containing_type: in isODRAttribute()
109 case dwarf::DW_AT_specification: in isODRAttribute()
110 case dwarf::DW_AT_abstract_origin: in isODRAttribute()
111 case dwarf::DW_AT_import: in isODRAttribute()
119 case dwarf::DW_TAG_array_type: in isTypeTag()
120 case dwarf::DW_TAG_class_type: in isTypeTag()
121 case dwarf::DW_TAG_enumeration_type: in isTypeTag()
122 case dwarf::DW_TAG_pointer_type: in isTypeTag()
123 case dwarf::DW_TAG_reference_type: in isTypeTag()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLoc.cpp50 return make_error<ResolverError>(Index, (dwarf::LoclistEntries)Kind); in createResolverError()
56 case dwarf::DW_LLE_end_of_list: in Interpret()
58 case dwarf::DW_LLE_base_addressx: { in Interpret()
64 case dwarf::DW_LLE_startx_endx: { in Interpret()
75 case dwarf::DW_LLE_startx_length: { in Interpret()
84 case dwarf::DW_LLE_offset_pair: { in Interpret()
96 case dwarf::DW_LLE_default_location: in Interpret()
98 case dwarf::DW_LLE_base_address: in Interpret()
101 case dwarf::DW_LLE_start_end: in Interpret()
104 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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h33 llvm::dwarf::Attribute Attribute;
34 llvm::dwarf::Form Form;
40 llvm::dwarf::Tag Tag;
41 llvm::dwarf::Constants Children;
56 dwarf::DwarfFormat Format;
86 dwarf::DwarfFormat Format;
112 dwarf::DwarfFormat Format;
116 llvm::dwarf::UnitType Type; // Added in DWARF 5
126 dwarf::Index Idx;
127 dwarf::Form Form;
[all …]

12345678910>>...13