LLVM 20.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, bool HasSingleByteCoverage)
 
 CountedRegion (const CounterMappingRegion &R, uint64_t ExecutionCount, uint64_t FalseExecutionCount, bool HasSingleByteCoverage)
 
- Public Member Functions inherited from llvm::coverage::CounterMappingRegion
const auto & getDecisionParams () const
 
const auto & getBranchParams () const
 
bool isBranch () 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 TrueFolded
 
bool FalseFolded
 
bool HasSingleByteCoverage
 
- 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 362 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CountedRegion() [1/2]

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

Definition at line 369 of file CoverageMapping.h.

◆ CountedRegion() [2/2]

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

Definition at line 375 of file CoverageMapping.h.

Member Data Documentation

◆ ExecutionCount

uint64_t llvm::coverage::CountedRegion::ExecutionCount

Definition at line 363 of file CoverageMapping.h.

◆ FalseExecutionCount

uint64_t llvm::coverage::CountedRegion::FalseExecutionCount

Definition at line 364 of file CoverageMapping.h.

◆ FalseFolded

bool llvm::coverage::CountedRegion::FalseFolded

Definition at line 366 of file CoverageMapping.h.

◆ HasSingleByteCoverage

bool llvm::coverage::CountedRegion::HasSingleByteCoverage

Definition at line 367 of file CoverageMapping.h.

◆ TrueFolded

bool llvm::coverage::CountedRegion::TrueFolded

Definition at line 365 of file CoverageMapping.h.


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