LLVM 20.0.0git
|
A Counter mapping region associates a source range with a specific counter. More...
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
Public Types | |
enum | RegionKind { CodeRegion , ExpansionRegion , SkippedRegion , GapRegion , BranchRegion , MCDCDecisionRegion , MCDCBranchRegion } |
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 |
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 221 of file CoverageMapping.h.
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 222 of file CoverageMapping.h.
|
inline |
Definition at line 279 of file CoverageMapping.h.
|
inline |
Definition at line 286 of file CoverageMapping.h.
|
inline |
Definition at line 296 of file CoverageMapping.h.
|
inline |
Definition at line 358 of file CoverageMapping.h.
References ColumnEnd, and LineEnd.
Referenced by llvm::coverage::CoverageMappingWriter::write().
|
inline |
Definition at line 265 of file CoverageMapping.h.
References MCDCParams.
|
inline |
Definition at line 261 of file CoverageMapping.h.
References MCDCParams.
|
inline |
Definition at line 275 of file CoverageMapping.h.
References BranchRegion, Kind, and MCDCBranchRegion.
|
inlinestatic |
Definition at line 334 of file CoverageMapping.h.
References BranchRegion, ColumnEnd, ColumnStart, Count, FalseCount, FileID, LineEnd, LineStart, MCDCBranchRegion, and MCDCParams.
|
inlinestatic |
Definition at line 347 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, FileID, LineEnd, LineStart, MCDCDecisionRegion, and MCDCParams.
|
inlinestatic |
Definition at line 312 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, ExpandedFileID, ExpansionRegion, FileID, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 327 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, Count, FileID, GapRegion, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 305 of file CoverageMapping.h.
References CodeRegion, ColumnEnd, ColumnStart, Count, FileID, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 320 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, FileID, LineEnd, LineStart, and SkippedRegion.
|
inline |
Definition at line 354 of file CoverageMapping.h.
References ColumnStart, and LineStart.
Referenced by llvm::coverage::CoverageMappingWriter::write().
unsigned llvm::coverage::CounterMappingRegion::ColumnEnd |
Definition at line 271 of file CoverageMapping.h.
Referenced by endLoc(), makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
unsigned llvm::coverage::CounterMappingRegion::ColumnStart |
Definition at line 271 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), makeSkipped(), and startLoc().
Counter llvm::coverage::CounterMappingRegion::Count |
Primary Counter that is also used for Branch Regions (TrueCount).
Definition at line 253 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeGapRegion(), and makeRegion().
unsigned llvm::coverage::CounterMappingRegion::ExpandedFileID = 0 |
Definition at line 270 of file CoverageMapping.h.
Referenced by makeExpansion().
Counter llvm::coverage::CounterMappingRegion::FalseCount |
Secondary Counter used for Branch Regions (FalseCount).
Definition at line 256 of file CoverageMapping.h.
Referenced by makeBranchRegion().
unsigned llvm::coverage::CounterMappingRegion::FileID = 0 |
Definition at line 269 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
RegionKind llvm::coverage::CounterMappingRegion::Kind |
Definition at line 273 of file CoverageMapping.h.
Referenced by isBranch().
unsigned llvm::coverage::CounterMappingRegion::LineEnd |
Definition at line 271 of file CoverageMapping.h.
Referenced by endLoc(), makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
unsigned llvm::coverage::CounterMappingRegion::LineStart |
Definition at line 271 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeDecisionRegion(), makeExpansion(), makeGapRegion(), makeRegion(), makeSkipped(), and startLoc().
mcdc::Parameters llvm::coverage::CounterMappingRegion::MCDCParams |
Parameters used for Modified Condition/Decision Coverage.
Definition at line 259 of file CoverageMapping.h.
Referenced by getBranchParams(), getDecisionParams(), makeBranchRegion(), and makeDecisionRegion().