LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::coverage::CountedRegion Struct Reference

Associates a source range with an execution count. More...

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Inheritance diagram for llvm::coverage::CountedRegion:
Inheritance graph
[legend]

Public Member Functions

 CountedRegion (const CounterMappingRegion &R, uint64_t ExecutionCount)
 
 CountedRegion (const CounterMappingRegion &R, uint64_t ExecutionCount, uint64_t FalseExecutionCount)
 
- Public Member Functions inherited from llvm::coverage::CounterMappingRegion
const auto & getDecisionParams () const
 
const auto & getBranchParams () const
 
 CounterMappingRegion (Counter Count, unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind)
 
 CounterMappingRegion (Counter Count, Counter FalseCount, unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind, const mcdc::Parameters &MCDCParams=std::monostate())
 
 CounterMappingRegion (const mcdc::DecisionParameters &MCDCParams, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, RegionKind Kind)
 
LineColPair startLoc () const
 
LineColPair endLoc () const
 

Public Attributes

uint64_t ExecutionCount
 
uint64_t FalseExecutionCount
 
bool Folded
 
- Public Attributes inherited from llvm::coverage::CounterMappingRegion
Counter Count
 Primary Counter that is also used for Branch Regions (TrueCount).
 
Counter FalseCount
 Secondary Counter used for Branch Regions (FalseCount).
 
mcdc::Parameters MCDCParams
 Parameters used for Modified Condition/Decision Coverage.
 
unsigned FileID = 0
 
unsigned ExpandedFileID = 0
 
unsigned LineStart
 
unsigned ColumnStart
 
unsigned LineEnd
 
unsigned ColumnEnd
 
RegionKind Kind
 

Additional Inherited Members

- Public Types inherited from llvm::coverage::CounterMappingRegion
enum  RegionKind {
  CodeRegion , ExpansionRegion , SkippedRegion , GapRegion ,
  BranchRegion , MCDCDecisionRegion , MCDCBranchRegion
}
 
- Static Public Member Functions inherited from llvm::coverage::CounterMappingRegion
static CounterMappingRegion makeRegion (Counter Count, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd)
 
static CounterMappingRegion makeExpansion (unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd)
 
static CounterMappingRegion makeSkipped (unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd)
 
static CounterMappingRegion makeGapRegion (Counter Count, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd)
 
static CounterMappingRegion makeBranchRegion (Counter Count, Counter FalseCount, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, const mcdc::Parameters &MCDCParams=std::monostate())
 
static CounterMappingRegion makeDecisionRegion (const mcdc::DecisionParameters &MCDCParams, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd)
 

Detailed Description

Associates a source range with an execution count.

Definition at line 358 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CountedRegion() [1/2]

llvm::coverage::CountedRegion::CountedRegion ( const CounterMappingRegion R,
uint64_t  ExecutionCount 
)
inline

Definition at line 363 of file CoverageMapping.h.

◆ CountedRegion() [2/2]

llvm::coverage::CountedRegion::CountedRegion ( const CounterMappingRegion R,
uint64_t  ExecutionCount,
uint64_t  FalseExecutionCount 
)
inline

Definition at line 367 of file CoverageMapping.h.

Member Data Documentation

◆ ExecutionCount

uint64_t llvm::coverage::CountedRegion::ExecutionCount

Definition at line 359 of file CoverageMapping.h.

◆ FalseExecutionCount

uint64_t llvm::coverage::CountedRegion::FalseExecutionCount

Definition at line 360 of file CoverageMapping.h.

◆ Folded

bool llvm::coverage::CountedRegion::Folded

Definition at line 361 of file CoverageMapping.h.


The documentation for this struct was generated from the following file: