LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::GCOVBuffer Class Reference

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

#include "llvm/ProfileData/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)
 

Detailed Description

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

Definition at line 64 of file GCOV.h.

Constructor & Destructor Documentation

◆ GCOVBuffer()

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

Definition at line 66 of file GCOV.h.

Member Function Documentation

◆ advanceCursor()

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

Definition at line 233 of file GCOV.h.

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

◆ getCursor()

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

Definition at line 232 of file GCOV.h.

Referenced by llvm::GCOVFunction::readGCDA(), and llvm::GCOVFunction::readGCNO().

◆ readArcTag()

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

References llvm::StringRef::empty().

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

◆ readBlockTag()

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

References llvm::StringRef::empty().

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

◆ readEdgeTag()

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

References llvm::StringRef::empty().

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

◆ readFunctionTag()

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

References llvm::StringRef::empty().

Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().

◆ readGCDAFormat()

bool llvm::GCOVBuffer::readGCDAFormat ( )
inline

readGCDAFormat - Check GCDA signature is valid at the beginning of buffer.

Definition at line 80 of file GCOV.h.

References llvm::errs(), and llvm::ARMBuildAttrs::File.

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

◆ readGCNOFormat()

bool llvm::GCOVBuffer::readGCNOFormat ( )
inline

readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.

Definition at line 69 of file GCOV.h.

References llvm::errs(), and llvm::ARMBuildAttrs::File.

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

◆ readGCOVVersion()

bool llvm::GCOVBuffer::readGCOVVersion ( GCOV::GCOVVersion Version)
inline

readGCOVVersion - Read GCOV version.

Definition at line 91 of file GCOV.h.

References llvm::errs(), llvm::StringRef::slice(), llvm::GCOV::V402, llvm::GCOV::V404, and llvm::GCOV::V704.

Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().

◆ readInt()

bool llvm::GCOVBuffer::readInt ( uint32_t Val)
inline

◆ readInt64()

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

Definition at line 207 of file GCOV.h.

References llvm::MipsISD::Hi, and llvm::MipsISD::Lo.

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

◆ readLineTag()

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

References llvm::StringRef::empty().

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

◆ readObjectTag()

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

References llvm::StringRef::empty().

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

◆ readProgramTag()

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

References llvm::StringRef::empty().

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

◆ readString()

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

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