LLVM API Documentation
#include <GCOV.h>
Public Member Functions | |
GCOVBuffer (MemoryBuffer *B) | |
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. | |
bool | readFunctionTag () |
bool | readBlockTag () |
bool | readEdgeTag () |
bool | readLineTag () |
bool | readArcTag () |
bool | readObjectTag () |
bool | readProgramTag () |
bool | readInt (uint32_t &Val) |
bool | readInt64 (uint64_t &Val) |
bool | readString (StringRef &Str) |
uint64_t | getCursor () const |
void | advanceCursor (uint32_t n) |
GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations.
llvm::GCOVBuffer::GCOVBuffer | ( | MemoryBuffer * | B | ) | [inline] |
void llvm::GCOVBuffer::advanceCursor | ( | uint32_t | n | ) | [inline] |
Definition at line 225 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA().
uint64_t llvm::GCOVBuffer::getCursor | ( | ) | const [inline] |
Definition at line 224 of file GCOV.h.
Referenced by llvm::GCOVFunction::readGCNO().
bool llvm::GCOVBuffer::readArcTag | ( | ) | [inline] |
readArcTag - If cursor points to an gcda arc tag then increment the cursor and return true otherwise return false.
Definition at line 153 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCDA().
bool llvm::GCOVBuffer::readBlockTag | ( | ) | [inline] |
readBlockTag - If cursor points to a block tag then increment the cursor and return true otherwise return false.
Definition at line 114 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
bool llvm::GCOVBuffer::readEdgeTag | ( | ) | [inline] |
readEdgeTag - If cursor points to an edge tag then increment the cursor and return true otherwise return false.
Definition at line 127 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
bool llvm::GCOVBuffer::readFunctionTag | ( | ) | [inline] |
readFunctionTag - If cursor points to a function tag then increment the cursor and return true otherwise return false.
Definition at line 101 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
bool llvm::GCOVBuffer::readGCDAFormat | ( | ) | [inline] |
readGCDAFormat - Check GCDA signature is valid at the beginning of buffer.
Definition at line 72 of file GCOV.h.
References llvm::errs(), llvm::ARMBuildAttrs::File, llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
bool llvm::GCOVBuffer::readGCNOFormat | ( | ) | [inline] |
readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.
Definition at line 61 of file GCOV.h.
References llvm::errs(), llvm::ARMBuildAttrs::File, llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCNO().
bool llvm::GCOVBuffer::readGCOVVersion | ( | GCOV::GCOVVersion & | Version | ) | [inline] |
readGCOVVersion - Read GCOV version.
Definition at line 83 of file GCOV.h.
References llvm::errs(), llvm::MemoryBuffer::getBuffer(), llvm::StringRef::slice(), llvm::GCOV::V402, and llvm::GCOV::V404.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
bool llvm::GCOVBuffer::readInt | ( | uint32_t & | Val | ) | [inline] |
Definition at line 190 of file GCOV.h.
References llvm::StringRef::data(), llvm::errs(), llvm::MemoryBuffer::getBuffer(), llvm::StringRef::size(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA(), llvm::GCOVFunction::readGCDA(), llvm::GCOVFile::readGCNO(), llvm::GCOVFunction::readGCNO(), readInt64(), and readString().
bool llvm::GCOVBuffer::readInt64 | ( | uint64_t & | Val | ) | [inline] |
Definition at line 201 of file GCOV.h.
References llvm::HexagonISD::Hi, llvm::HexagonISD::Lo, and readInt().
Referenced by llvm::GCOVFunction::readGCDA().
bool llvm::GCOVBuffer::readLineTag | ( | ) | [inline] |
readLineTag - If cursor points to a line tag then increment the cursor and return true otherwise return false.
Definition at line 140 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
bool llvm::GCOVBuffer::readObjectTag | ( | ) | [inline] |
readObjectTag - If cursor points to an object summary tag then increment the cursor and return true otherwise return false.
Definition at line 166 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
bool llvm::GCOVBuffer::readProgramTag | ( | ) | [inline] |
readProgramTag - If cursor points to a program summary tag then increment the cursor and return true otherwise return false.
Definition at line 179 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
bool llvm::GCOVBuffer::readString | ( | StringRef & | Str | ) | [inline] |
Definition at line 208 of file GCOV.h.
References llvm::errs(), llvm::MemoryBuffer::getBuffer(), readInt(), llvm::StringRef::size(), llvm::StringRef::slice(), and llvm::StringRef::split().
Referenced by llvm::GCOVFunction::readGCDA(), and llvm::GCOVFunction::readGCNO().