|
LLVM
4.0.0
|
A Counter mapping context is used to connect the counters, expressions and the obtained counter values. More...
#include <CoverageMapping.h>
Public Member Functions | |
| CounterMappingContext (ArrayRef< CounterExpression > Expressions, ArrayRef< uint64_t > CounterValues=None) | |
| void | setCounts (ArrayRef< uint64_t > Counts) |
| void | dump (const Counter &C, llvm::raw_ostream &OS) const |
| void | dump (const Counter &C) const |
| Expected< int64_t > | evaluate (const Counter &C) const |
| Return the number of times that a region of code associated with this counter was executed. More... | |
A Counter mapping context is used to connect the counters, expressions and the obtained counter values.
Definition at line 261 of file CoverageMapping.h.
|
inline |
Definition at line 266 of file CoverageMapping.h.
| void CounterMappingContext::dump | ( | const Counter & | C, |
| llvm::raw_ostream & | OS | ||
| ) | const |
Definition at line 123 of file CoverageMapping.cpp.
References llvm::consumeError(), llvm::coverage::Counter::CounterValueReference, E, llvm::ArrayRef< T >::empty(), evaluate(), llvm::coverage::Counter::Expression, llvm::coverage::Counter::getCounterID(), llvm::coverage::Counter::getExpressionID(), llvm::coverage::Counter::getKind(), llvm::coverage::CounterExpression::Subtract, llvm::Expected< T >::takeError(), and llvm::coverage::Counter::Zero.
Definition at line 273 of file CoverageMapping.h.
References llvm::dbgs(), and dump().
Referenced by dump().
Return the number of times that a region of code associated with this counter was executed.
Definition at line 154 of file CoverageMapping.cpp.
References llvm::argument_out_of_domain, llvm::coverage::Counter::CounterValueReference, E, llvm::errorCodeToError(), llvm::coverage::Counter::Expression, llvm::coverage::Counter::getCounterID(), llvm::coverage::Counter::getExpressionID(), llvm::coverage::Counter::getKind(), llvm_unreachable, llvm::ArrayRef< T >::size(), llvm::coverage::CounterExpression::Subtract, and llvm::coverage::Counter::Zero.
Referenced by dump().
|
inline |
Definition at line 270 of file CoverageMapping.h.
1.8.6