class CounterMappingContext
Declaration
class CounterMappingContext { /* full declaration omitted */ };
Description
A Counter mapping context is used to connect the counters, expressions and the obtained counter values.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:320
Member Variables
- private ArrayRef<llvm::coverage::CounterExpression> Expressions
- private ArrayRef<uint64_t> CounterValues
Method Overview
- public CounterMappingContext(ArrayRef<llvm::coverage::CounterExpression> Expressions, ArrayRef<uint64_t> CounterValues = None)
- public void dump(const llvm::coverage::Counter & C, llvm::raw_ostream & OS) const
- public void dump(const llvm::coverage::Counter & C) const
- public Expected<int64_t> evaluate(const llvm::coverage::Counter & C) const
- public unsigned int getMaxCounterID(const llvm::coverage::Counter & C) const
- public void setCounts(ArrayRef<uint64_t> Counts)
Methods
¶CounterMappingContext(
ArrayRef<llvm::coverage::CounterExpression>
Expressions,
ArrayRef<uint64_t> CounterValues = None)
CounterMappingContext(
ArrayRef<llvm::coverage::CounterExpression>
Expressions,
ArrayRef<uint64_t> CounterValues = None)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:325
Parameters
¶void dump(const llvm::coverage::Counter& C,
llvm::raw_ostream& OS) const
void dump(const llvm::coverage::Counter& C,
llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:331
Parameters
- const llvm::coverage::Counter& C
- llvm::raw_ostream& OS
¶void dump(const llvm::coverage::Counter& C) const
void dump(const llvm::coverage::Counter& C) const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:332
Parameters
- const llvm::coverage::Counter& C
¶Expected<int64_t> evaluate(
const llvm::coverage::Counter& C) const
Expected<int64_t> evaluate(
const llvm::coverage::Counter& C) const
Description
Return the number of times that a region of code associated with this counter was executed.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:336
Parameters
- const llvm::coverage::Counter& C
¶unsigned int getMaxCounterID(
const llvm::coverage::Counter& C) const
unsigned int getMaxCounterID(
const llvm::coverage::Counter& C) const
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:338
Parameters
- const llvm::coverage::Counter& C
¶void setCounts(ArrayRef<uint64_t> Counts)
void setCounts(ArrayRef<uint64_t> Counts)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:329
Parameters
- ArrayRef<uint64_t> Counts