LLVM: llvm::coverage::CounterMappingRegion Struct Reference (original) (raw)

A Counter mapping region associates a source range with a specific counter. More...

#include "[llvm/ProfileData/Coverage/CoverageMapping.h](CoverageMapping%5F8h%5Fsource.html)"

Public Member Functions
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
Static Public Member Functions
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)
Public Attributes
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

A Counter mapping region associates a source range with a specific counter.

Definition at line 232 of file CoverageMapping.h.

RegionKind

Enumerator
CodeRegion A CodeRegion associates some code with a counter.
ExpansionRegion An ExpansionRegion represents a file expansion region that associates a source range with the expansion of a virtual source file, such as for a macro instantiation or #include file.
SkippedRegion A SkippedRegion represents a source range with code that was skipped by a preprocessor or similar means.
GapRegion A GapRegion is like a CodeRegion, but its count is only set as the line execution count when its the only region in the line.
BranchRegion A BranchRegion represents leaf-level boolean expressions and is associated with two counters, each representing the number of times the expression evaluates to true or false.
MCDCDecisionRegion A DecisionRegion represents a top-level boolean expression and is associated with a variable length bitmap index and condition number.
MCDCBranchRegion A Branch Region can be extended to include IDs to facilitate MC/DC.

Definition at line 233 of file CoverageMapping.h.

Definition at line 290 of file CoverageMapping.h.

References ColumnEnd, ColumnStart, Count, ExpandedFileID, FileID, Kind, LineEnd, and LineStart.

Referenced by llvm::coverage::CountedRegion::CountedRegion(), llvm::coverage::CountedRegion::CountedRegion(), makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().

CounterMappingRegion() [2/3]

CounterMappingRegion() [3/3]

endLoc()

LineColPair llvm::coverage::CounterMappingRegion::endLoc ( ) const inline

getBranchParams()

const auto & llvm::coverage::CounterMappingRegion::getBranchParams ( ) const inline

getDecisionParams()

const auto & llvm::coverage::CounterMappingRegion::getDecisionParams ( ) const inline

isBranch()

bool llvm::coverage::CounterMappingRegion::isBranch ( ) const inline

makeBranchRegion()

Definition at line 345 of file CoverageMapping.h.

References BranchRegion, ColumnEnd, ColumnStart, Count, CounterMappingRegion(), FalseCount, FileID, LineEnd, LineStart, MCDCBranchRegion, and MCDCParams.

makeDecisionRegion()

makeExpansion()

makeGapRegion()

makeRegion()

makeSkipped()

startLoc()

LineColPair llvm::coverage::CounterMappingRegion::startLoc ( ) const inline

ColumnEnd

unsigned llvm::coverage::CounterMappingRegion::ColumnEnd

ColumnStart

unsigned llvm::coverage::CounterMappingRegion::ColumnStart

Count

Counter llvm::coverage::CounterMappingRegion::Count

ExpandedFileID

unsigned llvm::coverage::CounterMappingRegion::ExpandedFileID = 0

FalseCount

Counter llvm::coverage::CounterMappingRegion::FalseCount

FileID

unsigned llvm::coverage::CounterMappingRegion::FileID = 0

Kind

RegionKind llvm::coverage::CounterMappingRegion::Kind

LineEnd

unsigned llvm::coverage::CounterMappingRegion::LineEnd

LineStart

unsigned llvm::coverage::CounterMappingRegion::LineStart

MCDCParams


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