/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DIE.cpp | 41 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 in print() [all...] |
H A D | DwarfUnit.cpp | 9 // This file contains support for constructing a dwarf compile unit. 46 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 in getDefaultLowerBound() [all...] |
H A D | DwarfExpression.cpp | 9 // This file contains support for writing dwarf debug info into asm files. 31 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() 44 assert(DwarfReg >= 0 && "invalid negative dwarf register number"); in addReg() 49 emitOp(dwarf::DW_OP_reg0 + DwarfReg, Comment); in addReg() 51 emitOp(dwarf::DW_OP_regx, Comment); in addReg() 57 assert(DwarfReg >= 0 && "invalid negative dwarf register number"); in addBReg() 60 emitOp(dwarf in addBReg() [all...] |
H A D | AsmPrinterDwarf.cpp | 37 case dwarf::DW_EH_PE_absptr: in DecodeDWARFEncoding() 39 case dwarf::DW_EH_PE_omit: in DecodeDWARFEncoding() 41 case dwarf::DW_EH_PE_pcrel: in DecodeDWARFEncoding() 43 case dwarf::DW_EH_PE_uleb128: in DecodeDWARFEncoding() 45 case dwarf::DW_EH_PE_sleb128: in DecodeDWARFEncoding() 47 case dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding() 49 case dwarf::DW_EH_PE_udata8: in DecodeDWARFEncoding() 51 case dwarf::DW_EH_PE_sdata4: in DecodeDWARFEncoding() 53 case dwarf::DW_EH_PE_sdata8: in DecodeDWARFEncoding() 55 case dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_udata4: in DecodeDWARFEncoding() [all …]
|
H A D | DwarfCompileUnit.cpp | 9 // This file contains support for constructing a dwarf compile unit. 60 static dwarf::Tag GetCompileUnitType(UnitKind Kind, DwarfDebug *DW) { in DwarfCompileUnit() 68 return dwarf::DW_TAG_skeleton_unit; in addLabelAddress() 70 return dwarf::DW_TAG_compile_unit; in addLabelAddress() 81 /// addLabelAddress - Add a dwarf label attribute data and value using in addLabelAddress() 83 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress() 102 DD->getDwarfVersion() >= 5 ? dwarf::DW_FORM_addrx in addLabelAddress() 103 : dwarf::DW_FORM_GNU_addr_index, in addLabelAddress() 116 addBlock(Die, Attribute, dwarf::DW_FORM_exprloc, Loc); 118 addAttribute(Die, Attribute, dwarf in getOrCreateSourceID() [all...] |
H A D | DebugHandlerBase.cpp | 53 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() 157 if (Tag != dwarf::DW_TAG_member && Tag != dwarf::DW_TAG_typedef && in getBaseTypeSize() 158 Tag != dwarf in getBaseTypeSize() [all...] |
H A D | DIEHash.cpp | 90 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-src/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
H A D | SyntheticTypeNameBuilder.cpp | 43 if (CurChild->getTag() == dwarf::DW_TAG_subrange_type || in addArrayDimension() 44 CurChild->getTag() == dwarf::DW_TAG_generic_subrange) { in addArrayDimension() 47 InputUnitEntryPair.CU->find(CurChild, dwarf::DW_AT_count)) { in addArrayDimension() 61 static dwarf::Attribute TypeAttr[] = {dwarf::DW_AT_type}; 76 dwarf::Tag ChildTag = CurChild->getTag(); in addSignature() 78 (ChildTag == dwarf::DW_TAG_template_type_parameter || in addSignature() 79 ChildTag == dwarf::DW_TAG_template_value_parameter)) in addSignature() 81 else if (ChildTag == dwarf::DW_TAG_formal_parameter || in addSignature() 82 ChildTag == dwarf::DW_TAG_unspecified_parameters) in addSignature() 85 ChildTag == dwarf::DW_TAG_GNU_template_parameter_pack) { in addSignature() [all …]
|
H A D | DIEAttributeCloner.cpp | 62 case dwarf::DW_FORM_strp: in clone() 63 case dwarf::DW_FORM_line_strp: in clone() 64 case dwarf::DW_FORM_string: in clone() 65 case dwarf::DW_FORM_strx: in clone() 66 case dwarf::DW_FORM_strx1: in clone() 67 case dwarf::DW_FORM_strx2: in clone() 68 case dwarf::DW_FORM_strx3: in clone() 69 case dwarf::DW_FORM_strx4: in clone() 72 case dwarf::DW_FORM_ref_addr: in clone() 73 case dwarf::DW_FORM_ref1: in clone() [all …]
|
H A D | DependencyTracker.cpp | 60 if (Child.getTag() == dwarf::DW_TAG_subprogram) { in verifyKeepChain() 147 case dwarf::DW_TAG_label: { in collectRootsToKeep() 158 case dwarf::DW_TAG_subprogram: { in collectRootsToKeep() 173 case dwarf::DW_TAG_constant: in collectRootsToKeep() 174 case dwarf::DW_TAG_variable: { in collectRootsToKeep() 190 case dwarf::DW_TAG_base_type: { in collectRootsToKeep() 196 case dwarf::DW_TAG_imported_module: in collectRootsToKeep() 197 case dwarf::DW_TAG_imported_declaration: in collectRootsToKeep() 198 case dwarf::DW_TAG_imported_unit: { in collectRootsToKeep() 200 if (Entry.DieEntry->getTag() == dwarf::DW_TAG_compile_unit) { in collectRootsToKeep() [all …]
|
H A D | AcceleratorRecordsSaver.cpp | 28 if (!(RefVal = InputDIE.find(dwarf::DW_AT_specification)) && in hashFullyQualifiedName() 29 !(RefVal = InputDIE.find(dwarf::DW_AT_abstract_origin))) in hashFullyQualifiedName() 50 if (!Name && InputDIE.getTag() == dwarf::DW_TAG_namespace) in hashFullyQualifiedName() 54 if (!ParentDie.isValid() || ParentDie.getTag() == dwarf::DW_TAG_compile_unit) in hashFullyQualifiedName() 77 case dwarf::DW_TAG_array_type: in save() 78 case dwarf::DW_TAG_class_type: in save() 79 case dwarf::DW_TAG_enumeration_type: in save() 80 case dwarf::DW_TAG_pointer_type: in save() 81 case dwarf::DW_TAG_reference_type: in save() 82 case dwarf::DW_TAG_string_type: in save() [all …]
|
H A D | DIEGenerator.h | 31 DIE *createDIE(dwarf::Tag DieTag, uint32_t OutOffset) { in createDIE() 50 std::pair<DIEValue &, size_t> addScalarAttribute(dwarf::Attribute Attr, in addScalarAttribute() 51 dwarf::Form AttrForm, in addScalarAttribute() 57 std::pair<DIEValue &, size_t> addLocationAttribute(dwarf::Attribute Attr, in addLocationAttribute() 58 dwarf::Form AttrForm, in addLocationAttribute() 63 Allocator, static_cast<dwarf::Attribute>(0), dwarf::DW_FORM_data1, in addLocationAttribute() 71 std::pair<DIEValue &, size_t> addBlockAttribute(dwarf::Attribute Attr, in addBlockAttribute() 72 dwarf::Form AttrForm, in addBlockAttribute() 76 assert((AttrForm == dwarf::DW_FORM_block) || in addBlockAttribute() 77 (AttrForm == dwarf::DW_FORM_exprloc) || in addBlockAttribute() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVLocation.cpp | 35 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 D | LVElement.cpp | 127 case dwarf::DW_ACCESS_public: in accessibilityString() 129 case dwarf::DW_ACCESS_protected: in accessibilityString() 131 case dwarf::DW_ACCESS_private: in accessibilityString() 141 return dwarf::DW_ACCESS_private; in getAccessibilityCode() 143 return dwarf::DW_ACCESS_protected; in getAccessibilityCode() 145 return dwarf::DW_ACCESS_public; in getAccessibilityCode() 158 case dwarf::DW_INL_not_inlined: in inlineCodeString() 160 case dwarf::DW_INL_inlined: in inlineCodeString() 162 case dwarf::DW_INL_declared_not_inlined: in inlineCodeString() 164 case dwarf::DW_INL_declared_inlined: in inlineCodeString() [all …]
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFASTParserClang.h | 36 namespace dwarf { 39 } // 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 CompleteTypeFromDWARF(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 [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/BinaryFormat/ |
H A D | Dwarf.cpp | 9 // This file contains support for generic dwarf information. 19 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 [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/ |
H A D | LVELFReader.cpp |
|
/freebsd-src/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/ |
H A D | DWARFLinkerDeclContext.cpp | 60 case dwarf::DW_TAG_module: in getChildDeclContext() 62 case dwarf::DW_TAG_compile_unit: in getChildDeclContext() 64 case dwarf::DW_TAG_subprogram: in getChildDeclContext() 66 if ((Context.getTag() == dwarf::DW_TAG_namespace || in getChildDeclContext() 67 Context.getTag() == dwarf::DW_TAG_compile_unit) && in getChildDeclContext() 68 !dwarf::toUnsigned(DIE.find(dwarf::DW_AT_external), 0)) in getChildDeclContext() 71 case dwarf::DW_TAG_member: in getChildDeclContext() 72 case dwarf::DW_TAG_namespace: in getChildDeclContext() 73 case dwarf::DW_TAG_structure_type: in getChildDeclContext() 74 case dwarf::DW_TAG_class_type: in getChildDeclContext() [all …]
|
H A D | DWARFLinker.cpp | 107 case dwarf::DW_AT_type: in isODRAttribute() 108 case dwarf::DW_AT_containing_type: 109 case dwarf::DW_AT_specification: in isTypeTag() 110 case dwarf::DW_AT_abstract_origin: in isTypeTag() 111 case dwarf::DW_AT_import: in isTypeTag() 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 in isTypeTag() [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFDataExtractor.cpp | 16 std::pair<uint64_t, dwarf::DwarfFormat> 20 return {0, dwarf::DWARF32}; in getInitialLength() 24 dwarf::DwarfFormat Format = dwarf::DWARF32; in getInitialLength() 25 if (Length == dwarf::DW_LENGTH_DWARF64) { in getInitialLength() 27 Format = dwarf::DWARF64; in getInitialLength() 28 } else if (Length >= dwarf::DW_LENGTH_lo_reserved) { in getInitialLength() 34 return {0, dwarf::DWARF32}; in getInitialLength() 45 return {0, dwarf::DWARF32}; in getInitialLength() 74 if (Encoding == dwarf::DW_EH_PE_omit) in getEncodedPointer() 81 case dwarf::DW_EH_PE_absptr: in getEncodedPointer() [all …]
|
H A D | DWARFDebugLoc.cpp | 49 return make_error<ResolverError>(Index, (dwarf::LoclistEntries)Kind); in createResolverError() 55 case dwarf::DW_LLE_end_of_list: in Interpret() 57 case dwarf::DW_LLE_base_addressx: { in Interpret() 63 case dwarf::DW_LLE_startx_endx: { in Interpret() 74 case dwarf::DW_LLE_startx_length: { in Interpret() 83 case dwarf::DW_LLE_offset_pair: { in Interpret() 95 case dwarf::DW_LLE_default_location: in Interpret() 97 case dwarf::DW_LLE_base_address: in Interpret() 100 case dwarf::DW_LLE_start_end: in Interpret() 103 case dwarf::DW_LLE_start_length: in Interpret() [all …]
|
H A D | DWARFDebugRnglists.cpp | 31 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-src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | DIE.h | 51 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 …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
H A D | DWARFYAML.h | 32 llvm::dwarf::Attribute Attribute; 33 llvm::dwarf::Form Form; 39 llvm::dwarf::Tag Tag; 40 llvm::dwarf::Constants Children; 55 dwarf::DwarfFormat Format; 85 dwarf::DwarfFormat Format; 111 dwarf::DwarfFormat Format; 115 llvm::dwarf::UnitType Type; // Added in DWARF 5 122 dwarf::Index Idx; 123 dwarf [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | DWARFEmitter.cpp | 71 static void writeInitialLength(const dwarf::DwarfFormat Format, in writeInitialLength() 74 bool IsDWARF64 = Format == dwarf::DWARF64; in writeInitialLength() 76 cantFail(writeVariableSizedInteger(dwarf::DW_LENGTH_DWARF64, 4, OS, in writeInitialLength() 82 static void writeDWARFOffset(uint64_t Offset, dwarf::DwarfFormat Format, in writeDWARFOffset() 84 cantFail(writeVariableSizedInteger(Offset, Format == dwarf::DWARF64 ? 8 : 4, in writeDWARFOffset() 116 if (Attr.Form == dwarf::DW_FORM_implicit_const) in getAbbrevTableContentByIndex() 153 Range.Format == dwarf::DWARF64 ? 8 : 4; // sizeof(debug_info_offset) in emitDebugAranges() 156 Length + (Range.Format == dwarf::DWARF64 in emitDebugAranges() 267 const dwarf::FormParams &Params, in writeDIE() 297 dwarf in writeDIE() [all...] |