LLVM: llvm::coverage::Counter Struct Reference (original) (raw)

A Counter is an abstract value that describes how to compute the execution count for a region of code using the collected profile count data. More...

#include "[llvm/ProfileData/Coverage/CoverageMapping.h](CoverageMapping%5F8h%5Fsource.html)"

Public Member Functions
Counter ()=default
CounterKind getKind () const
bool isZero () const
bool isExpression () const
unsigned getCounterID () const
unsigned getExpressionID () const
Static Public Member Functions
static Counter getZero ()
Return the counter that represents the number zero.
static Counter getCounter (unsigned CounterId)
Return the counter that corresponds to a specific profile counter.
static Counter getExpression (unsigned ExpressionId)
Return the counter that corresponds to a specific addition counter expression.

A Counter is an abstract value that describes how to compute the execution count for a region of code using the collected profile count data.

Definition at line 108 of file CoverageMapping.h.

CounterKind

The CounterExpression kind (Add or Subtract) is encoded in bit 0 next to the CounterKind.

This means CounterKind has to leave bit 0 free.

Enumerator
Zero
CounterValueReference
Expression

Definition at line 111 of file CoverageMapping.h.

llvm::coverage::Counter::Counter ( ) default

getCounter()

Counter llvm::coverage::Counter::getCounter ( unsigned CounterId) inlinestatic

getCounterID()

unsigned llvm::coverage::Counter::getCounterID ( ) const inline

getExpression()

Counter llvm::coverage::Counter::getExpression ( unsigned ExpressionId) inlinestatic

Return the counter that corresponds to a specific addition counter expression.

Definition at line 158 of file CoverageMapping.h.

References Counter(), and Expression.

getExpressionID()

unsigned llvm::coverage::Counter::getExpressionID ( ) const inline

getKind()

CounterKind llvm::coverage::Counter::getKind ( ) const inline

getZero()

Counter llvm::coverage::Counter::getZero ( ) inlinestatic

Return the counter that represents the number zero.

Definition at line 149 of file CoverageMapping.h.

References Counter().

isExpression()

bool llvm::coverage::Counter::isExpression ( ) const inline

isZero()

bool llvm::coverage::Counter::isZero ( ) const inline

operator!=

operator<

operator==

EncodingCounterTagAndExpansionRegionTagBits

const unsigned llvm::coverage::Counter::EncodingCounterTagAndExpansionRegionTagBits static

EncodingTagBits

EncodingTagMask


The documentation for this struct was generated from the following file: