|
LLVM
3.7.0
|
GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations. More...
#include <GCOV.h>
Public Member Functions | |
| GCOVBuffer (MemoryBuffer *B) | |
| bool | readGCNOFormat () |
| readGCNOFormat - Check GCNO signature is valid at the beginning of buffer. More... | |
| bool | readGCDAFormat () |
| readGCDAFormat - Check GCDA signature is valid at the beginning of buffer. More... | |
| bool | readGCOVVersion (GCOV::GCOVVersion &Version) |
| readGCOVVersion - Read GCOV version. More... | |
| bool | readFunctionTag () |
| readFunctionTag - If cursor points to a function tag then increment the cursor and return true otherwise return false. More... | |
| bool | readBlockTag () |
| readBlockTag - If cursor points to a block tag then increment the cursor and return true otherwise return false. More... | |
| bool | readEdgeTag () |
| readEdgeTag - If cursor points to an edge tag then increment the cursor and return true otherwise return false. More... | |
| bool | readLineTag () |
| readLineTag - If cursor points to a line tag then increment the cursor and return true otherwise return false. More... | |
| bool | readArcTag () |
| readArcTag - If cursor points to an gcda arc tag then increment the cursor and return true otherwise return false. More... | |
| bool | readObjectTag () |
| readObjectTag - If cursor points to an object summary tag then increment the cursor and return true otherwise return false. More... | |
| bool | readProgramTag () |
| readProgramTag - If cursor points to a program summary tag then increment the cursor and return true otherwise return false. More... | |
| 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.
|
inline |
|
inline |
Definition at line 218 of file GCOV.h.
Referenced by llvm::GCOVFile::readGCDA().
|
inline |
Definition at line 217 of file GCOV.h.
Referenced by llvm::GCOVFunction::readGCNO().
|
inline |
readArcTag - If cursor points to an gcda arc tag then increment the cursor and return true otherwise return false.
Definition at line 147 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCDA().
|
inline |
readBlockTag - If cursor points to a block tag then increment the cursor and return true otherwise return false.
Definition at line 111 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
|
inline |
readEdgeTag - If cursor points to an edge tag then increment the cursor and return true otherwise return false.
Definition at line 123 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
|
inline |
readFunctionTag - If cursor points to a function tag then increment the cursor and return true otherwise return false.
Definition at line 99 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
|
inline |
readGCDAFormat - Check GCDA signature is valid at the beginning of buffer.
Definition at line 70 of file GCOV.h.
References llvm::errs(), llvm::ARMBuildAttrs::File, llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
|
inline |
readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.
Definition at line 59 of file GCOV.h.
References llvm::errs(), llvm::ARMBuildAttrs::File, llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCNO().
|
inline |
readGCOVVersion - Read GCOV version.
Definition at line 81 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().
|
inline |
Definition at line 181 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().
|
inline |
Definition at line 192 of file GCOV.h.
References llvm::MipsISD::Hi, llvm::MipsISD::Lo, and readInt().
Referenced by llvm::GCOVFunction::readGCDA().
|
inline |
readLineTag - If cursor points to a line tag then increment the cursor and return true otherwise return false.
Definition at line 135 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFunction::readGCNO().
|
inline |
readObjectTag - If cursor points to an object summary tag then increment the cursor and return true otherwise return false.
Definition at line 159 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
|
inline |
readProgramTag - If cursor points to a program summary tag then increment the cursor and return true otherwise return false.
Definition at line 171 of file GCOV.h.
References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().
Referenced by llvm::GCOVFile::readGCDA().
Definition at line 200 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().
1.8.6