Home
last modified time | relevance | path

Searched refs:AddrSize (Results 1 – 25 of 54) sorted by relevance

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAddr.cpp25 uint8_t AddrSize, in extract() argument
74 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
79 HeaderData.AddrSize = AddrSize; in extract()
106 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
110 HeaderOffset, HeaderData.AddrSize); in extract()
111 if (HeaderData.AddrSize != AddrSize && AddrSize != 0) in extract()
116 HeaderOffset, HeaderData.AddrSize, AddrSize); in extract()
124 if (DataSize % HeaderData.AddrSize != 0) { in extract()
130 HeaderOffset, DataSize, HeaderData.AddrSize); in extract()
132 Data.setAddressSize(HeaderData.AddrSize); in extract()
[all …]
DDWARFDebugArangeSet.cpp56 HeaderData.AddrSize = data.getU8(offset_ptr); in extract()
61 (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8)) { in extract()
71 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract()
83 assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize); in extract()
86 arangeDescriptor.Address = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
87 arangeDescriptor.Length = data.getUnsigned(offset_ptr, HeaderData.AddrSize); in extract()
106 HeaderData.CuOffset, HeaderData.AddrSize, HeaderData.SegSize); in dump()
109 Desc.dump(OS, HeaderData.AddrSize); in dump()
DDWARFDebugRnglists.cpp153 void RangeListEntry::dump(raw_ostream &OS, uint8_t AddrSize, in dump() argument
157 uint8_t AddrSize, DIDumpOptions DumpOpts) { in dump() argument
161 .dump(OS, AddrSize, DumpOpts); in dump()
187 OS << format(" 0x%*.*" PRIx64, AddrSize * 2, AddrSize * 2, Value0); in dump()
190 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
191 DWARFAddressRange(Value0, Value0 + Value1).dump(OS, AddrSize, DumpOpts); in dump()
194 PrintRawEntry(OS, *this, AddrSize, DumpOpts); in dump()
196 .dump(OS, AddrSize, DumpOpts); in dump()
199 DWARFAddressRange(Value0, Value1).dump(OS, AddrSize, DumpOpts); in dump()
DDWARFListTable.cpp52 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
61 if (HeaderData.AddrSize != 4 && HeaderData.AddrSize != 8) in extract()
64 SectionName.data(), HeaderOffset, HeaderData.AddrSize); in extract()
75 Data.setAddressSize(HeaderData.AddrSize); in extract()
90 HeaderData.AddrSize, HeaderData.SegSize, HeaderData.OffsetEntryCount); 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/swiftshader/third_party/LLVM/lib/DebugInfo/
DDWARFDebugArangeSet.cpp72 Header.AddrSize = data.getU8(offset_ptr); in extract()
77 (Header.AddrSize != 4 && Header.AddrSize != 8)) { in extract()
87 const uint32_t tuple_size = Header.AddrSize * 2; in extract()
97 assert(sizeof(arangeDescriptor.Address) >= Header.AddrSize); in extract()
100 arangeDescriptor.Address = data.getUnsigned(offset_ptr, Header.AddrSize); in extract()
101 arangeDescriptor.Length = data.getUnsigned(offset_ptr, Header.AddrSize); in extract()
120 Header.CuOffset, Header.AddrSize, Header.SegSize); in dump()
122 const uint32_t hex_width = Header.AddrSize * 2; in dump()
DDWARFCompileUnit.cpp35 AddrSize = debug_info.getU8(offset_ptr); in extract()
40 bool addrSizeOK = AddrSize == 4 || AddrSize == 8; in extract()
66 AddrSize = debug_info_data.getU8 (&offset); in extract()
69 bool addrSizeOK = AddrSize == 4 || AddrSize == 8; in extract()
83 AddrSize = 0; in clear()
93 << " addr_size = " << format("0x%02x", AddrSize) in dump()
DDWARFCompileUnit.h29 uint8_t AddrSize; variable
66 uint8_t getAddressByteSize() const { return AddrSize; } in getAddressByteSize()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/BinaryFormat/
DDwarfTest.cpp145 Optional<uint8_t> AddrSize; in TEST() local
150 AddrSize = getFixedFormByteSize(DW_FORM_ref_addr, Params_2_4_32); in TEST()
152 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
153 EXPECT_EQ(*RefSize, *AddrSize); in TEST()
158 AddrSize = getFixedFormByteSize(DW_FORM_ref_addr, Params_2_8_32); in TEST()
160 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
161 EXPECT_EQ(*RefSize, *AddrSize); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDwarfUtils.cpp29 Triple llvm::dwarf::utils::getHostTripleForAddrSize(uint8_t AddrSize) { in getHostTripleForAddrSize() argument
32 if (AddrSize == 8 && T.isArch32Bit()) in getHostTripleForAddrSize()
34 if (AddrSize == 4 && T.isArch64Bit()) in getHostTripleForAddrSize()
DDwarfGenerator.h179 LineTable(uint16_t Version, dwarf::DwarfFormat Format, uint8_t AddrSize,
181 : Version(Version), Format(Format), AddrSize(AddrSize), SegSize(SegSize) { in Version()
229 uint8_t AddrSize; variable
DDwarfUtils.h22 Triple getHostTripleForAddrSize(uint8_t AddrSize);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCDwarf.cpp752 unsigned AddrSize = asmInfo->getCodePointerSize(); in FixedEncode() local
755 encodeULEB128(1 + AddrSize, OS); in FixedEncode()
759 *Size = AddrSize; in FixedEncode()
762 FillData.insert(FillData.begin(), AddrSize, 0); in FixedEncode()
763 OS.write(reinterpret_cast<char *>(FillData.data()), AddrSize); in FixedEncode()
863 int AddrSize = asmInfo->getCodePointerSize(); in EmitGenDwarfAranges() local
864 int Pad = 2 * AddrSize - (Length & (2 * AddrSize - 1)); in EmitGenDwarfAranges()
865 if (Pad == 2 * AddrSize) in EmitGenDwarfAranges()
871 Length += 2 * AddrSize * Sections.size(); in EmitGenDwarfAranges()
873 Length += 2 * AddrSize; in EmitGenDwarfAranges()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugAddr.h41 uint8_t AddrSize; member
59 uint16_t Version, uint8_t AddrSize,
63 uint8_t getAddrSize() const { return HeaderData.AddrSize; } in getAddrSize()
DDWARFDebugRnglists.h37 void dump(raw_ostream &OS, uint8_t AddrSize, uint8_t MaxEncodingStringLength,
/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-7.0/llvm/lib/CodeGen/AsmPrinter/
DAddressPool.cpp29 static const uint8_t AddrSize = Asm.getDataLayout().getPointerSize(); in emitHeader() local
35 + AddrSize * Pool.size(); // entries in emitHeader()
38 Asm.emitInt8(AddrSize); in emitHeader()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DDWARFEmitter.cpp101 writeInteger((uint8_t)Range.AddrSize, OS, DI.IsLittleEndian); in EmitDebugAranges()
105 auto FirstDescriptor = alignTo(HeaderSize, Range.AddrSize * 2); in EmitDebugAranges()
109 writeVariableSizedInteger(Descriptor.Address, Range.AddrSize, OS, in EmitDebugAranges()
111 writeVariableSizedInteger(Descriptor.Length, Range.AddrSize, OS, in EmitDebugAranges()
114 ZeroFillBytes(OS, Range.AddrSize * 2); in EmitDebugAranges()
146 writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian); in onStartCompileUnit()
150 writeInteger((uint8_t)CU.AddrSize, OS, DebugInfo.IsLittleEndian); in onStartCompileUnit()
249 writeVariableSizedInteger(Op.Data, DI.CompileUnits[0].AddrSize, OS, in EmitDebugLine()
DDWARFVisitor.cpp43 return Unit.AddrSize; in getRefSize()
69 onVariableSizeValue(FormVal->Value, Unit.AddrSize); in traverseDebugInfo()
/external/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h89 uint8_t AddrSize);
91 static ArrayRef<uint8_t> getFixedFormSizes(uint8_t AddrSize,
DDWARFUnit.h124 uint8_t AddrSize; variable
174 return DataExtractor(InfoSection.Data, isLittleEndian, AddrSize); in getDebugInfoExtractor()
197 uint8_t getAddressByteSize() const { return AddrSize; } in getAddressByteSize()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DDwarf.h497 uint8_t AddrSize; member
505 return AddrSize; in getRefAddrByteSize()
520 explicit operator bool() const { return Version && AddrSize; }
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/dsymutil/Inputs/
Dempty-CU.s5 .byte 4 # AddrSize

123