LLVM API Documentation

Public Member Functions
llvm::GCOVBuffer Class Reference

#include <GCOV.h>

List of all members.

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)

Detailed Description

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

Definition at line 56 of file GCOV.h.


Constructor & Destructor Documentation

Definition at line 58 of file GCOV.h.


Member Function Documentation

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().

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().

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().

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().

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().

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().

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().

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]
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().

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().

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().

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().


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