struct Counter
Declaration
struct Counter { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:90
Member Variables
- public static const unsigned int EncodingTagBits = 2
- public static const unsigned int EncodingTagMask = 3
- public static const unsigned int EncodingCounterTagAndExpansionRegionTagBits = EncodingTagBits + 1
Method Overview
- public Counter()
- public static llvm::coverage::Counter getCounter(unsigned int CounterId)
- public unsigned int getCounterID() const
- public static llvm::coverage::Counter getExpression(unsigned int ExpressionId)
- public unsigned int getExpressionID() const
- public llvm::coverage::Counter::CounterKind getKind() const
- public static llvm::coverage::Counter getZero()
- public bool isExpression() const
- public bool isZero() const
Methods
¶Counter()
Counter()
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:104
¶static llvm::coverage::Counter getCounter(
unsigned int CounterId)
static llvm::coverage::Counter getCounter(
unsigned int CounterId)
Description
Return the counter that corresponds to a specific profile counter.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:132
Parameters
- unsigned int CounterId
¶unsigned int getCounterID() const
unsigned int getCounterID() const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:112
¶static llvm::coverage::Counter getExpression(
unsigned int ExpressionId)
static llvm::coverage::Counter getExpression(
unsigned int ExpressionId)
Description
Return the counter that corresponds to a specific addition counter expression.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:138
Parameters
- unsigned int ExpressionId
¶unsigned int getExpressionID() const
unsigned int getExpressionID() const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:114
¶llvm::coverage::Counter::CounterKind getKind()
const
llvm::coverage::Counter::CounterKind getKind()
const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:106
¶static llvm::coverage::Counter getZero()
static llvm::coverage::Counter getZero()
Description
Return the counter that represents the number zero.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:129
¶bool isExpression() const
bool isExpression() const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:110
¶bool isZero() const
bool isZero() const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:108