LLVM
15.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 } |
Public Member Functions | |
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 |
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) |
Public Attributes | |
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 |
A Counter mapping region associates a source range with a specific counter.
Definition at line 208 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. |
Definition at line 209 of file CoverageMapping.h.
|
inline |
Definition at line 242 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
|
inline |
Definition at line 249 of file CoverageMapping.h.
|
inline |
Definition at line 299 of file CoverageMapping.h.
References ColumnEnd, and LineEnd.
Referenced by llvm::coverage::CoverageMappingWriter::write().
|
inlinestatic |
Definition at line 288 of file CoverageMapping.h.
References BranchRegion, ColumnEnd, ColumnStart, Count, CounterMappingRegion(), FalseCount, FileID, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 266 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, CounterMappingRegion(), ExpandedFileID, ExpansionRegion, FileID, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 281 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, Count, CounterMappingRegion(), FileID, GapRegion, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 259 of file CoverageMapping.h.
References CodeRegion, ColumnEnd, ColumnStart, Count, CounterMappingRegion(), FileID, LineEnd, and LineStart.
|
inlinestatic |
Definition at line 274 of file CoverageMapping.h.
References ColumnEnd, ColumnStart, CounterMappingRegion(), FileID, LineEnd, LineStart, and SkippedRegion.
|
inline |
Definition at line 295 of file CoverageMapping.h.
References ColumnStart, and LineStart.
Referenced by llvm::coverage::CoverageMappingWriter::write().
unsigned llvm::coverage::CounterMappingRegion::ColumnEnd |
Definition at line 239 of file CoverageMapping.h.
Referenced by endLoc(), makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
unsigned llvm::coverage::CounterMappingRegion::ColumnStart |
Definition at line 239 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), makeSkipped(), and startLoc().
Counter llvm::coverage::CounterMappingRegion::Count |
Primary Counter that is also used for Branch Regions (TrueCount).
Definition at line 233 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeGapRegion(), and makeRegion().
unsigned llvm::coverage::CounterMappingRegion::ExpandedFileID |
Definition at line 238 of file CoverageMapping.h.
Referenced by makeExpansion().
Counter llvm::coverage::CounterMappingRegion::FalseCount |
Secondary Counter used for Branch Regions (FalseCount).
Definition at line 236 of file CoverageMapping.h.
Referenced by makeBranchRegion().
unsigned llvm::coverage::CounterMappingRegion::FileID |
Definition at line 238 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
RegionKind llvm::coverage::CounterMappingRegion::Kind |
Definition at line 240 of file CoverageMapping.h.
unsigned llvm::coverage::CounterMappingRegion::LineEnd |
Definition at line 239 of file CoverageMapping.h.
Referenced by endLoc(), makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), and makeSkipped().
unsigned llvm::coverage::CounterMappingRegion::LineStart |
Definition at line 239 of file CoverageMapping.h.
Referenced by makeBranchRegion(), makeExpansion(), makeGapRegion(), makeRegion(), makeSkipped(), and startLoc().