LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::GCOVBuffer Class Reference

#include <GCOV.h>

Public Member Functions

 GCOVBuffer (MemoryBuffer *B)
 
GCOV::GCOVFormat readGCOVFormat ()
 readGCOVFormat - Read GCOV signature at the beginning of buffer. More...
 
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)
 

Detailed Description

GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific read operations.

Definition at line 42 of file GCOV.h.

Constructor & Destructor Documentation

llvm::GCOVBuffer::GCOVBuffer ( MemoryBuffer B)
inline

Definition at line 44 of file GCOV.h.

Member Function Documentation

void llvm::GCOVBuffer::advanceCursor ( uint32_t  n)
inline

Definition at line 186 of file GCOV.h.

Referenced by llvm::GCOVFile::read().

uint64_t llvm::GCOVBuffer::getCursor ( ) const
inline

Definition at line 185 of file GCOV.h.

Referenced by llvm::GCOVFunction::read().

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 117 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFunction::read().

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 78 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFunction::read().

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 91 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFunction::read().

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 65 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFile::read().

GCOV::GCOVFormat llvm::GCOVBuffer::readGCOVFormat ( )
inline

readGCOVFormat - Read GCOV signature at the beginning of buffer.

Definition at line 47 of file GCOV.h.

References llvm::GCOV::GCDA_402, llvm::GCOV::GCDA_404, llvm::GCOV::GCNO_402, llvm::GCOV::GCNO_404, llvm::MemoryBuffer::getBuffer(), llvm::GCOV::InvalidGCOV, Magic, and llvm::StringRef::slice().

Referenced by llvm::GCOVFile::read().

bool llvm::GCOVBuffer::readInt ( uint32_t &  Val)
inline
bool llvm::GCOVBuffer::readInt64 ( uint64_t &  Val)
inline

Definition at line 165 of file GCOV.h.

References llvm::HexagonISD::Hi, llvm::HexagonISD::Lo, and readInt().

Referenced by llvm::GCOVFunction::read().

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 104 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFunction::read().

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 130 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFile::read().

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 143 of file GCOV.h.

References llvm::StringRef::empty(), llvm::MemoryBuffer::getBuffer(), and llvm::StringRef::slice().

Referenced by llvm::GCOVFile::read().

bool llvm::GCOVBuffer::readString ( StringRef Str)
inline

The documentation for this class was generated from the following file: