LLVM  8.0.1
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 66 of file GCOV.h.

Constructor & Destructor Documentation

◆ GCOVBuffer()

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

Definition at line 68 of file GCOV.h.

Member Function Documentation

◆ advanceCursor()

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

Definition at line 235 of file GCOV.h.

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

◆ getCursor()

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

Definition at line 234 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 164 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 128 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 140 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 116 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 82 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 71 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 93 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 209 of file GCOV.h.

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

◆ 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 152 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 176 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 188 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: