llvm::GCOVBlock

GCOVBlock - Collects block information.

Synopsis

Declared in <llvm/ProfileData/GCOV.h>

class GCOVBlock;

Type Aliases

NameDescription
BlockVector List of basic-block pointers.
BlockVectorLists List of basic-block lists, used when computing cycles.
EdgeIterator Const iterator over arcs incident to this block.
Edges List of arc pointers.

Member Functions

NameDescription
GCOVBlock [constructor]Construct a block with the given block number.
addDstEdge Record an outgoing arc from this block.
addFile Start a new file location for source file index fileIdx.
addLine Append source line N to the current file location.
addSrcEdge Record an incoming arc to this block.
dsts Return a range over the successor arcs of this block.
dump Dump a textual summary of this block to standard error.
getCount Return the execution count of this block.
getLastLine Return the most recently recorded source line number.
print Print a textual summary of this block to OS.
srcs Return a range over the predecessor arcs of this block.

Static Member Functions

NameDescription
augmentOneCycle Augment cycle counts along one cycle found from src.
getCyclesCount Return the total cycle count over the given blocks.
getLineCount Return the number of source lines covered by the given blocks.

Data Members

NameDescription
count Execution count of this block.
incoming Incoming arc used while detecting cycles; may be null.
lastLine Most recently recorded source line for this block.
locations Source file locations and lines belonging to this block.
number Block number from the notes file.
pred Incoming arcs to this block.
succ Outgoing arcs from this block.
traversable True when this block may still be traversed for cycle detection.