LLVM 20.0.0git
|
GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations. More...
#include "llvm/ProfileData/GCOV.h"
Public Member Functions | |
GCOVBuffer (MemoryBuffer *B) | |
~GCOVBuffer () | |
bool | readGCNOFormat () |
readGCNOFormat - Check GCNO signature is valid at the beginning of buffer. | |
bool | readGCDAFormat () |
readGCDAFormat - Check GCDA signature is valid at the beginning of buffer. | |
bool | readGCOVVersion (GCOV::GCOVVersion &version) |
readGCOVVersion - Read GCOV version. | |
uint32_t | getWord () |
StringRef | getString () |
bool | readInt (uint32_t &Val) |
bool | readInt64 (uint64_t &Val) |
bool | readString (StringRef &str) |
Public Attributes | |
DataExtractor | de {ArrayRef<uint8_t>{}, false, 0} |
DataExtractor::Cursor | cursor {0} |
GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations.
|
inline |
|
inline |
Definition at line 76 of file GCOV.h.
References llvm::consumeError(), cursor, and llvm::DataExtractor::Cursor::takeError().
|
inline |
Definition at line 145 of file GCOV.h.
References cursor, de, llvm::DataExtractor::getBytes(), readInt(), and llvm::StringRef::split().
|
inline |
Definition at line 144 of file GCOV.h.
References cursor, de, and llvm::DataExtractor::getU32().
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
|
inline |
readGCDAFormat - Check GCDA signature is valid at the beginning of buffer.
Definition at line 94 of file GCOV.h.
References de, llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::substr().
Referenced by llvm::GCOVFile::readGCDA(), and llvm::sampleprof::SampleProfileReaderGCC::readHeader().
|
inline |
readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.
Definition at line 79 of file GCOV.h.
References de, llvm::errs(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::substr().
Referenced by llvm::GCOVFile::readGCNO().
|
inline |
readGCOVVersion - Read GCOV version.
Definition at line 108 of file GCOV.h.
References cursor, de, llvm::errs(), llvm::DataExtractor::getBytes(), llvm::DataExtractor::isLittleEndian(), llvm::GCOV::V1200, llvm::GCOV::V304, llvm::GCOV::V407, llvm::GCOV::V408, llvm::GCOV::V800, and llvm::GCOV::V900.
Referenced by llvm::GCOVFile::readGCDA(), llvm::GCOVFile::readGCNO(), and llvm::sampleprof::SampleProfileReaderGCC::readHeader().
Definition at line 152 of file GCOV.h.
References cursor, de, llvm::errs(), llvm::DataExtractor::getU32(), llvm::DataExtractor::size(), and llvm::DataExtractor::Cursor::tell().
Referenced by getString(), llvm::sampleprof::SampleProfileReaderGCC::readFunctionProfiles(), llvm::GCOVFile::readGCDA(), llvm::GCOVFile::readGCNO(), readInt64(), llvm::sampleprof::SampleProfileReaderGCC::readNameTable(), llvm::sampleprof::SampleProfileReaderGCC::readNumber(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::sampleprof::SampleProfileReaderGCC::readSectionTag(), readString(), and llvm::sampleprof::SampleProfileReaderGCC::skipNextWord().
Definition at line 162 of file GCOV.h.
References llvm::Hi, llvm::Lo, and readInt().
Referenced by llvm::GCOVFile::readGCDA(), llvm::sampleprof::SampleProfileReaderGCC::readNumber(), and llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile().
Definition at line 170 of file GCOV.h.
References cursor, de, llvm::StringRef::drop_back(), llvm::DataExtractor::getBytes(), readInt(), llvm::StringRef::split(), and llvm::GCOV::V1200.
Referenced by llvm::GCOVFile::readGCNO(), llvm::sampleprof::SampleProfileReaderGCC::readNameTable(), and llvm::sampleprof::SampleProfileReaderGCC::readString().
DataExtractor::Cursor llvm::GCOVBuffer::cursor {0} |
Definition at line 182 of file GCOV.h.
Referenced by getString(), getWord(), llvm::GCOVFile::readGCDA(), llvm::GCOVFile::readGCNO(), readGCOVVersion(), readInt(), readString(), and ~GCOVBuffer().
DataExtractor llvm::GCOVBuffer::de {ArrayRef<uint8_t>{}, false, 0} |
Definition at line 181 of file GCOV.h.
Referenced by getString(), getWord(), llvm::GCOVFile::readGCDA(), readGCDAFormat(), llvm::GCOVFile::readGCNO(), readGCNOFormat(), readGCOVVersion(), readInt(), and readString().