LLVM
8.0.1
|
#include "llvm/ProfileData/GCOV.h"
Classes | |
struct | GCOVCoverage |
struct | LineData |
Public Member Functions | |
FileInfo (const GCOV::Options &Options) | |
void | addBlockLine (StringRef Filename, uint32_t Line, const GCOVBlock *Block) |
void | addFunctionLine (StringRef Filename, uint32_t Line, const GCOVFunction *Function) |
void | setRunCount (uint32_t Runs) |
void | setProgramCount (uint32_t Programs) |
void | print (raw_ostream &OS, StringRef MainFilename, StringRef GCNOFile, StringRef GCDAFile) |
print - Print source files with collected line count information. More... | |
Protected Types | |
using | FunctionVector = SmallVector< const GCOVFunction *, 1 > |
using | FunctionLines = DenseMap< uint32_t, FunctionVector > |
using | BlockVector = SmallVector< const GCOVBlock *, 4 > |
using | BlockLines = DenseMap< uint32_t, BlockVector > |
using | FileCoverageList = SmallVector< std::pair< std::string, GCOVCoverage >, 4 > |
using | FuncCoverageMap = MapVector< const GCOVFunction *, GCOVCoverage > |
Protected Member Functions | |
std::string | getCoveragePath (StringRef Filename, StringRef MainFilename) |
std::unique_ptr< raw_ostream > | openCoveragePath (StringRef CoveragePath) |
void | printFunctionSummary (raw_ostream &OS, const FunctionVector &Funcs) const |
printFunctionSummary - Print function and block summary. More... | |
void | printBlockInfo (raw_ostream &OS, const GCOVBlock &Block, uint32_t LineIndex, uint32_t &BlockNo) const |
printBlockInfo - Output counts for each block. More... | |
void | printBranchInfo (raw_ostream &OS, const GCOVBlock &Block, GCOVCoverage &Coverage, uint32_t &EdgeNo) |
printBranchInfo - Print conditional branch probabilities. More... | |
void | printUncondBranchInfo (raw_ostream &OS, uint32_t &EdgeNo, uint64_t Count) const |
printUncondBranchInfo - Print unconditional branch probabilities. More... | |
void | printCoverage (raw_ostream &OS, const GCOVCoverage &Coverage) const |
void | printFuncCoverage (raw_ostream &OS) const |
void | printFileCoverage (raw_ostream &OS) const |
Protected Attributes | |
const GCOV::Options & | Options |
StringMap< LineData > | LineInfo |
uint32_t | RunCount = 0 |
uint32_t | ProgramCount = 0 |
FileCoverageList | FileCoverages |
FuncCoverageMap | FuncCoverages |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 428 of file GCOV.h.
Referenced by llvm::pruneCache().
|
inline |
Definition at line 430 of file GCOV.h.
Referenced by llvm::GCOVBlock::collectLineCounts().
|
inline |
Definition at line 436 of file GCOV.h.
Referenced by llvm::GCOVFunction::collectLineCounts().
Definition at line 678 of file GCOV.cpp.
References llvm::StringRef::equals(), and mangleCoveragePath().
|
protected |
Definition at line 695 of file GCOV.cpp.
References llvm::errs(), and llvm::sys::fs::F_Text.
void FileInfo::print | ( | raw_ostream & | OS, |
StringRef | MainFilename, | ||
StringRef | GCNOFile, | ||
StringRef | GCDAFile | ||
) |
print - Print source files with collected line count information.
Definition at line 710 of file GCOV.cpp.
References llvm::FileInfo::LineData::Blocks, llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::format(), llvm::FileInfo::LineData::Functions, llvm::GCOVBlock::getLineCount(), llvm::GCOVFunction::getName(), llvm::FileInfo::LineData::LastLine, llvm::FileInfo::GCOVCoverage::LinesExec, llvm::FileInfo::GCOVCoverage::LogicalLines, llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::sort().
|
protected |
printBlockInfo - Output counts for each block.
Definition at line 843 of file GCOV.cpp.
References llvm::format(), and llvm::GCOVBlock::getCount().
|
protected |
printBranchInfo - Print conditional branch probabilities.
Definition at line 853 of file GCOV.cpp.
References llvm::FileInfo::GCOVCoverage::Branches, llvm::FileInfo::GCOVCoverage::BranchesExec, llvm::FileInfo::GCOVCoverage::BranchesTaken, llvm::GCOVBlock::dsts(), llvm::format(), llvm::GCOVBlock::getCount(), llvm::GCOVBlock::getParent(), if(), N, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
protected |
|
protected |
Definition at line 922 of file GCOV.cpp.
References R600_InstFlag::FC, and llvm::FileInfo::GCOVCoverage::Name.
|
protected |
Definition at line 912 of file GCOV.cpp.
References R600_InstFlag::FC, and llvm::FileInfo::GCOVCoverage::Name.
|
protected |
|
protected |
printUncondBranchInfo - Print unconditional branch probabilities.
Definition at line 883 of file GCOV.cpp.
References llvm::format().
|
inline |
Definition at line 444 of file GCOV.h.
References print().
Referenced by llvm::GCOVFile::collectLineCounts().
|
inline |
Definition at line 443 of file GCOV.h.
Referenced by llvm::GCOVFile::collectLineCounts().
|
protected |
|
protected |
|
protected |