LLVM 20.0.0git
|
Code coverage information for a single function. More...
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
Public Member Functions | |
FunctionRecord (StringRef Name, ArrayRef< StringRef > Filenames) | |
FunctionRecord (FunctionRecord &&FR)=default | |
FunctionRecord & | operator= (FunctionRecord &&)=default |
void | pushMCDCRecord (MCDCRecord &&Record) |
void | pushRegion (CounterMappingRegion Region, uint64_t Count, uint64_t FalseCount, bool HasSingleByteCoverage) |
Public Attributes | |
std::string | Name |
Raw function name. | |
std::vector< std::string > | Filenames |
Mapping from FileID (i.e. | |
std::vector< CountedRegion > | CountedRegions |
Regions in the function along with their counts. | |
std::vector< CountedRegion > | CountedBranchRegions |
Branch Regions in the function along with their counts. | |
std::vector< MCDCRecord > | MCDCRecords |
MCDC Records record a DecisionRegion and associated BranchRegions. | |
uint64_t | ExecutionCount = 0 |
The number of times this function was executed. | |
Code coverage information for a single function.
Definition at line 692 of file CoverageMapping.h.
|
inline |
Definition at line 711 of file CoverageMapping.h.
|
default |
|
default |
|
inline |
Definition at line 717 of file CoverageMapping.h.
References MCDCRecords.
|
inline |
Definition at line 721 of file CoverageMapping.h.
References CountedBranchRegions, CountedRegions, and ExecutionCount.
std::vector<CountedRegion> llvm::coverage::FunctionRecord::CountedBranchRegions |
Branch Regions in the function along with their counts.
Definition at line 705 of file CoverageMapping.h.
Referenced by pushRegion().
std::vector<CountedRegion> llvm::coverage::FunctionRecord::CountedRegions |
Regions in the function along with their counts.
Definition at line 703 of file CoverageMapping.h.
Referenced by pushRegion().
uint64_t llvm::coverage::FunctionRecord::ExecutionCount = 0 |
The number of times this function was executed.
Definition at line 709 of file CoverageMapping.h.
Referenced by pushRegion().
std::vector<std::string> llvm::coverage::FunctionRecord::Filenames |
Mapping from FileID (i.e.
vector index) to filename. Used to support macro expansions within a function in which the macro and function are defined in separate files.
TODO: Uniquing filenames across all function records may be a performance optimization.
Definition at line 701 of file CoverageMapping.h.
std::vector<MCDCRecord> llvm::coverage::FunctionRecord::MCDCRecords |
MCDC Records record a DecisionRegion and associated BranchRegions.
Definition at line 707 of file CoverageMapping.h.
Referenced by pushMCDCRecord().
std::string llvm::coverage::FunctionRecord::Name |
Raw function name.
Definition at line 694 of file CoverageMapping.h.