Home
last modified time | relevance | path

Searched refs:OffsetPtr (Results 1 – 25 of 83) sorted by relevance

1234

/external/llvm-project/llvm/lib/XRay/
DRecordInitializer.cpp14 if (!E.isValidOffsetForDataOfSize(OffsetPtr, sizeof(uint64_t))) in visit()
17 "Invalid offset for a buffer extent (%" PRId64 ").", OffsetPtr); in visit()
19 auto PreReadOffset = OffsetPtr; in visit()
20 R.Size = E.getU64(&OffsetPtr); in visit()
21 if (PreReadOffset == OffsetPtr) in visit()
24 OffsetPtr); in visit()
26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
31 if (!E.isValidOffsetForDataOfSize(OffsetPtr, in visit()
35 "Invalid offset for a wallclock record (%" PRId64 ").", OffsetPtr); in visit()
36 auto BeginOffset = OffsetPtr; in visit()
[all …]
DTrace.cpp50 uint64_t OffsetPtr = 0; in loadNaiveFormatLog() local
51 auto FileHeaderOrError = readBinaryFormatHeader(Reader, OffsetPtr); in loadNaiveFormatLog()
66 while (Reader.isValidOffset(OffsetPtr)) { in loadNaiveFormatLog()
67 if (!Reader.isValidOffsetForDataOfSize(OffsetPtr, 32)) in loadNaiveFormatLog()
71 OffsetPtr); in loadNaiveFormatLog()
72 auto PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
73 auto RecordType = Reader.getU16(&OffsetPtr); in loadNaiveFormatLog()
74 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
77 "Failed reading record type at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
85 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
[all …]
DFileHeaderReader.cpp15 uint64_t &OffsetPtr) { in readBinaryFormatHeader() argument
28 auto PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
29 FileHeader.Version = HeaderExtractor.getU16(&OffsetPtr); in readBinaryFormatHeader()
30 if (OffsetPtr == PreReadOffset) in readBinaryFormatHeader()
34 OffsetPtr); in readBinaryFormatHeader()
36 PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
37 FileHeader.Type = HeaderExtractor.getU16(&OffsetPtr); in readBinaryFormatHeader()
38 if (OffsetPtr == PreReadOffset) in readBinaryFormatHeader()
42 OffsetPtr); in readBinaryFormatHeader()
44 PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
[all …]
DFDRRecordProducer.cpp87 auto PreReadOffset = OffsetPtr; in findNextBufferExtent()
88 uint8_t FirstByte = E.getU8(&OffsetPtr); in findNextBufferExtent()
89 if (OffsetPtr == PreReadOffset) in findNextBufferExtent()
92 "Failed reading one byte from offset %" PRId64 ".", OffsetPtr); in findNextBufferExtent()
102 RecordInitializer RI(E, OffsetPtr); in findNextBufferExtent()
149 auto PreReadOffset = OffsetPtr; in produce()
150 uint8_t FirstByte = E.getU8(&OffsetPtr); in produce()
151 if (OffsetPtr == PreReadOffset) in produce()
154 "Failed reading one byte from offset %" PRId64 ".", OffsetPtr); in produce()
172 RecordInitializer RI(E, OffsetPtr); in produce()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/
DRecordInitializer.cpp14 if (!E.isValidOffsetForDataOfSize(OffsetPtr, sizeof(uint64_t))) in visit()
17 "Invalid offset for a buffer extent (%" PRId64 ").", OffsetPtr); in visit()
19 auto PreReadOffset = OffsetPtr; in visit()
20 R.Size = E.getU64(&OffsetPtr); in visit()
21 if (PreReadOffset == OffsetPtr) in visit()
24 OffsetPtr); in visit()
26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
31 if (!E.isValidOffsetForDataOfSize(OffsetPtr, in visit()
35 "Invalid offset for a wallclock record (%" PRId64 ").", OffsetPtr); in visit()
36 auto BeginOffset = OffsetPtr; in visit()
[all …]
DTrace.cpp50 uint64_t OffsetPtr = 0; in loadNaiveFormatLog() local
51 auto FileHeaderOrError = readBinaryFormatHeader(Reader, OffsetPtr); in loadNaiveFormatLog()
66 while (Reader.isValidOffset(OffsetPtr)) { in loadNaiveFormatLog()
67 if (!Reader.isValidOffsetForDataOfSize(OffsetPtr, 32)) in loadNaiveFormatLog()
71 OffsetPtr); in loadNaiveFormatLog()
72 auto PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
73 auto RecordType = Reader.getU16(&OffsetPtr); in loadNaiveFormatLog()
74 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
77 "Failed reading record type at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
85 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
[all …]
DFileHeaderReader.cpp15 uint64_t &OffsetPtr) { in readBinaryFormatHeader() argument
28 auto PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
29 FileHeader.Version = HeaderExtractor.getU16(&OffsetPtr); in readBinaryFormatHeader()
30 if (OffsetPtr == PreReadOffset) in readBinaryFormatHeader()
34 OffsetPtr); in readBinaryFormatHeader()
36 PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
37 FileHeader.Type = HeaderExtractor.getU16(&OffsetPtr); in readBinaryFormatHeader()
38 if (OffsetPtr == PreReadOffset) in readBinaryFormatHeader()
42 OffsetPtr); in readBinaryFormatHeader()
44 PreReadOffset = OffsetPtr; in readBinaryFormatHeader()
[all …]
DFDRRecordProducer.cpp87 auto PreReadOffset = OffsetPtr; in findNextBufferExtent()
88 uint8_t FirstByte = E.getU8(&OffsetPtr); in findNextBufferExtent()
89 if (OffsetPtr == PreReadOffset) in findNextBufferExtent()
92 "Failed reading one byte from offset %" PRId64 ".", OffsetPtr); in findNextBufferExtent()
102 RecordInitializer RI(E, OffsetPtr); in findNextBufferExtent()
149 auto PreReadOffset = OffsetPtr; in produce()
150 uint8_t FirstByte = E.getU8(&OffsetPtr); in produce()
151 if (OffsetPtr == PreReadOffset) in produce()
154 "Failed reading one byte from offset %" PRId64 ".", OffsetPtr); in produce()
172 RecordInitializer RI(E, OffsetPtr); in produce()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugRnglists.cpp20 uint64_t *OffsetPtr) { in extract() argument
21 Offset = *OffsetPtr; in extract()
25 assert(*OffsetPtr < End && in extract()
27 uint8_t Encoding = Data.getU8(OffsetPtr); in extract()
35 uint64_t PreviousOffset = *OffsetPtr - 1; in extract()
36 Value0 = Data.getULEB128(OffsetPtr); in extract()
37 if (End < *OffsetPtr) in extract()
49 *OffsetPtr - 1); in extract()
51 uint64_t PreviousOffset = *OffsetPtr - 1; in extract()
52 Value0 = Data.getULEB128(OffsetPtr); in extract()
[all …]
DDWARFDebugInfoEntry.cpp22 uint64_t *OffsetPtr) { in extractFast() argument
25 return extractFast(U, OffsetPtr, DebugInfoData, UEndOffset, 0); in extractFast()
28 bool DWARFDebugInfoEntry::extractFast(const DWARFUnit &U, uint64_t *OffsetPtr, in extractFast() argument
31 Offset = *OffsetPtr; in extractFast()
35 uint64_t AbbrCode = DebugInfoData.getULEB128(OffsetPtr); in extractFast()
44 *OffsetPtr = Offset; in extractFast()
50 *OffsetPtr += *FixedSize; in extractFast()
59 *OffsetPtr += *FixedSize; in extractFast()
61 OffsetPtr, U.getFormParams())) { in extractFast()
64 *OffsetPtr = Offset; in extractFast()
DDWARFDebugLine.cpp158 uint64_t *OffsetPtr, uint64_t EndPrologueOffset, in parseV2DirFileTables() argument
162 while (*OffsetPtr < EndPrologueOffset) { in parseV2DirFileTables()
163 StringRef S = DebugLineData.getCStrRef(OffsetPtr); in parseV2DirFileTables()
171 while (*OffsetPtr < EndPrologueOffset) { in parseV2DirFileTables()
172 StringRef Name = DebugLineData.getCStrRef(OffsetPtr); in parseV2DirFileTables()
178 FileEntry.DirIdx = DebugLineData.getULEB128(OffsetPtr); in parseV2DirFileTables()
179 FileEntry.ModTime = DebugLineData.getULEB128(OffsetPtr); in parseV2DirFileTables()
180 FileEntry.Length = DebugLineData.getULEB128(OffsetPtr); in parseV2DirFileTables()
192 parseV5EntryFormat(const DWARFDataExtractor &DebugLineData, uint64_t *OffsetPtr, in parseV5EntryFormat() argument
195 int FormatCount = DebugLineData.getU8(OffsetPtr); in parseV5EntryFormat()
[all …]
DDWARFFormValue.cpp101 uint64_t *OffsetPtr) { in createFromUnit() argument
103 FormValue.extractValue(U->getDebugInfoExtractor(), OffsetPtr, in createFromUnit()
109 uint64_t *OffsetPtr, in skipValue() argument
118 uint64_t size = DebugInfoData.getULEB128(OffsetPtr); in skipValue()
119 *OffsetPtr += size; in skipValue()
123 uint8_t size = DebugInfoData.getU8(OffsetPtr); in skipValue()
124 *OffsetPtr += size; in skipValue()
128 uint16_t size = DebugInfoData.getU16(OffsetPtr); in skipValue()
129 *OffsetPtr += size; in skipValue()
133 uint32_t size = DebugInfoData.getU32(OffsetPtr); in skipValue()
[all …]
DDWARFListTable.cpp19 uint64_t *OffsetPtr) { in extract() argument
20 HeaderOffset = *OffsetPtr; in extract()
22 if (!Data.isValidOffsetForDataOfSize(*OffsetPtr, sizeof(uint32_t))) in extract()
26 SectionName.data(), *OffsetPtr); in extract()
29 HeaderData.Length = Data.getRelocatedValue(4, OffsetPtr); in extract()
33 HeaderData.Length = Data.getU64(OffsetPtr); in extract()
56 HeaderData.Version = Data.getU16(OffsetPtr); in extract()
57 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
58 HeaderData.SegSize = Data.getU8(OffsetPtr); in extract()
59 HeaderData.OffsetEntryCount = Data.getU32(OffsetPtr); in extract()
[all …]
DDWARFDebugAddr.cpp22 uint64_t *OffsetPtr, in extract() argument
27 HeaderOffset = *OffsetPtr; in extract()
29 if (!Data.isValidOffsetForDataOfSize(*OffsetPtr, sizeof(uint32_t))) in extract()
33 PRIx64, *OffsetPtr); in extract()
46 HeaderData.Length = Data.getU32(OffsetPtr); in extract()
72 HeaderData.Version = Data.getU16(OffsetPtr); in extract()
73 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
74 HeaderData.SegSize = Data.getU8(OffsetPtr); in extract()
135 Addrs.push_back(Data.getU32(OffsetPtr)); in extract()
137 Addrs.push_back(Data.getU64(OffsetPtr)); in extract()
DDWARFAbbreviationDeclaration.cpp41 uint64_t* OffsetPtr) { in extract() argument
43 const uint64_t Offset = *OffsetPtr; in extract()
44 Code = Data.getULEB128(OffsetPtr); in extract()
48 CodeByteSize = *OffsetPtr - Offset; in extract()
49 Tag = static_cast<llvm::dwarf::Tag>(Data.getULEB128(OffsetPtr)); in extract()
54 uint8_t ChildrenByte = Data.getU8(OffsetPtr); in extract()
63 auto A = static_cast<Attribute>(Data.getULEB128(OffsetPtr)); in extract()
64 auto F = static_cast<Form>(Data.getULEB128(OffsetPtr)); in extract()
68 int64_t V = Data.getSLEB128(OffsetPtr); in extract()
/external/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAddr.cpp16 uint64_t *OffsetPtr, in extractAddresses() argument
18 assert(EndOffset >= *OffsetPtr); in extractAddresses()
19 uint64_t DataSize = EndOffset - *OffsetPtr; in extractAddresses()
20 assert(Data.isValidOffsetForDataOfSize(*OffsetPtr, DataSize)); in extractAddresses()
39 Addrs.push_back(Data.getRelocatedValue(AddrSize, OffsetPtr)); in extractAddresses()
44 uint64_t *OffsetPtr, uint8_t CUAddrSize, in extractV5() argument
46 Offset = *OffsetPtr; in extractV5()
48 std::tie(Length, Format) = Data.getInitialLength(OffsetPtr, &Err); in extractV5()
57 if (!Data.isValidOffsetForDataOfSize(*OffsetPtr, Length)) { in extractV5()
66 uint64_t EndOffset = *OffsetPtr + Length; in extractV5()
[all …]
DDWARFDebugInfoEntry.cpp22 uint64_t *OffsetPtr) { in extractFast() argument
25 return extractFast(U, OffsetPtr, DebugInfoData, UEndOffset, 0); in extractFast()
28 bool DWARFDebugInfoEntry::extractFast(const DWARFUnit &U, uint64_t *OffsetPtr, in extractFast() argument
31 Offset = *OffsetPtr; in extractFast()
35 uint64_t AbbrCode = DebugInfoData.getULEB128(OffsetPtr); in extractFast()
45 *OffsetPtr = Offset; in extractFast()
51 *OffsetPtr += *FixedSize; in extractFast()
60 *OffsetPtr += *FixedSize; in extractFast()
62 OffsetPtr, U.getFormParams())) { in extractFast()
65 *OffsetPtr = Offset; in extractFast()
DDWARFFormValue.cpp101 uint64_t *OffsetPtr) { in createFromUnit() argument
103 FormValue.extractValue(U->getDebugInfoExtractor(), OffsetPtr, in createFromUnit()
109 uint64_t *OffsetPtr, in skipValue() argument
118 uint64_t size = DebugInfoData.getULEB128(OffsetPtr); in skipValue()
119 *OffsetPtr += size; in skipValue()
123 uint8_t size = DebugInfoData.getU8(OffsetPtr); in skipValue()
124 *OffsetPtr += size; in skipValue()
128 uint16_t size = DebugInfoData.getU16(OffsetPtr); in skipValue()
129 *OffsetPtr += size; in skipValue()
133 uint32_t size = DebugInfoData.getU32(OffsetPtr); in skipValue()
[all …]
DDWARFAbbreviationDeclaration.cpp41 uint64_t* OffsetPtr) { in extract() argument
43 const uint64_t Offset = *OffsetPtr; in extract()
44 Code = Data.getULEB128(OffsetPtr); in extract()
48 CodeByteSize = *OffsetPtr - Offset; in extract()
49 Tag = static_cast<llvm::dwarf::Tag>(Data.getULEB128(OffsetPtr)); in extract()
54 uint8_t ChildrenByte = Data.getU8(OffsetPtr); in extract()
63 auto A = static_cast<Attribute>(Data.getULEB128(OffsetPtr)); in extract()
64 auto F = static_cast<Form>(Data.getULEB128(OffsetPtr)); in extract()
68 int64_t V = Data.getSLEB128(OffsetPtr); in extract()
DDWARFListTable.cpp19 uint64_t *OffsetPtr) { in extract() argument
20 HeaderOffset = *OffsetPtr; in extract()
23 std::tie(HeaderData.Length, Format) = Data.getInitialLength(OffsetPtr, &Err); in extract()
46 HeaderData.Version = Data.getU16(OffsetPtr); in extract()
47 HeaderData.AddrSize = Data.getU8(OffsetPtr); in extract()
48 HeaderData.SegSize = Data.getU8(OffsetPtr); in extract()
49 HeaderData.OffsetEntryCount = Data.getU32(OffsetPtr); in extract()
74 *OffsetPtr += HeaderData.OffsetEntryCount * OffsetByteSize; in extract()
DDWARFDebugLine.cpp184 uint64_t *OffsetPtr, in parseV2DirFileTables() argument
190 StringRef S = DebugLineData.getCStrRef(OffsetPtr, &Err); in parseV2DirFileTables()
209 StringRef Name = DebugLineData.getCStrRef(OffsetPtr, &Err); in parseV2DirFileTables()
216 FileEntry.DirIdx = DebugLineData.getULEB128(OffsetPtr, &Err); in parseV2DirFileTables()
217 FileEntry.ModTime = DebugLineData.getULEB128(OffsetPtr, &Err); in parseV2DirFileTables()
218 FileEntry.Length = DebugLineData.getULEB128(OffsetPtr, &Err); in parseV2DirFileTables()
237 parseV5EntryFormat(const DWARFDataExtractor &DebugLineData, uint64_t *OffsetPtr, in parseV5EntryFormat() argument
241 int FormatCount = DebugLineData.getU8(OffsetPtr, &Err); in parseV5EntryFormat()
246 dwarf::LineNumberEntryFormat(DebugLineData.getULEB128(OffsetPtr, &Err)); in parseV5EntryFormat()
247 Descriptor.Form = dwarf::Form(DebugLineData.getULEB128(OffsetPtr, &Err)); in parseV5EntryFormat()
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DDWARFAbbreviationDeclaration.cpp29 DWARFAbbreviationDeclaration::extract(DataExtractor Data, uint32_t* OffsetPtr) { in extract() argument
31 Code = Data.getULEB128(OffsetPtr); in extract()
35 Tag = Data.getULEB128(OffsetPtr); in extract()
36 uint8_t ChildrenByte = Data.getU8(OffsetPtr); in extract()
40 uint32_t CurOffset = *OffsetPtr; in extract()
41 uint16_t Attr = Data.getULEB128(OffsetPtr); in extract()
42 if (CurOffset == *OffsetPtr) { in extract()
46 CurOffset = *OffsetPtr; in extract()
47 uint16_t Form = Data.getULEB128(OffsetPtr); in extract()
48 if (CurOffset == *OffsetPtr) { in extract()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFListTable.h50 uint64_t *OffsetPtr, StringRef SectionName,
126 Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
159 Error extractHeaderAndOffsets(DWARFDataExtractor Data, uint64_t *OffsetPtr) { in extractHeaderAndOffsets() argument
160 return Header.extract(Data, OffsetPtr); in extractHeaderAndOffsets()
163 Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
193 uint64_t *OffsetPtr) { in extract() argument
195 if (Error E = extractHeaderAndOffsets(Data, OffsetPtr)) in extract()
200 while (*OffsetPtr < End) { in extract()
202 uint64_t Off = *OffsetPtr; in extract()
203 if (Error E = CurrentList.extract(Data, getHeaderOffset(), End, OffsetPtr, in extract()
[all …]
/external/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
DDWARFListTable.h50 uint64_t *OffsetPtr, StringRef SectionName,
133 Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
166 Error extractHeaderAndOffsets(DWARFDataExtractor Data, uint64_t *OffsetPtr) { in extractHeaderAndOffsets() argument
167 return Header.extract(Data, OffsetPtr); in extractHeaderAndOffsets()
170 Error extract(DWARFDataExtractor Data, uint64_t *OffsetPtr);
200 uint64_t *OffsetPtr) { in extract() argument
202 if (Error E = extractHeaderAndOffsets(Data, OffsetPtr)) in extract()
207 while (Data.isValidOffset(*OffsetPtr)) { in extract()
209 uint64_t Off = *OffsetPtr; in extract()
210 if (Error E = CurrentList.extract(Data, getHeaderOffset(), OffsetPtr, in extract()
[all …]
/external/llvm-project/llvm/lib/Support/
DDataExtractor.cpp102 uint32_t DataExtractor::getU24(uint64_t *OffsetPtr, Error *Err) const { in getU24() argument
103 uint24_t ExtractedVal = getU<uint24_t>(OffsetPtr, Err); in getU24()
156 StringRef DataExtractor::getCStrRef(uint64_t *OffsetPtr, Error *Err) const { in getCStrRef() argument
161 uint64_t Start = *OffsetPtr; in getCStrRef()
164 *OffsetPtr = Pos + 1; in getCStrRef()
174 StringRef DataExtractor::getFixedLengthString(uint64_t *OffsetPtr, in getFixedLengthString() argument
177 StringRef Bytes(getBytes(OffsetPtr, Length)); in getFixedLengthString()
181 StringRef DataExtractor::getBytes(uint64_t *OffsetPtr, uint64_t Length, in getBytes() argument
187 if (!prepareRead(*OffsetPtr, Length, Err)) in getBytes()
190 StringRef Result = Data.substr(*OffsetPtr, Length); in getBytes()
[all …]

1234