Lines Matching refs:Header
246 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header))
248 auto *Header = reinterpret_cast<const RawInstrProf::Header *>(
250 ShouldSwapBytes = Header->Magic != RawInstrProf::getMagic<IntPtrT>();
251 return readHeader(*Header);
264 // If there isn't enough space for another header, this is probably just
266 if (CurrentPos + sizeof(RawInstrProf::Header) > End)
271 // The magic should have the same byte order as in the previous header.
276 // There's another profile to read, so we need to process the header.
277 auto *Header = reinterpret_cast<const RawInstrProf::Header *>(CurrentPos);
278 return readHeader(*Header);
296 RawInstrProfReader<IntPtrT>::readHeader(const RawInstrProf::Header &Header) {
297 if (swap(Header.Version) != RawInstrProf::Version)
300 CountersDelta = swap(Header.CountersDelta);
301 NamesDelta = swap(Header.NamesDelta);
302 auto DataSize = swap(Header.DataSize);
303 auto CountersSize = swap(Header.CountersSize);
304 auto NamesSize = swap(Header.NamesSize);
305 auto ValueDataSize = swap(Header.ValueDataSize);
306 ValueKindLast = swap(Header.ValueKindLast);
311 ptrdiff_t DataOffset = sizeof(RawInstrProf::Header);
317 auto *Start = reinterpret_cast<const char *>(&Header);
565 auto *Header = reinterpret_cast<const IndexedInstrProf::Header *>(Cur);
566 Cur += sizeof(IndexedInstrProf::Header);
569 uint64_t Magic = endian::byte_swap<uint64_t, little>(Header->Magic);
574 uint64_t FormatVersion = endian::byte_swap<uint64_t, little>(Header->Version);
580 endian::byte_swap<uint64_t, little>(Header->MaxFunctionCount);
584 endian::byte_swap<uint64_t, little>(Header->HashType));
588 uint64_t HashOffset = endian::byte_swap<uint64_t, little>(Header->HashOffset);