/external/swiftshader/third_party/LLVM/lib/Support/ |
D | DataExtractor.cpp | 17 static T getU(uint32_t *offset_ptr, const DataExtractor *de, in getU() argument 20 uint32_t offset = *offset_ptr; in getU() 27 *offset_ptr += sizeof(val); in getU() 33 static T *getUs(uint32_t *offset_ptr, T *dst, uint32_t count, in getUs() argument 35 uint32_t offset = *offset_ptr; in getUs() 40 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data); in getUs() 42 *offset_ptr = offset; in getUs() 50 uint8_t DataExtractor::getU8(uint32_t *offset_ptr) const { in getU8() 51 return getU<uint8_t>(offset_ptr, this, IsLittleEndian, Data.data()); in getU8() 55 DataExtractor::getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const { in getU8() argument [all …]
|
/external/llvm/lib/Support/ |
D | DataExtractor.cpp | 17 static T getU(uint32_t *offset_ptr, const DataExtractor *de, in getU() argument 20 uint32_t offset = *offset_ptr; in getU() 27 *offset_ptr += sizeof(val); in getU() 33 static T *getUs(uint32_t *offset_ptr, T *dst, uint32_t count, in getUs() argument 35 uint32_t offset = *offset_ptr; in getUs() 40 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data); in getUs() 42 *offset_ptr = offset; in getUs() 50 uint8_t DataExtractor::getU8(uint32_t *offset_ptr) const { in getU8() 51 return getU<uint8_t>(offset_ptr, this, IsLittleEndian, Data.data()); in getU8() 55 DataExtractor::getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const { in getU8() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | DataExtractor.cpp | 17 static T getU(uint32_t *offset_ptr, const DataExtractor *de, in getU() argument 20 uint32_t offset = *offset_ptr; in getU() 27 *offset_ptr += sizeof(val); in getU() 33 static T *getUs(uint32_t *offset_ptr, T *dst, uint32_t count, in getUs() argument 35 uint32_t offset = *offset_ptr; in getUs() 40 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data); in getUs() 42 *offset_ptr = offset; in getUs() 50 uint8_t DataExtractor::getU8(uint32_t *offset_ptr) const { in getU8() 51 return getU<uint8_t>(offset_ptr, this, IsLittleEndian, Data.data()); in getU8() 55 DataExtractor::getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const { in getU8() argument [all …]
|
/external/swiftshader/third_party/LLVM/lib/DebugInfo/ |
D | DWARFDebugLine.cpp | 133 uint32_t *offset_ptr, Prologue *prologue) { in parsePrologue() argument 134 const uint32_t prologue_offset = *offset_ptr; in parsePrologue() 137 prologue->TotalLength = debug_line_data.getU32(offset_ptr); in parsePrologue() 138 prologue->Version = debug_line_data.getU16(offset_ptr); in parsePrologue() 142 prologue->PrologueLength = debug_line_data.getU32(offset_ptr); in parsePrologue() 143 const uint32_t end_prologue_offset = prologue->PrologueLength + *offset_ptr; in parsePrologue() 144 prologue->MinInstLength = debug_line_data.getU8(offset_ptr); in parsePrologue() 145 prologue->DefaultIsStmt = debug_line_data.getU8(offset_ptr); in parsePrologue() 146 prologue->LineBase = debug_line_data.getU8(offset_ptr); in parsePrologue() 147 prologue->LineRange = debug_line_data.getU8(offset_ptr); in parsePrologue() [all …]
|
D | DWARFFormValue.cpp | 82 DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, in extractValue() argument 94 Value.uval = data.getUnsigned(offset_ptr, cu->getAddressByteSize()); in extractValue() 97 Value.uval = data.getULEB128(offset_ptr); in extractValue() 101 Value.uval = data.getU8(offset_ptr); in extractValue() 105 Value.uval = data.getU16(offset_ptr); in extractValue() 109 Value.uval = data.getU32(offset_ptr); in extractValue() 115 Value.uval = data.getU8(offset_ptr); in extractValue() 119 Value.uval = data.getU16(offset_ptr); in extractValue() 123 Value.uval = data.getU32(offset_ptr); in extractValue() 127 Value.uval = data.getU64(offset_ptr); in extractValue() [all …]
|
D | DWARFDebugArangeSet.cpp | 50 DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument 51 if (data.isValidOffset(*offset_ptr)) { in extract() 53 Offset = *offset_ptr; in extract() 69 Header.Length = data.getU32(offset_ptr); in extract() 70 Header.Version = data.getU16(offset_ptr); in extract() 71 Header.CuOffset = data.getU32(offset_ptr); in extract() 72 Header.AddrSize = data.getU8(offset_ptr); in extract() 73 Header.SegSize = data.getU8(offset_ptr); in extract() 86 const uint32_t header_size = *offset_ptr - Offset; in extract() 92 *offset_ptr = Offset + first_tuple_offset; in extract() [all …]
|
D | DWARFAbbreviationDeclaration.cpp | 18 DWARFAbbreviationDeclaration::extract(DataExtractor data, uint32_t* offset_ptr){ in extract() argument 19 return extract(data, offset_ptr, data.getULEB128(offset_ptr)); in extract() 23 DWARFAbbreviationDeclaration::extract(DataExtractor data, uint32_t* offset_ptr, in extract() argument 28 Tag = data.getULEB128(offset_ptr); in extract() 29 HasChildren = data.getU8(offset_ptr); in extract() 31 while (data.isValidOffset(*offset_ptr)) { in extract() 32 uint16_t attr = data.getULEB128(offset_ptr); in extract() 33 uint16_t form = data.getULEB128(offset_ptr); in extract()
|
D | DWARFDebugInfoEntry.cpp | 69 uint32_t* offset_ptr, in dumpAttribute() argument 73 OS << format("0x%8.8x: ", *offset_ptr); in dumpAttribute() 88 if (!formValue.extractValue(cu->getDebugInfoExtractor(), offset_ptr, cu)) in dumpAttribute() 98 uint32_t *offset_ptr) { in extractFast() argument 99 Offset = *offset_ptr; in extractFast() 102 uint64_t abbrCode = debug_info_data.getULEB128(offset_ptr); in extractFast() 107 uint32_t offset = *offset_ptr; in extractFast() 192 *offset_ptr = Offset; in extractFast() 200 *offset_ptr = offset; in extractFast() 212 uint32_t *offset_ptr) { in extract() argument [all …]
|
D | DWARFCompileUnit.cpp | 24 bool DWARFCompileUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) { in extract() argument 27 Offset = *offset_ptr; in extract() 29 if (debug_info.isValidOffset(*offset_ptr)) { in extract() 32 Length = debug_info.getU32(offset_ptr); in extract() 33 Version = debug_info.getU16(offset_ptr); in extract() 34 abbrOffset = debug_info.getU32(offset_ptr); in extract() 35 AddrSize = debug_info.getU8(offset_ptr); in extract() 48 *offset_ptr = Offset; in extract()
|
D | DWARFDebugAbbrev.cpp | 16 uint32_t* offset_ptr) { in extract() argument 17 const uint32_t beginOffset = *offset_ptr; in extract() 22 while (abbrevDeclaration.extract(data, offset_ptr)) { in extract() 32 return beginOffset != *offset_ptr; in extract()
|
D | DWARFFormValue.h | 52 bool extractValue(DataExtractor data, uint32_t *offset_ptr, 67 bool skipValue(DataExtractor debug_info_data, uint32_t *offset_ptr, 70 uint32_t *offset_ptr, const DWARFCompileUnit *cu);
|
D | DWARFDebugInfoEntry.h | 43 uint32_t *offset_ptr, uint16_t attr, uint16_t form, 47 uint32_t *offset_ptr); 51 bool extract(const DWARFCompileUnit *cu, uint32_t *offset_ptr);
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugLine.cpp | 68 uint32_t *offset_ptr) { in parse() argument 69 const uint64_t prologue_offset = *offset_ptr; in parse() 72 TotalLength = debug_line_data.getU32(offset_ptr); in parse() 75 TotalLength = debug_line_data.getU64(offset_ptr); in parse() 79 Version = debug_line_data.getU16(offset_ptr); in parse() 84 debug_line_data.getUnsigned(offset_ptr, sizeofPrologueLength()); in parse() 85 const uint64_t end_prologue_offset = PrologueLength + *offset_ptr; in parse() 86 MinInstLength = debug_line_data.getU8(offset_ptr); in parse() 88 MaxOpsPerInst = debug_line_data.getU8(offset_ptr); in parse() 89 DefaultIsStmt = debug_line_data.getU8(offset_ptr); in parse() [all …]
|
D | DWARFFormValue.cpp | 134 bool DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, in extractValue() argument 152 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); in extractValue() 155 Value.uval = data.getUnsigned(offset_ptr, AddrSize) + R.second; in extractValue() 157 Value.uval = data.getUnsigned(offset_ptr, AddrSize); in extractValue() 162 Value.uval = data.getULEB128(offset_ptr); in extractValue() 166 Value.uval = data.getU8(offset_ptr); in extractValue() 170 Value.uval = data.getU16(offset_ptr); in extractValue() 174 Value.uval = data.getU32(offset_ptr); in extractValue() 180 Value.uval = data.getU8(offset_ptr); in extractValue() 184 Value.uval = data.getU16(offset_ptr); in extractValue() [all …]
|
D | DWARFDebugArangeSet.cpp | 24 DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument 25 if (data.isValidOffset(*offset_ptr)) { in extract() 27 Offset = *offset_ptr; in extract() 43 HeaderData.Length = data.getU32(offset_ptr); in extract() 44 HeaderData.Version = data.getU16(offset_ptr); in extract() 45 HeaderData.CuOffset = data.getU32(offset_ptr); in extract() 46 HeaderData.AddrSize = data.getU8(offset_ptr); in extract() 47 HeaderData.SegSize = data.getU8(offset_ptr); in extract() 60 const uint32_t header_size = *offset_ptr - Offset; in extract() 66 *offset_ptr = Offset + first_tuple_offset; in extract() [all …]
|
D | DWARFDebugRangeList.cpp | 22 bool DWARFDebugRangeList::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument 24 if (!data.isValidOffset(*offset_ptr)) in extract() 29 Offset = *offset_ptr; in extract() 32 uint32_t prev_offset = *offset_ptr; in extract() 33 entry.StartAddress = data.getAddress(offset_ptr); in extract() 34 entry.EndAddress = data.getAddress(offset_ptr); in extract() 36 if (*offset_ptr != prev_offset + 2 * AddressSize) { in extract()
|
D | DWARFTypeUnit.cpp | 17 uint32_t *offset_ptr) { in extractImpl() argument 18 if (!DWARFUnit::extractImpl(debug_info, offset_ptr)) in extractImpl() 20 TypeHash = debug_info.getU64(offset_ptr); in extractImpl() 21 TypeOffset = debug_info.getU32(offset_ptr); in extractImpl()
|
D | DWARFUnit.cpp | 77 bool DWARFUnit::extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) { in extractImpl() argument 78 Length = debug_info.getU32(offset_ptr); in extractImpl() 79 Version = debug_info.getU16(offset_ptr); in extractImpl() 80 uint64_t AbbrOffset = debug_info.getU32(offset_ptr); in extractImpl() 92 AddrSize = debug_info.getU8(offset_ptr); in extractImpl() 105 bool DWARFUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) { in extract() argument 108 Offset = *offset_ptr; in extract() 110 if (debug_info.isValidOffset(*offset_ptr)) { in extract() 111 if (extractImpl(debug_info, offset_ptr)) in extract() 115 *offset_ptr = Offset; in extract()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | DataExtractor.h | 57 const char *getCStr(uint32_t *offset_ptr) const; 83 uint64_t getUnsigned(uint32_t *offset_ptr, uint32_t byte_size) const; 108 int64_t getSigned(uint32_t *offset_ptr, uint32_t size) const; 127 uint64_t getAddress(uint32_t *offset_ptr) const { in getAddress() argument 128 return getUnsigned(offset_ptr, PointerSize); in getAddress() 145 uint8_t getU8(uint32_t *offset_ptr) const; 170 uint8_t *getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const; 188 uint16_t getU16(uint32_t *offset_ptr) const; 213 uint16_t *getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count) const; 229 uint32_t getU32(uint32_t *offset_ptr) const; [all …]
|
/external/llvm/include/llvm/Support/ |
D | DataExtractor.h | 59 const char *getCStr(uint32_t *offset_ptr) const; 85 uint64_t getUnsigned(uint32_t *offset_ptr, uint32_t byte_size) const; 110 int64_t getSigned(uint32_t *offset_ptr, uint32_t size) const; 129 uint64_t getAddress(uint32_t *offset_ptr) const { in getAddress() argument 130 return getUnsigned(offset_ptr, AddressSize); in getAddress() 147 uint8_t getU8(uint32_t *offset_ptr) const; 172 uint8_t *getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const; 190 uint16_t getU16(uint32_t *offset_ptr) const; 215 uint16_t *getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count) const; 231 uint32_t getU32(uint32_t *offset_ptr) const; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | DataExtractor.h | 83 const char *getCStr(uint32_t *offset_ptr) const; 131 uint64_t getUnsigned(uint32_t *offset_ptr, uint32_t byte_size) const; 156 int64_t getSigned(uint32_t *offset_ptr, uint32_t size) const; 175 uint64_t getAddress(uint32_t *offset_ptr) const { in getAddress() argument 176 return getUnsigned(offset_ptr, AddressSize); in getAddress() 193 uint8_t getU8(uint32_t *offset_ptr) const; 218 uint8_t *getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count) const; 236 uint16_t getU16(uint32_t *offset_ptr) const; 261 uint16_t *getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count) const; 278 uint32_t getU24(uint32_t *offset_ptr) const; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugArangeSet.cpp | 34 DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) { in extract() argument 35 if (data.isValidOffset(*offset_ptr)) { in extract() 37 Offset = *offset_ptr; in extract() 53 HeaderData.Length = data.getU32(offset_ptr); in extract() 54 HeaderData.Version = data.getU16(offset_ptr); in extract() 55 HeaderData.CuOffset = data.getU32(offset_ptr); in extract() 56 HeaderData.AddrSize = data.getU8(offset_ptr); in extract() 57 HeaderData.SegSize = data.getU8(offset_ptr); in extract() 70 const uint32_t header_size = *offset_ptr - Offset; in extract() 76 *offset_ptr = Offset + first_tuple_offset; in extract() [all …]
|
D | DWARFDebugRangeList.cpp | 35 uint32_t *offset_ptr) { in extract() argument 37 if (!data.isValidOffset(*offset_ptr)) in extract() 38 return createError("invalid range list offset 0x%" PRIx32, *offset_ptr); in extract() 43 Offset = *offset_ptr; in extract() 48 uint32_t prev_offset = *offset_ptr; in extract() 49 Entry.StartAddress = data.getRelocatedAddress(offset_ptr); in extract() 51 data.getRelocatedAddress(offset_ptr, &Entry.SectionIndex); in extract() 54 if (*offset_ptr != prev_offset + 2 * AddressSize) { in extract()
|
D | DWARFUnit.cpp | 98 uint32_t *offset_ptr, in extract() argument 101 Offset = *offset_ptr; in extract() 102 IndexEntry = Index ? Index->getFromOffset(*offset_ptr) : nullptr; in extract() 103 Length = debug_info.getU32(offset_ptr); in extract() 107 FormParams.Version = debug_info.getU16(offset_ptr); in extract() 109 UnitType = debug_info.getU8(offset_ptr); in extract() 110 FormParams.AddrSize = debug_info.getU8(offset_ptr); in extract() 111 AbbrOffset = debug_info.getU32(offset_ptr); in extract() 113 AbbrOffset = debug_info.getRelocatedValue(4, offset_ptr); in extract() 114 FormParams.AddrSize = debug_info.getU8(offset_ptr); in extract() [all …]
|
/external/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFFormValue.h | 67 bool extractValue(DataExtractor data, uint32_t *offset_ptr, 83 bool skipValue(DataExtractor debug_info_data, uint32_t *offset_ptr, 86 uint32_t *offset_ptr, const DWARFUnit *u); 88 uint32_t *offset_ptr, uint16_t Version,
|