LLVM API Documentation
GCOVBlock - Collects block information. More...
#include <GCOV.h>
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 GCOVFunction & | getParent () 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) |
typedef SmallVectorImpl<GCOVEdge *>::const_iterator llvm::GCOVBlock::EdgeIterator |
llvm::GCOVBlock::GCOVBlock | ( | GCOVFunction & | P, |
uint32_t | N | ||
) | [inline] |
~GCOVBlock - Delete GCOVBlock and its content.
Definition at line 323 of file GCOV.cpp.
References llvm::SmallVectorImpl< T >::clear().
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] |
Definition at line 321 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::GCOVEdge::Dst, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::GCOVEdge::Src.
void llvm::GCOVBlock::addLine | ( | uint32_t | N | ) | [inline] |
Definition at line 312 of file GCOV.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::GCOVFunction::readGCNO().
void llvm::GCOVBlock::addSrcEdge | ( | GCOVEdge * | Edge | ) | [inline] |
Definition at line 317 of file GCOV.h.
References llvm::GCOVEdge::Dst, and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
void GCOVBlock::collectLineCounts | ( | FileInfo & | FI | ) |
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.
EdgeIterator llvm::GCOVBlock::dst_begin | ( | ) | const [inline] |
Definition at line 334 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin().
Referenced by llvm::FileInfo::print().
EdgeIterator llvm::GCOVBlock::dst_end | ( | ) | const [inline] |
Definition at line 335 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::end().
void GCOVBlock::dump | ( | ) | const |
dump - Dump GCOVBlock content to dbgs() for debugging purposes.
Definition at line 357 of file GCOV.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::GCOVEdge::Count, llvm::dbgs(), llvm::GCOVEdge::Dst, llvm::SmallVectorBase::empty(), llvm::SmallVectorTemplateCommon< T, typename >::end(), I, and llvm::GCOVEdge::Src.
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] |
Definition at line 329 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by llvm::FileInfo::print(), and llvm::GCOVFunction::readGCDA().
size_t llvm::GCOVBlock::getNumSrcEdges | ( | ) | const [inline] |
Definition at line 328 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::size().
const GCOVFunction& llvm::GCOVBlock::getParent | ( | ) | const [inline] |
Definition at line 311 of file GCOV.h.
Referenced by llvm::FileInfo::print().
void GCOVBlock::sortDstEdges | ( | ) |
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().
EdgeIterator llvm::GCOVBlock::src_begin | ( | ) | const [inline] |
Definition at line 332 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin().
EdgeIterator llvm::GCOVBlock::src_end | ( | ) | const [inline] |
Definition at line 333 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::end().