Home
last modified time | relevance | path

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

12345

/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAddr.cpp24 uint8_t AddrSize, in extract() argument
73 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
78 HeaderData.AddrSize = AddrSize; in extract()
105 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
109 HeaderOffset, HeaderData.AddrSize); in extract()
110 if (HeaderData.AddrSize != AddrSize && AddrSize != 0) in extract()
115 HeaderOffset, HeaderData.AddrSize, AddrSize); in extract()
123 if (DataSize % HeaderData.AddrSize != 0) { in extract()
129 HeaderOffset, DataSize, HeaderData.AddrSize); in extract()
131 Data.setAddressSize(HeaderData.AddrSize); in extract()
[all …]
DDWARFDebugRnglists.cpp183 raw_ostream &OS, uint8_t AddrSize, uint8_t MaxEncodingStringLength, in dump() argument
188 uint8_t AddrSize, DIDumpOptions DumpOpts) { in dump() argument
192 .dump(OS, AddrSize, DumpOpts); in dump()
220 OS << format(" 0x%*.*" PRIx64, AddrSize * 2, AddrSize * 2, Value0); in dump()
228 OS << format(" 0x%*.*" PRIx64, AddrSize * 2, AddrSize * 2, Value0); in dump()
231 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
232 DWARFAddressRange(Value0, Value0 + Value1).dump(OS, AddrSize, DumpOpts); in dump()
235 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
237 .dump(OS, AddrSize, DumpOpts); in dump()
240 DWARFAddressRange(Value0, Value1).dump(OS, AddrSize, DumpOpts); in dump()
[all …]
DDWARFDebugArangeSet.cpp55 HeaderData.AddrSize = data.getU8(offset_ptr); in extract()
60 (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8)) { in extract()
70 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract()
82 assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize); in extract()
85 arangeDescriptor.Address = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
86 arangeDescriptor.Length = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
105 HeaderData.CuOffset, HeaderData.AddrSize, HeaderData.SegSize); in dump()
108 Desc.dump(OS, HeaderData.AddrSize); in dump()
DDWARFListTable.cpp57 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
67 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
71 SectionName.data(), HeaderOffset, HeaderData.AddrSize); in extract()
83 Data.setAddressSize(HeaderData.AddrSize); in extract()
98 HeaderData.AddrSize, HeaderData.SegSize, HeaderData.OffsetEntryCount); in dump()
/external/llvm-project/llvm/lib/ObjectYAML/
DDWARFEmitter.cpp144 uint8_t AddrSize; in emitDebugAranges() local
145 if (Range.AddrSize) in emitDebugAranges()
146 AddrSize = *Range.AddrSize; in emitDebugAranges()
148 AddrSize = DI.Is64BitAddrSize ? 8 : 4; in emitDebugAranges()
159 const uint64_t PaddedHeaderLength = alignTo(HeaderLength, AddrSize * 2); in emitDebugAranges()
165 Length += AddrSize * 2 * (Range.Descriptors.size() + 1); in emitDebugAranges()
171 writeInteger((uint8_t)AddrSize, OS, DI.IsLittleEndian); in emitDebugAranges()
176 if (Error Err = writeVariableSizedInteger(Descriptor.Address, AddrSize, in emitDebugAranges()
181 cantFail(writeVariableSizedInteger(Descriptor.Length, AddrSize, OS, in emitDebugAranges()
184 ZeroFillBytes(OS, AddrSize * 2); in emitDebugAranges()
[all …]
DDWARFYAML.cpp147 IO.mapOptional("AddressSize", ARange.AddrSize); in mapping()
161 IO.mapOptional("AddrSize", DebugRanges.AddrSize); in mapping()
191 IO.mapOptional("AddrSize", Unit.AddrSize); in mapping()
265 IO.mapOptional("AddressSize", AddrTable.AddrSize); in mapping()
320 IO.mapOptional("AddressSize", ListTable.AddrSize); in mapping()
/external/llvm-project/llvm/test/tools/obj2yaml/ELF/DWARF/
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 …]
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
/external/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAddr.cpp21 if (AddrSize != 4 && AddrSize != 8) in extractAddresses()
26 Offset, AddrSize); in extractAddresses()
27 if (DataSize % AddrSize != 0) { in extractAddresses()
33 Offset, DataSize, AddrSize); in extractAddresses()
36 size_t Count = DataSize / AddrSize; in extractAddresses()
39 Addrs.push_back(Data.getRelocatedValue(AddrSize, OffsetPtr)); in extractAddresses()
80 AddrSize = Data.getU8(OffsetPtr); in extractV5()
98 if (CUAddrSize && AddrSize != CUAddrSize) { in extractV5()
103 Offset, AddrSize, CUAddrSize)); in extractV5()
117 AddrSize = CUAddrSize; in extractPreStandard()
[all …]
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 …]
DDWARFDebugArangeSet.cpp73 HeaderData.AddrSize = data.getU8(offset_ptr, &Err); in extract()
90 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
95 Offset, HeaderData.AddrSize); in extract()
106 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract()
135 assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize); in extract()
140 arangeDescriptor.Address = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
141 arangeDescriptor.Length = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
172 << format("addr_size = 0x%2.2x, ", HeaderData.AddrSize) in dump()
176 Desc.dump(OS, HeaderData.AddrSize); in dump()
DDWARFListTable.cpp47 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
57 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
61 SectionName.data(), HeaderOffset, HeaderData.AddrSize); in extract()
73 Data.setAddressSize(HeaderData.AddrSize); in extract()
89 HeaderData.Version, HeaderData.AddrSize, HeaderData.SegSize, in dump()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugArangeSet.cpp46 HeaderData.AddrSize = data.getU8(offset_ptr); in extract()
51 (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8)) { in extract()
61 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract()
73 assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize); in extract()
76 arangeDescriptor.Address = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
77 arangeDescriptor.Length = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
96 HeaderData.CuOffset, HeaderData.AddrSize, HeaderData.SegSize); in dump()
98 const uint32_t hex_width = HeaderData.AddrSize * 2; in dump()
DDWARFFormValue.cpp27 uint8_t getRefAddrSize(uint8_t AddrSize, uint16_t Version) { in getRefAddrSize() argument
29 return (Version == 2) ? AddrSize : 4; in getRefAddrSize()
32 template <uint8_t AddrSize, uint8_t RefAddrSize>
36 AddrSize, // 0x01 DW_FORM_addr in makeFixedFormSizesArrayRef()
66 ArrayRef<uint8_t> DWARFFormValue::getFixedFormSizes(uint8_t AddrSize, in getFixedFormSizes() argument
68 uint8_t RefAddrSize = getRefAddrSize(AddrSize, Version); in getFixedFormSizes()
69 if (AddrSize == 4 && RefAddrSize == 4) in getFixedFormSizes()
71 if (AddrSize == 4 && RefAddrSize == 8) in getFixedFormSizes()
73 if (AddrSize == 8 && RefAddrSize == 4) in getFixedFormSizes()
75 if (AddrSize == 8 && RefAddrSize == 8) in getFixedFormSizes()
[all …]
DDWARFUnit.cpp57 uint32_t Offset = AddrOffsetSectionBase + Index * AddrSize; in getAddrOffsetSectionItem()
58 if (AddrOffsetSection.size() < Offset + AddrSize) in getAddrOffsetSectionItem()
60 DataExtractor DA(AddrOffsetSection, isLittleEndian, AddrSize); in getAddrOffsetSectionItem()
92 AddrSize = debug_info.getU8(offset_ptr); in extractImpl()
96 bool AddrSizeOK = AddrSize == 4 || AddrSize == 8; in extractImpl()
125 DataExtractor RangesData(RangeSection, isLittleEndian, AddrSize); in extractRangeList()
135 AddrSize = 0; in clear()
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/
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()
DDwarfGenerator.h154 const uint8_t AddrSize; /// The size in bytes of an address for this unit. variable
158 : DG(D), DU(dwarf::DW_TAG_compile_unit), Version(V), AddrSize(A) {} in CompileUnit()
164 uint16_t getAddressSize() const { return AddrSize; } in getAddressSize()
181 LineTable(uint16_t Version, dwarf::DwarfFormat Format, uint8_t AddrSize,
183 : Version(Version), Format(Format), AddrSize(AddrSize), SegSize(SegSize) { in Version()
234 uint8_t AddrSize; variable
/external/llvm-project/llvm/tools/obj2yaml/
Ddwarf2yaml.cpp54 DCtx.isLittleEndian(), /*AddrSize=*/0); in dumpDebugAddr()
75 AddrTables.back().AddrSize = AddrTable.getAddressSize(); in dumpDebugAddr()
118 Range.AddrSize = Set.getHeader().AddrSize; in dumpDebugARanges()
136 uint8_t AddrSize = 0; in dumpDebugRanges() local
139 if (AddrSize == 0) in dumpDebugRanges()
140 AddrSize = CUAddrSize; in dumpDebugRanges()
141 else if (CUAddrSize != AddrSize) in dumpDebugRanges()
147 DCtx.isLittleEndian(), AddrSize); in dumpDebugRanges()
155 YamlRanges.AddrSize = AddrSize; in dumpDebugRanges()
228 NewUnit.AddrSize = CU->getAddressByteSize(); in dumpDebugInfo()
/external/llvm-project/llvm/unittests/BinaryFormat/
DDwarfTest.cpp144 Optional<uint8_t> AddrSize; in TEST() local
149 AddrSize = getFixedFormByteSize(DW_FORM_ref_addr, Params_2_4_32); in TEST()
151 EXPECT_TRUE(AddrSize.hasValue()); 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.hasValue()); in TEST()
160 EXPECT_EQ(*RefSize, *AddrSize); in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DDWARFEmitter.cpp100 writeInteger((uint8_t)Range.AddrSize, OS, DI.IsLittleEndian); in EmitDebugAranges()
104 auto FirstDescriptor = alignTo(HeaderSize, Range.AddrSize * 2); in EmitDebugAranges()
108 writeVariableSizedInteger(Descriptor.Address, Range.AddrSize, OS, in EmitDebugAranges()
110 writeVariableSizedInteger(Descriptor.Length, Range.AddrSize, OS, in EmitDebugAranges()
113 ZeroFillBytes(OS, Range.AddrSize * 2); in EmitDebugAranges()
145 writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian); in onStartCompileUnit()
149 writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian); in onStartCompileUnit()
248 writeVariableSizedInteger(Op.Data, DI.CompileUnits[0].AddrSize, OS, in EmitDebugLine()
/external/llvm-project/llvm/test/tools/yaml2obj/ELF/DWARF/
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
/external/llvm-project/llvm/lib/MC/
DMCDwarf.cpp789 unsigned AddrSize = asmInfo->getCodePointerSize(); in FixedEncode() local
792 encodeULEB128(1 + AddrSize, OS); in FixedEncode()
796 *Size = AddrSize; in FixedEncode()
798 OS.write_zeros(AddrSize); in FixedEncode()
896 int AddrSize = asmInfo->getCodePointerSize(); in EmitGenDwarfAranges() local
897 int Pad = 2 * AddrSize - (Length & (2 * AddrSize - 1)); in EmitGenDwarfAranges()
898 if (Pad == 2 * AddrSize) in EmitGenDwarfAranges()
904 Length += 2 * AddrSize * Sections.size(); in EmitGenDwarfAranges()
906 Length += 2 * AddrSize; in EmitGenDwarfAranges()
925 MCOS->emitInt8(AddrSize); in EmitGenDwarfAranges()
[all …]
/external/llvm/lib/MC/
DMCDwarf.cpp582 int AddrSize = asmInfo->getPointerSize(); in EmitGenDwarfAranges() local
583 int Pad = 2 * AddrSize - (Length & (2 * AddrSize - 1)); in EmitGenDwarfAranges()
584 if (Pad == 2 * AddrSize) in EmitGenDwarfAranges()
590 Length += 2 * AddrSize * Sections.size(); in EmitGenDwarfAranges()
592 Length += 2 * AddrSize; in EmitGenDwarfAranges()
608 MCOS->EmitIntValue(AddrSize, 1); in EmitGenDwarfAranges()
627 MCOS->EmitValue(Addr, AddrSize); in EmitGenDwarfAranges()
628 emitAbsValue(*MCOS, Size, AddrSize); in EmitGenDwarfAranges()
632 MCOS->EmitIntValue(0, AddrSize); in EmitGenDwarfAranges()
633 MCOS->EmitIntValue(0, AddrSize); in EmitGenDwarfAranges()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCDwarf.cpp760 unsigned AddrSize = asmInfo->getCodePointerSize(); in FixedEncode() local
763 encodeULEB128(1 + AddrSize, OS); in FixedEncode()
767 *Size = AddrSize; in FixedEncode()
769 OS.write_zeros(AddrSize); in FixedEncode()
869 int AddrSize = asmInfo->getCodePointerSize(); in EmitGenDwarfAranges() local
870 int Pad = 2 * AddrSize - (Length & (2 * AddrSize - 1)); in EmitGenDwarfAranges()
871 if (Pad == 2 * AddrSize) in EmitGenDwarfAranges()
877 Length += 2 * AddrSize * Sections.size(); in EmitGenDwarfAranges()
879 Length += 2 * AddrSize; in EmitGenDwarfAranges()
894 MCOS->EmitIntValue(AddrSize, 1); in EmitGenDwarfAranges()
[all …]
/external/llvm-project/llvm/test/ObjectYAML/MachO/
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

12345