LLVM  8.0.1
Public Member Functions | List of all members
llvm::coverage::CounterMappingContext Class Reference

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=None)
 
void setCounts (ArrayRef< uint64_t > Counts)
 
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. More...
 

Detailed Description

A Counter mapping context is used to connect the counters, expressions and the obtained counter values.

Definition at line 282 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CounterMappingContext()

llvm::coverage::CounterMappingContext::CounterMappingContext ( ArrayRef< CounterExpression Expressions,
ArrayRef< uint64_t >  CounterValues = None 
)
inline

Definition at line 287 of file CoverageMapping.h.

Member Function Documentation

◆ dump() [1/2]

void CounterMappingContext::dump ( const Counter C,
raw_ostream OS 
) const

◆ dump() [2/2]

void llvm::coverage::CounterMappingContext::dump ( const Counter C) const
inline

Definition at line 294 of file CoverageMapping.h.

References llvm::dbgs(), and dump().

Referenced by dump().

◆ evaluate()

Expected< int64_t > CounterMappingContext::evaluate ( const Counter C) const

◆ setCounts()

void llvm::coverage::CounterMappingContext::setCounts ( ArrayRef< uint64_t >  Counts)
inline

Definition at line 291 of file CoverageMapping.h.

References C, and llvm::dump().

Referenced by evaluate().


The documentation for this class was generated from the following files: