|
LLVM 22.0.0git
|
GCOVBlock - Collects block information. More...
#include "llvm/ProfileData/GCOV.h"
Public Types | |
| using | EdgeIterator = SmallVectorImpl<GCOVArc *>::const_iterator |
| using | BlockVector = SmallVector<const GCOVBlock *, 1> |
| using | BlockVectorLists = SmallVector<BlockVector, 4> |
| using | Edges = SmallVector<GCOVArc *, 4> |
Public Member Functions | |
| GCOVBlock (uint32_t N) | |
| void | addLine (uint32_t N) |
| void | addFile (unsigned fileIdx) |
| uint32_t | getLastLine () const |
| uint64_t | getCount () const |
| void | addSrcEdge (GCOVArc *Edge) |
| void | addDstEdge (GCOVArc *Edge) |
| iterator_range< EdgeIterator > | srcs () const |
| iterator_range< EdgeIterator > | dsts () const |
| LLVM_ABI void | print (raw_ostream &OS) const |
| collectLineCounts - Collect line counts. | |
| LLVM_ABI void | dump () const |
| dump - Dump GCOVBlock content to dbgs() for debugging purposes. | |
Static Public Member Functions | |
| static LLVM_ABI uint64_t | augmentOneCycle (GCOVBlock *src, std::vector< std::pair< GCOVBlock *, size_t > > &stack) |
| static LLVM_ABI uint64_t | getCyclesCount (const BlockVector &blocks) |
| static LLVM_ABI uint64_t | getLineCount (const BlockVector &Blocks) |
Public Attributes | |
| uint32_t | number |
| uint64_t | count = 0 |
| SmallVector< GCOVArc *, 2 > | pred |
| SmallVector< GCOVArc *, 2 > | succ |
| SmallVector< GCOVBlockLocation > | locations |
| uint32_t | lastLine = 0 |
| bool | traversable = false |
| GCOVArc * | incoming = nullptr |
| using llvm::GCOVBlock::BlockVector = SmallVector<const GCOVBlock *, 1> |
| using llvm::GCOVBlock::BlockVectorLists = SmallVector<BlockVector, 4> |
| using llvm::GCOVBlock::Edges = SmallVector<GCOVArc *, 4> |
|
inline |
Definition at line 290 of file GCOV.h.
Referenced by augmentOneCycle(), and getCyclesCount().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 301 of file GCOV.h.
References pred.
Referenced by llvm::GCOVFile::readGCDA(), and llvm::GCOVFile::readGCNO().
|
static |
Definition at line 475 of file GCOV.cpp.
References GCOVBlock(), incoming, and succ.
Referenced by getCyclesCount().
|
inline |
Definition at line 309 of file GCOV.h.
References llvm::make_range(), and succ.
| LLVM_DUMP_METHOD void GCOVBlock::dump | ( | ) | const |
dump - Dump GCOVBlock content to dbgs() for debugging purposes.
Definition at line 471 of file GCOV.cpp.
References llvm::dbgs(), LLVM_DUMP_METHOD, and print().
|
inline |
|
static |
Definition at line 526 of file GCOV.cpp.
References assert(), augmentOneCycle(), block, blocks, count, GCOVBlock(), incoming, and traversable.
|
inline |
|
static |
References LLVM_ABI.
| void GCOVBlock::print | ( | raw_ostream & | OS | ) | const |
|
inline |
Definition at line 305 of file GCOV.h.
References llvm::make_range(), and pred.
| uint64_t llvm::GCOVBlock::count = 0 |
Definition at line 324 of file GCOV.h.
Referenced by getCount(), getCyclesCount(), and print().
| GCOVArc* llvm::GCOVBlock::incoming = nullptr |
Definition at line 330 of file GCOV.h.
Referenced by augmentOneCycle(), and getCyclesCount().
| uint32_t llvm::GCOVBlock::lastLine = 0 |
Definition at line 328 of file GCOV.h.
Referenced by addLine(), and getLastLine().
| SmallVector<GCOVBlockLocation> llvm::GCOVBlock::locations |
| uint32_t llvm::GCOVBlock::number |
Definition at line 323 of file GCOV.h.
Referenced by GCOVBlock(), and print().
| SmallVector<GCOVArc *, 2> llvm::GCOVBlock::pred |
Definition at line 325 of file GCOV.h.
Referenced by addSrcEdge(), print(), and srcs().
| SmallVector<GCOVArc *, 2> llvm::GCOVBlock::succ |
Definition at line 326 of file GCOV.h.
Referenced by addDstEdge(), augmentOneCycle(), dsts(), and print().
| bool llvm::GCOVBlock::traversable = false |
Definition at line 329 of file GCOV.h.
Referenced by getCyclesCount().