|
LLVM
3.7.0
|
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 <CoverageMapping.h>
Public Types | |
| enum | CounterKind { Zero, CounterValueReference, Expression } |
Public Member Functions | |
| Counter () | |
| 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. More... | |
| static Counter | getCounter (unsigned CounterId) |
| Return the counter that corresponds to a specific profile counter. More... | |
| static Counter | getExpression (unsigned ExpressionId) |
| Return the counter that corresponds to a specific addition counter expression. More... | |
Static Public Attributes | |
| static const unsigned | EncodingTagBits = 2 |
| static const unsigned | EncodingTagMask = 0x3 |
| static const unsigned | EncodingCounterTagAndExpansionRegionTagBits |
Friends | |
| bool | operator== (const Counter &LHS, const Counter &RHS) |
| bool | operator!= (const Counter &LHS, const Counter &RHS) |
| bool | operator< (const Counter &LHS, const Counter &RHS) |
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 42 of file CoverageMapping.h.
| Enumerator | |
|---|---|
| Zero | |
| CounterValueReference | |
| Expression | |
Definition at line 43 of file CoverageMapping.h.
|
inline |
Definition at line 56 of file CoverageMapping.h.
Referenced by getCounter(), getExpression(), and getZero().
Return the counter that corresponds to a specific profile counter.
Definition at line 84 of file CoverageMapping.h.
References Counter(), and CounterValueReference.
|
inline |
Definition at line 64 of file CoverageMapping.h.
Referenced by llvm::coverage::CounterMappingContext::dump(), encodeCounter(), llvm::coverage::CounterMappingContext::evaluate(), and llvm::DenseMapInfo< coverage::CounterExpression >::getHashValue().
Return the counter that corresponds to a specific addition counter expression.
Definition at line 90 of file CoverageMapping.h.
References Counter(), and Expression.
|
inline |
Definition at line 66 of file CoverageMapping.h.
Referenced by llvm::coverage::CounterMappingContext::dump(), encodeCounter(), and llvm::coverage::CounterMappingContext::evaluate().
|
inline |
Definition at line 58 of file CoverageMapping.h.
Referenced by llvm::coverage::CounterMappingContext::dump(), encodeCounter(), llvm::coverage::CounterMappingContext::evaluate(), and llvm::DenseMapInfo< coverage::CounterExpression >::getHashValue().
|
inlinestatic |
Return the counter that represents the number zero.
Definition at line 81 of file CoverageMapping.h.
References Counter().
|
inline |
Definition at line 62 of file CoverageMapping.h.
References Expression.
Referenced by encodeCounter().
|
inline |
Definition at line 60 of file CoverageMapping.h.
References Zero.
Referenced by llvm::coverage::CoverageMappingWriter::write().
Definition at line 72 of file CoverageMapping.h.
Definition at line 76 of file CoverageMapping.h.
Definition at line 68 of file CoverageMapping.h.
Definition at line 46 of file CoverageMapping.h.
Referenced by llvm::coverage::CoverageMappingWriter::write().
Definition at line 44 of file CoverageMapping.h.
Referenced by encodeCounter(), and llvm::coverage::CoverageMappingWriter::write().
Definition at line 45 of file CoverageMapping.h.
1.8.6