LLVM  14.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]
Collaboration diagram for llvm::coverage::CountedRegion:
Collaboration 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
 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)
 
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). More...
 
Counter FalseCount
 Secondary Counter used for Branch Regions (FalseCount). More...
 
unsigned FileID
 
unsigned ExpandedFileID
 
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
}
 
- 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)
 

Detailed Description

Associates a source range with an execution count.

Definition at line 303 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CountedRegion() [1/2]

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

Definition at line 308 of file CoverageMapping.h.

◆ CountedRegion() [2/2]

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

Definition at line 312 of file CoverageMapping.h.

Member Data Documentation

◆ ExecutionCount

uint64_t llvm::coverage::CountedRegion::ExecutionCount

Definition at line 304 of file CoverageMapping.h.

◆ FalseExecutionCount

uint64_t llvm::coverage::CountedRegion::FalseExecutionCount

Definition at line 305 of file CoverageMapping.h.

◆ Folded

bool llvm::coverage::CountedRegion::Folded

Definition at line 306 of file CoverageMapping.h.


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