Home
last modified time | relevance | path

Searched full:addrsize (Results 1 – 25 of 130) sorted by relevance

123456

/llvm-project/llvm/lib/ObjectYAML/
H A DDWARFEmitter.cpp143 uint8_t AddrSize; in emitDebugAranges()
144 if (Range.AddrSize) in emitDebugAranges() local
145 AddrSize = *Range.AddrSize; in emitDebugAranges()
147 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAranges()
158 const uint64_t PaddedHeaderLength = alignTo(HeaderLength, AddrSize * 2); in emitDebugAranges()
164 Length += AddrSize * 2 * (Range.Descriptors.size() + 1); in emitDebugAranges()
170 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAranges()
175 if (Error Err = writeVariableSizedInteger(Descriptor.Address, AddrSize, in emitDebugAranges()
180 cantFail(writeVariableSizedInteger(Descriptor.Length, AddrSize, O in emitDebugAranges()
205 uint8_t AddrSize; emitDebugRanges() local
410 uint8_t AddrSize; emitDebugInfo() local
484 writeExtendedOpcode(const DWARFYAML::LineTableOpcode & Op,uint8_t AddrSize,bool IsLittleEndian,raw_ostream & OS) writeExtendedOpcode() argument
517 writeLineTableOpcode(const DWARFYAML::LineTableOpcode & Op,uint8_t OpcodeBase,uint8_t AddrSize,raw_ostream & OS,bool IsLittleEndian) writeLineTableOpcode() argument
633 uint8_t AddrSize; emitDebugAddr() local
896 writeListEntryAddress(StringRef EncodingName,raw_ostream & OS,uint64_t Addr,uint8_t AddrSize,bool IsLittleEndian) writeListEntryAddress() argument
910 writeDWARFExpression(raw_ostream & OS,const DWARFYAML::DWARFOperation & Operation,uint8_t AddrSize,bool IsLittleEndian) writeDWARFExpression() argument
942 writeListEntry(raw_ostream & OS,const DWARFYAML::RnglistEntry & Entry,uint8_t AddrSize,bool IsLittleEndian) writeListEntry() argument
1003 writeListEntry(raw_ostream & OS,const DWARFYAML::LoclistEntry & Entry,uint8_t AddrSize,bool IsLittleEndian) writeListEntry() argument
1107 uint8_t AddrSize; writeDWARFLists() local
[all...]
H A DDWARFYAML.cpp174 IO.mapOptional("AddressSize", ARange.AddrSize); in mapping()
188 IO.mapOptional("AddrSize", DebugRanges.AddrSize); in mapping()
218 IO.mapOptional("AddrSize", Unit.AddrSize); in mapping()
308 IO.mapOptional("AddressSize", AddrTable.AddrSize); in mapping()
363 IO.mapOptional("AddressSize", ListTable.AddrSize);
/llvm-project/llvm/test/tools/obj2yaml/ELF/DWARF/
H A Ddebug-aranges.yaml31 # BASIC-NEXT: AddressSize: [[ADDRSIZE]]
41 # BASIC-NEXT: AddressSize: [[ADDRSIZE]]
124 # RUN: FileCheck %s -DLENGTH=0x1C -DADDRSIZE=0x4 -DADDRLEN=0x12345678 --check-prefix=ADDRSIZE
126 # ADDRSIZE: DWARF:
127 # ADDRSIZE-NEXT: debug_aranges:
128 # ADDRSIZE-NEXT: - Length: [[LENGTH]]
129 # ADDRSIZE-NEXT: Version: 2
130 # ADDRSIZE-NEXT: CuOffset: 0x1234
131 # ADDRSIZE-NEXT: AddressSize: [[ADDRSIZE]]
132 # ADDRSIZE-NEXT: Descriptors:
[all …]
H A Ddebug-ranges.yaml71 # BASIC-NEXT: AddrSize: [[ADDRSIZE]]
78 # BASIC-NEXT: AddrSize: [[ADDRSIZE]]
94 AddrSize: [[ADDRSIZE1=<none>]]
96 AddrSize: [[ADDRSIZE2=<none>]]
98 - AddrSize: [[ADDRSIZE3=<none>]]
104 - AddrSize: [[ADDRSIZE4=<none>]]
198 # COMMON-NEXT: AddrSize: 0x8
222 AddrSize: 8
/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugRnglists.cpp176 raw_ostream &OS, uint8_t AddrSize, uint8_t MaxEncodingStringLength, in dump() argument
181 uint8_t AddrSize, DIDumpOptions DumpOpts) { in dump() argument
185 .dump(OS, AddrSize, DumpOpts); in dump()
202 uint64_t Tombstone = dwarf::computeTombstoneAddress(AddrSize); in dump()
215 DWARFFormValue::dumpAddress(OS << ' ', AddrSize, Value0); in dump()
223 DWARFFormValue::dumpAddress(OS << ' ', AddrSize, Value0); in dump()
226 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
227 DWARFAddressRange(Value0, Value0 + Value1).dump(OS, AddrSize, DumpOpts); in dump()
230 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
233 .dump(OS, AddrSize, DumpOpts); in dump()
[all …]
H A DDWARFDebugAddr.cpp23 AddrSize, errc::not_supported, "address table at offset 0x%" PRIx64, in extractAddresses()
26 if (DataSize % AddrSize != 0) { in extractAddresses()
32 Offset, DataSize, AddrSize); in extractAddresses()
35 size_t Count = DataSize / AddrSize; in extractAddresses()
38 Addrs.push_back(Data.getRelocatedValue(AddrSize, OffsetPtr)); in extractAddresses()
79 AddrSize = Data.getU8(OffsetPtr); in extractV5()
97 if (CUAddrSize && AddrSize != CUAddrSize) { in extractV5()
102 Offset, AddrSize, CUAddrSize)); in extractV5()
116 AddrSize = CUAddrSize; in extractPreStandard()
145 << format(", addr_size = 0x%2.2" PRIx8, AddrSize) in dump()
[all …]
H A DDWARFDebugArangeSet.cpp74 HeaderData.AddrSize = data.getU8(offset_ptr, &Err); in extract()
92 HeaderData.AddrSize, errc::invalid_argument, in extract()
105 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract()
134 assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize); in extract()
139 arangeDescriptor.Address = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
140 arangeDescriptor.Length = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
173 << format("addr_size = 0x%2.2x, ", HeaderData.AddrSize) in dump()
177 Desc.dump(OS, HeaderData.AddrSize); in dump()
H A DDWARFListTable.cpp48 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
59 HeaderData.AddrSize, errc::not_supported, in extract()
73 Data.setAddressSize(HeaderData.AddrSize); in extract()
89 HeaderData.Version, HeaderData.AddrSize, HeaderData.SegSize, in dump()
/llvm-project/llvm/unittests/DebugInfo/DWARF/
H A DDwarfUtils.cpp35 Triple llvm::dwarf::utils::getDefaultTargetTripleForAddrSize(uint8_t AddrSize) { in getDefaultTargetTripleForAddrSize() argument
38 assert((AddrSize == 4 || AddrSize == 8) && in getDefaultTargetTripleForAddrSize()
43 if (AddrSize == 8 && T.isArch32Bit()) in getDefaultTargetTripleForAddrSize()
45 if (AddrSize == 4 && T.isArch64Bit()) in getDefaultTargetTripleForAddrSize()
H A DDWARFListTableTest.cpp21 /*AddrSize=*/4); in TEST()
42 /*AddrSize=*/4); in TEST()
62 /*AddrSize=*/4); in TEST()
89 /*AddrSize=*/4); in TEST()
H A DDwarfGenerator.h157 const uint8_t AddrSize; /// The size in bytes of an address for this unit. variable
161 : DG(D), DU(dwarf::DW_TAG_compile_unit), Version(V), AddrSize(A) {} in CompileUnit()
167 uint16_t getAddressSize() const { return AddrSize; } in getAddressSize()
184 LineTable(uint16_t Version, dwarf::DwarfFormat Format, uint8_t AddrSize,
186 : Version(Version), Format(Format), AddrSize(AddrSize), SegSize(SegSize) { in Version()
237 uint8_t AddrSize; variable
H A DDWARFDieTest.cpp41 AddrSize: 4 in TEST()
128 AddrSize: 8 in TEST()
222 AddrSize: 8 in TEST()
328 AddrSize: 8 in TEST()
436 AddrSize: 8 in TEST()
447 AddrSize: 8 in TEST()
558 AddrSize: 8 in TEST()
569 AddrSize: 8 in TEST()
798 AddrSize: 8
H A DDWARFFormValueTest.cpp135 std::tie(Fm, Version, AddrSize, Dwarf, InitialData, ExpectedSkipped, in SetUp()
142 ", AddrSize = " + std::to_string(uint32_t(AddrSize)) + in doSkipValueTest()
151 DWARFDataExtractor Data(Buf, sys::IsLittleEndianHost, AddrSize); in doSkipValueTest()
154 {Version, AddrSize, Dwarf}), in doSkipValueTest()
161 uint8_t AddrSize; member
199 // Form, Version, AddrSize, DwarfFormat, InitialData, ExpectedSize,
/llvm-project/llvm/unittests/BinaryFormat/
H A DDwarfTest.cpp144 std::optional<uint8_t> AddrSize; in TEST() local
149 AddrSize = getFixedFormByteSize(DW_FORM_ref_addr, Params_2_4_32); in TEST()
151 EXPECT_TRUE(AddrSize.has_value()); in TEST()
152 EXPECT_EQ(*RefSize, *AddrSize); in TEST()
157 AddrSize = getFixedFormByteSize(DW_FORM_ref_addr, Params_2_8_32); in TEST()
159 EXPECT_TRUE(AddrSize.has_value()); in TEST()
160 EXPECT_EQ(*RefSize, *AddrSize); in TEST()
/llvm-project/llvm/tools/obj2yaml/
H A Ddwarf2yaml.cpp81 AddrTables.back().AddrSize = AddrTable.getAddressSize(); in dumpDebugAddr()
124 Range.AddrSize = Set.getHeader().AddrSize; in dumpDebugARanges()
142 uint8_t AddrSize = 0; in dumpDebugRanges() local
145 if (AddrSize == 0) in dumpDebugRanges()
146 AddrSize = CUAddrSize; in dumpDebugRanges()
147 else if (CUAddrSize != AddrSize) in dumpDebugRanges()
153 DCtx.isLittleEndian(), AddrSize); in dumpDebugRanges()
161 YamlRanges.AddrSize = AddrSize; in dumpDebugRanges()
[all...]
/llvm-project/lldb/unittests/SymbolFile/DWARF/
H A DDWARFUnitTest.cpp38 AddrSize: 8 in TEST()
72 AddrSize: 8 in TEST()
110 AddrSize: 8 in TEST()
146 AddrSize: 8 in TEST()
/llvm-project/llvm/test/tools/yaml2obj/ELF/DWARF/
H A Ddebug-ranges.yaml76 - AddrSize: 0x04
371 ## to 'AddrSize' when the 'Entries' list is empty.
375 # RUN: FileCheck %s --check-prefix=ADDRSIZE
377 # ADDRSIZE: Hex dump of section '.debug_ranges':
378 # ADDRSIZE-NEXT: 0x00000000 00000000 00000000 00000000 0000
379 ## ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ terminating entry (2*AddrSize=14-byte)
388 - AddrSize: 0x07
392 ## 'AddrSize' when the 'Entries' list isn't empty.
406 - AddrSize: 0x07
H A Ddebug-rnglists.yaml293 # RUN: FileCheck %s --check-prefix=ADDRSIZE
295 # ADDRSIZE: Hex dump of section '.debug_rnglists':
296 # ADDRSIZE-NEXT: 0x00000000 22000000 05000400 01000000 04000000 "...............
298 # ADDRSIZE-NEXT: 0x00000010 05341200 00063412 00002143 00000734 .4....4...!C...4
306 # ADDRSIZE-NEXT: 0x00000020 120000b4 2400 ....$.
333 # RUN: FileCheck -DOPERATOR=base_address %s --check-prefix=INVALID-ADDRSIZE
336 # RUN: FileCheck -DOPERATOR=start_end %s --check-prefix=INVALID-ADDRSIZE
339 # RUN: FileCheck -DOPERATOR=start_length %s --check-prefix=INVALID-ADDRSIZE
341 # INVALID-ADDRSIZE: yaml2obj: error: unable to write address for the operator DW_RLE_[[OPERATOR]]: …
360 # RUN: FileCheck %s --check-prefix=ADDRSIZE-NOERROR
[all …]
H A Ddebug-aranges.yaml28 ## | | | +- AddrSize (1-byte) 0x04
43 ## | | | +- AddrSize (1-byte) 0x08
103 ## | | | +- AddrSize (1-byte) 0x04
118 ## | | | +- AddrSize (1-byte) 0x08
158 ## | +- AddrSize (1-byte) 0x04
169 ## | | | +- AddrSize (1-byte) 0x08
213 ## | +- AddrSize (1-byte) 0x04
224 ## | | | +- AddrSize (1-byte) 0x08
404 ## to 'AddrSize' when the 'Descriptors' list is empty.
430 ## 'AddrSize' when the 'Descriptors' list isn't empty.
[all …]
/llvm-project/llvm/test/ObjectYAML/MachO/
H A DDWARF-debug_info.yaml397 AddrSize: 8
518 # DWARF32-NEXT: AddrSize: 8
588 # DWARF32-YAML-NEXT: AddrSize: 8
655 AddrSize: 8
672 # DWARF64-YAML-NEXT: AddrSize: 8
722 # MULTI-TABLES-NEXT: AddrSize: 8
731 # MULTI-TABLES-NEXT: AddrSize: 8
740 # MULTI-TABLES-NEXT: AddrSize: 8
749 # MULTI-TABLES-NEXT: AddrSize: 8
/llvm-project/lldb/source/DataFormatters/
H A DCXXFunctionPointer.cpp59 int addrsize = target->GetArchitecture().GetAddressByteSize(); in CXXFunctionPointerSummaryProvider()
60 sstr.Printf("actual=0x%*.*" PRIx64 " ", addrsize * 2, in CXXFunctionPointerSummaryProvider() local
61 addrsize * 2, fixed_addr); in CXXFunctionPointerSummaryProvider()
/llvm-project/llvm/lib/MC/
H A DMCDwarf.cpp875 int AddrSize = asmInfo->getCodePointerSize(); in EmitGenDwarfAranges()
876 int Pad = 2 * AddrSize - (Length & (2 * AddrSize - 1)); in EmitGenDwarfAranges()
877 if (Pad == 2 * AddrSize) in EmitGenDwarfAranges()
883 Length += 2 * AddrSize * Sections.size(); in EmitGenDwarfAranges()
885 Length += 2 * AddrSize; in EmitGenDwarfAranges()
904 MCOS->emitInt8(AddrSize);
923 MCOS->emitValue(Addr, AddrSize); in EmitGenDwarfInfo()
924 emitAbsValue(*MCOS, Size, AddrSize); in EmitGenDwarfInfo()
928 MCOS->emitIntValue(0, AddrSize); in EmitGenDwarfInfo()
848 int AddrSize = asmInfo->getCodePointerSize(); EmitGenDwarfAranges() local
944 int AddrSize = AsmInfo.getCodePointerSize(); EmitGenDwarfInfo() local
1087 int AddrSize = AsmInfo->getCodePointerSize(); emitGenDwarfRanges() local
[all...]
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/
H A Ddebug-str-offsets-mixed-dwarf-4-5.yaml43 AddrSize: 8
51 AddrSize: 8
H A Dverify_cu_dont_share_line_table.yaml29 AddrSize: 8
38 AddrSize: 8
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerCompileUnit.cpp537 OutLocationSection.emitIntVal(OutLocationSection.getFormParams().AddrSize, 1); in emitLocListHeader()
564 OutLocationSection.getFormParams().AddrSize); in emitLocListFragment()
567 OutLocationSection.getFormParams().AddrSize); in emitLocListFragment()
582 OutLocationSection.getFormParams().AddrSize); in emitLocListFragment()
584 OutLocationSection.getFormParams().AddrSize); in emitLocListFragment()
655 OutAddrSection.emitIntVal(getFormParams().AddrSize, 1); in emitDebugAddrSection()
662 OutAddrSection.emitIntVal(AddrValue, getFormParams().AddrSize); in emitDebugAddrSection()
782 OutRangeSection.emitIntVal(OutRangeSection.getFormParams().AddrSize, 1); in emitRangeListHeader()
803 OutRangeSection.getFormParams().AddrSize); in emitRangeListFragment()
805 OutRangeSection.getFormParams().AddrSize); in emitRangeListFragment()
[all...]

123456