/freebsd/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::AttributeString(D.getAttribute()) << " " in print() [all …]
|
H A D | DwarfUnit.cpp | 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::DW_LANG_C_plus_plus: in getDefaultLowerBound() 113 case dwarf::DW_LANG_Fortran77: in getDefaultLowerBound() [all …]
|
H A D | DwarfExpression.cpp | 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() 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 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 | 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::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && in getBaseTypeSize() 159 Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_atomic_type && in getBaseTypeSize() [all …]
|
H A D | DwarfCompileUnit.cpp | 60 static dwarf::Tag GetCompileUnitType(UnitKind Kind, DwarfDebug *DW) { in GetCompileUnitType() 68 return dwarf::DW_TAG_skeleton_unit; in GetCompileUnitType() 70 return dwarf::DW_TAG_compile_unit; in GetCompileUnitType() 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); in addLabelAddress() 118 addAttribute(Die, Attribute, dwarf::DW_FORM_LLVM_addrx_offset, in addLabelAddress() 124 dwarf::Attribute Attribute, in addLocalLabelAddress() 127 addAttribute(Die, Attribute, dwarf::DW_FORM_addr, DIELabel(Label)); in addLocalLabelAddress() [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/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 in inlineCodeString() [all...] |
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFASTParserClang.h | 36 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::DWARFDIE &die) override; 97 const lldb_private::plugin::dwarf::DWARFFormValue &form_value) const; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/ |
H A D | LVDWARFReader.cpp | 32 LVElement *LVDWARFReader::createElement(dwarf::Tag Tag) { in createElement() 43 case dwarf::DW_TAG_formal_parameter: in createElement() 44 case dwarf::DW_TAG_unspecified_parameters: in createElement() 45 case dwarf::DW_TAG_member: in createElement() 46 case dwarf::DW_TAG_variable: in createElement() 47 case dwarf::DW_TAG_inheritance: in createElement() 48 case dwarf::DW_TAG_constant: in createElement() 49 case dwarf::DW_TAG_call_site_parameter: in createElement() 50 case dwarf::DW_TAG_GNU_call_site_parameter: in createElement() 59 case dwarf::DW_TAG_base_type: in createElement() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
H A D | Dwarf.cpp | 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::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/lib/DWARFLinker/ |
H A D | DWARFLinkerDeclContext.cpp |
|
H A D | DWARFLinker.cpp |
|
/freebsd/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/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/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/ |
H A D | DWARFLinker.cpp | 107 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/IR/ |
H A D | DIExpressionOptimizer.cpp | 21 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 …]
|
H A D | DebugInfoMetadata.cpp | 38 return (getTag() == dwarf::DW_TAG_LLVM_ptrauth_type ? 0 : SubclassData32); in getAlignInBits() 288 dwarf::Tag DINode::getTag() const { return (dwarf::Tag)SubclassData16; } in getTag() 391 dwarf::Tag GenericDINode::getTag() const { return (dwarf::Tag)SubclassData16; } in getTag() 453 : DINode(C, DISubrangeKind, Storage, dwarf::DW_TAG_subrange_type, Ops) {} in DISubrange() 566 : DINode(C, DIGenericSubrangeKind, Storage, dwarf::DW_TAG_generic_subrange, in DIGenericSubrange() 650 : DINode(C, DIEnumeratorKind, Storage, dwarf::DW_TAG_enumerator, Ops), in DIEnumerator() 678 case dwarf::DW_ATE_signed: in getSignedness() 679 case dwarf::DW_ATE_signed_char: in getSignedness() 681 case dwarf::DW_ATE_unsigned: in getSignedness() 682 case dwarf::DW_ATE_unsigned_char: in getSignedness() [all …]
|
/freebsd/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::Form Form; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCDwarf.cpp | 52 if (DwarfFormat == dwarf::DWARF64) { in emitListsTableHeaderStart() 54 S.emitInt32(dwarf::DW_LENGTH_DWARF64); in emitListsTableHeaderStart() 58 dwarf::getDwarfOffsetByteSize(DwarfFormat)); in emitListsTableHeaderStart() 204 MCOS->emitInt8(dwarf::DW_LNS_set_file); in emitOne() 209 MCOS->emitInt8(dwarf::DW_LNS_set_column); in emitOne() 216 MCOS->emitInt8(dwarf::DW_LNS_extended_op); in emitOne() 218 MCOS->emitInt8(dwarf::DW_LNE_set_discriminator); in emitOne() 223 MCOS->emitInt8(dwarf::DW_LNS_set_isa); in emitOne() 228 MCOS->emitInt8(dwarf::DW_LNS_negate_stmt); in emitOne() 231 MCOS->emitInt8(dwarf::DW_LNS_set_basic_block); in emitOne() [all …]
|
/freebsd/contrib/llvm-project/lld/Common/ |
H A D | DWARF.cpp | 17 : dwarf(std::move(d)) { in DWARFCache() 18 for (std::unique_ptr<DWARFUnit> &cu : dwarf->compile_units()) { in DWARFCache() 24 dwarf->getLineTableForUnit(cu.get(), report); in DWARFCache() 38 if (die.getTag() != dwarf::DW_TAG_variable) in DWARFCache() 44 if (!dwarf::toUnsigned(die.find(dwarf::DW_AT_external), 0)) in DWARFCache() 48 unsigned file = dwarf::toUnsigned(die.find(dwarf::DW_AT_decl_file), 0); in DWARFCache() 53 unsigned line = dwarf::toUnsigned(die.find(dwarf::DW_AT_decl_line), 0); in DWARFCache() 62 dwarf::toString(die.find(dwarf::DW_AT_linkage_name), in DWARFCache() 63 dwarf::toString(die.find(dwarf::DW_AT_name), "")); in DWARFCache()
|
/freebsd/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::Form Form = AbbrForm->Form; in writeDIE() [all …]
|