/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugAddr.cpp | 24 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 …]
|
D | DWARFDebugArangeSet.cpp | 55 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()
|
D | DWARFDebugRnglists.cpp | 183 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 …]
|
D | DWARFListTable.cpp | 57 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/lib/DebugInfo/DWARF/ |
D | DWARFDebugArangeSet.cpp | 46 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()
|
D | DWARFFormValue.cpp | 27 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 …]
|
D | DWARFUnit.cpp | 57 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/lib/DebugInfo/DWARF/ |
D | DWARFDebugAddr.cpp | 21 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 …]
|
D | DWARFDebugRnglists.cpp | 176 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 …]
|
D | DWARFDebugArangeSet.cpp | 73 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()
|
D | DWARFListTable.cpp | 47 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-project/llvm/lib/ObjectYAML/ |
D | DWARFEmitter.cpp | 144 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 …]
|
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
D | DwarfUtils.cpp | 35 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()
|
D | DwarfGenerator.h | 154 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/unittests/BinaryFormat/ |
D | DwarfTest.cpp | 144 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/include/llvm/DebugInfo/DWARF/ |
D | DWARFDebugAddr.h | 40 uint8_t AddrSize; member 58 uint16_t Version, uint8_t AddrSize, 62 uint8_t getAddrSize() const { return HeaderData.AddrSize; } in getAddrSize()
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | dwarf2yaml.cpp | 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/lib/MC/ |
D | MCDwarf.cpp | 582 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/ |
D | MCDwarf.cpp | 760 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/lib/MC/ |
D | MCDwarf.cpp | 789 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/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | DWARFEmitter.cpp | 100 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/include/llvm/DebugInfo/DWARF/ |
D | DWARFDebugAddr.h | 40 uint8_t AddrSize; variable 88 uint8_t getAddressSize() const { return AddrSize; } in getAddressSize()
|
/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
D | AddressPool.cpp | 27 static const uint8_t AddrSize = Asm.getDataLayout().getPointerSize(); in emitHeader() local 37 Asm.emitInt8(AddrSize); in emitHeader()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | AddressPool.cpp | 27 static const uint8_t AddrSize = Asm.getDataLayout().getPointerSize(); in emitHeader() local 39 Asm.emitInt8(AddrSize); in emitHeader()
|
/external/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFFormValue.h | 89 uint8_t AddrSize); 91 static ArrayRef<uint8_t> getFixedFormSizes(uint8_t AddrSize,
|