|
LLVM
4.0.0
|
GCOVBlock - Collects block information. More...
#include <GCOV.h>
Public Types | |
| typedef SmallVectorImpl < GCOVEdge * >::const_iterator | EdgeIterator |
Public Member Functions | |
| GCOVBlock (GCOVFunction &P, uint32_t N) | |
| ~GCOVBlock () | |
| ~GCOVBlock - Delete GCOVBlock and its content. More... | |
| const GCOVFunction & | getParent () const |
| void | addLine (uint32_t N) |
| uint32_t | getLastLine () const |
| void | addCount (size_t DstEdgeNo, uint64_t N) |
| addCount - Add to block counter while storing the edge count. More... | |
| uint64_t | getCount () const |
| void | addSrcEdge (GCOVEdge *Edge) |
| void | addDstEdge (GCOVEdge *Edge) |
| size_t | getNumSrcEdges () const |
| size_t | getNumDstEdges () const |
| void | sortDstEdges () |
| sortDstEdges - Sort destination edges by block number, nop if already sorted. More... | |
| EdgeIterator | src_begin () const |
| EdgeIterator | src_end () const |
| iterator_range< EdgeIterator > | srcs () const |
| EdgeIterator | dst_begin () const |
| EdgeIterator | dst_end () const |
| iterator_range< EdgeIterator > | dsts () const |
| void | dump () const |
| dump - Dump GCOVBlock content to dbgs() for debugging purposes. More... | |
| void | collectLineCounts (FileInfo &FI) |
| collectLineCounts - Collect line counts. More... | |
| typedef SmallVectorImpl<GCOVEdge *>::const_iterator llvm::GCOVBlock::EdgeIterator |
|
inline |
| GCOVBlock::~GCOVBlock | ( | ) |
~GCOVBlock - Delete GCOVBlock and its content.
Definition at line 371 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 379 of file GCOV.cpp.
Referenced by llvm::GCOVFunction::readGCDA().
|
inline |
Definition at line 340 of file GCOV.h.
References assert(), llvm::GCOVEdge::Dst, and llvm::GCOVEdge::Src.
|
inline |
Definition at line 330 of file GCOV.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::GCOVFunction::readGCNO().
|
inline |
Definition at line 335 of file GCOV.h.
References assert(), and llvm::GCOVEdge::Dst.
| void GCOVBlock::collectLineCounts | ( | FileInfo & | FI | ) |
collectLineCounts - Collect line counts.
This must be used after reading .gcno and .gcda files.
Definition at line 398 of file GCOV.cpp.
References llvm::FileInfo::addBlockLine(), llvm::GCOVFunction::getFilename(), and N.
|
inline |
|
inline |
|
inline |
Definition at line 360 of file GCOV.h.
References dst_begin(), dst_end(), and llvm::make_range().
| LLVM_DUMP_METHOD void GCOVBlock::dump | ( | void | ) | const |
dump - Dump GCOVBlock content to dbgs() for debugging purposes.
Definition at line 404 of file GCOV.cpp.
References llvm::dbgs(), llvm::SmallVectorBase::empty(), and N.
|
inline |
Definition at line 331 of file GCOV.h.
References llvm::SmallVectorTemplateCommon< T, typename >::back().
|
inline |
Definition at line 349 of file GCOV.h.
Referenced by llvm::GCOVFunction::readGCDA().
|
inline |
| 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 389 of file GCOV.cpp.
Referenced by llvm::GCOVFunction::readGCDA().
|
inline |
|
inline |
|
inline |
Definition at line 354 of file GCOV.h.
References llvm::make_range(), src_begin(), and src_end().
1.8.6