LLVM 20.0.0git
|
A Counter mapping context is used to connect the counters, expressions and the obtained counter values. More...
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
Public Member Functions | |
CounterMappingContext (ArrayRef< CounterExpression > Expressions, ArrayRef< uint64_t > CounterValues={}) | |
void | setCounts (ArrayRef< uint64_t > Counts) |
void | setBitmap (BitVector &&Bitmap_) |
void | dump (const Counter &C, 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. | |
Expected< MCDCRecord > | evaluateMCDCRegion (const CounterMappingRegion &Region, ArrayRef< const CounterMappingRegion * > Branches, bool IsVersion11) |
Return an MCDC record that indicates executed test vectors and condition pairs. | |
unsigned | getMaxCounterID (const Counter &C) const |
A Counter mapping context is used to connect the counters, expressions and the obtained counter values.
Definition at line 661 of file CoverageMapping.h.
|
inline |
Definition at line 667 of file CoverageMapping.h.
Definition at line 675 of file CoverageMapping.h.
References llvm::CallingConv::C, llvm::dbgs(), and dump().
Referenced by dump().
void CounterMappingContext::dump | ( | const Counter & | C, |
raw_ostream & | OS | ||
) | const |
Definition at line 138 of file CoverageMapping.cpp.
References llvm::CallingConv::C, llvm::consumeError(), llvm::coverage::Counter::CounterValueReference, dump(), llvm::ArrayRef< T >::empty(), evaluate(), llvm::coverage::Counter::Expression, OS, llvm::coverage::CounterExpression::Subtract, and llvm::coverage::Counter::Zero.
Referenced by dump().
Return the number of times that a region of code associated with this counter was executed.
Definition at line 168 of file CoverageMapping.cpp.
References llvm::argument_out_of_domain, llvm::CallingConv::C, llvm::coverage::Counter::CounterValueReference, llvm::errorCodeToError(), llvm::coverage::Counter::Expression, LHS, RHS, llvm::ArrayRef< T >::size(), llvm::coverage::CounterExpression::Subtract, and llvm::coverage::Counter::Zero.
Referenced by dump().
Expected< MCDCRecord > CounterMappingContext::evaluateMCDCRegion | ( | const CounterMappingRegion & | Region, |
ArrayRef< const CounterMappingRegion * > | Branches, | ||
bool | IsVersion11 | ||
) |
Return an MCDC record that indicates executed test vectors and condition pairs.
Definition at line 525 of file CoverageMapping.cpp.
Definition at line 533 of file CoverageMapping.cpp.
References llvm::CallingConv::C, llvm::coverage::Counter::CounterValueReference, llvm::coverage::Counter::Expression, LHS, RHS, and llvm::coverage::Counter::Zero.
Referenced by getMaxCounterID().
|
inline |
Definition at line 672 of file CoverageMapping.h.
Definition at line 671 of file CoverageMapping.h.