LLVM API Documentation

Classes | Public Types | Public Member Functions
llvm::GCOVBlock Class Reference

GCOVBlock - Collects block information. More...

#include <GCOV.h>

List of all members.

Classes

struct  EdgeWeight
struct  SortDstEdgesFunctor

Public Types

typedef SmallVectorImpl
< GCOVEdge * >::const_iterator 
EdgeIterator

Public Member Functions

 GCOVBlock (GCOVFunction &P, uint32_t N)
 ~GCOVBlock ()
 ~GCOVBlock - Delete GCOVBlock and its content.
const GCOVFunctiongetParent () const
void addLine (uint32_t N)
uint32_t getLastLine () const
void addCount (size_t DstEdgeNo, uint64_t N)
uint64_t getCount () const
void addSrcEdge (GCOVEdge *Edge)
void addDstEdge (GCOVEdge *Edge)
size_t getNumSrcEdges () const
size_t getNumDstEdges () const
void sortDstEdges ()
EdgeIterator src_begin () const
EdgeIterator src_end () const
EdgeIterator dst_begin () const
EdgeIterator dst_end () const
void dump () const
 dump - Dump GCOVBlock content to dbgs() for debugging purposes.
void collectLineCounts (FileInfo &FI)

Detailed Description

GCOVBlock - Collects block information.

Definition at line 292 of file GCOV.h.


Member Typedef Documentation

Definition at line 306 of file GCOV.h.


Constructor & Destructor Documentation

llvm::GCOVBlock::GCOVBlock ( GCOVFunction P,
uint32_t  N 
) [inline]

Definition at line 308 of file GCOV.h.

~GCOVBlock - Delete GCOVBlock and its content.

Definition at line 323 of file GCOV.cpp.

References llvm::SmallVectorImpl< T >::clear().


Member Function Documentation

void GCOVBlock::addCount ( size_t  DstEdgeNo,
uint64_t  N 
)

addCount - Add to block counter while storing the edge count. If the destination has no outgoing edges, also update that block's count too.

Definition at line 331 of file GCOV.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::size().

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

void llvm::GCOVBlock::addDstEdge ( GCOVEdge Edge) [inline]
void llvm::GCOVBlock::addLine ( uint32_t  N) [inline]
void llvm::GCOVBlock::addSrcEdge ( GCOVEdge Edge) [inline]

collectLineCounts - Collect line counts. This must be used after reading .gcno and .gcda files.

Definition at line 350 of file GCOV.cpp.

References llvm::FileInfo::addBlockLine(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::GCOVFunction::getFilename(), and I.

Definition at line 334 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::begin().

Referenced by llvm::FileInfo::print().

Definition at line 335 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::end().

void GCOVBlock::dump ( ) const
uint64_t llvm::GCOVBlock::getCount ( ) const [inline]

Definition at line 315 of file GCOV.h.

Referenced by llvm::FileInfo::print().

uint32_t llvm::GCOVBlock::getLastLine ( ) const [inline]

Definition at line 313 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::back().

Referenced by llvm::FileInfo::print().

size_t llvm::GCOVBlock::getNumDstEdges ( ) const [inline]
size_t llvm::GCOVBlock::getNumSrcEdges ( ) const [inline]

Definition at line 328 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::size().

Definition at line 311 of file GCOV.h.

Referenced by llvm::FileInfo::print().

sortDstEdges - Sort destination edges by block number, nop if already sorted. This is required for printing branch info in the correct order.

Definition at line 341 of file GCOV.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::begin(), and llvm::SmallVectorTemplateCommon< T, typename >::end().

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

Definition at line 332 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::begin().

Definition at line 333 of file GCOV.h.

References llvm::SmallVectorTemplateCommon< T, typename >::end().


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