clang 22.0.0git
|
Organizes the per-function state that is used while generating code coverage mapping data. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CoverageMappingGen.h"
Public Member Functions | |
CoverageMappingGen (CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts) | |
CoverageMappingGen (CoverageMappingModuleGen &CVM, SourceManager &SM, const LangOptions &LangOpts, llvm::DenseMap< const Stmt *, CounterPair > *CounterMap, MCDC::State *MCDCState) | |
void | emitCounterMapping (const Decl *D, llvm::raw_ostream &OS) |
Emit the coverage mapping data which maps the regions of code to counters that will be used to find the execution counts for those regions. | |
void | emitEmptyMapping (const Decl *D, llvm::raw_ostream &OS) |
Emit the coverage mapping data for an unused function. |
Organizes the per-function state that is used while generating code coverage mapping data.
Definition at line 158 of file CoverageMappingGen.h.
|
inline |
Definition at line 166 of file CoverageMappingGen.h.
References clang::nullptr.
|
inline |
Definition at line 171 of file CoverageMappingGen.h.
void CoverageMappingGen::emitCounterMapping | ( | const Decl * | D, |
llvm::raw_ostream & | OS ) |
Emit the coverage mapping data which maps the regions of code to counters that will be used to find the execution counts for those regions.
Definition at line 2646 of file CoverageMappingGen.cpp.
References clang::CodeGen::Decl.
void CoverageMappingGen::emitEmptyMapping | ( | const Decl * | D, |
llvm::raw_ostream & | OS ) |
Emit the coverage mapping data for an unused function.
It creates mapping regions with the counter of zero.
Definition at line 2655 of file CoverageMappingGen.cpp.
References clang::CodeGen::Decl.
Referenced by clang::CodeGen::CodeGenPGO::emitEmptyCounterMapping().