LLVM 20.0.0git
|
#include "llvm/ProfileData/InstrProf.h"
Public Types | |
enum | OverlapStatsLevel { ProgramLevel , FunctionLevel } |
Public Member Functions | |
OverlapStats (OverlapStatsLevel L=ProgramLevel) | |
void | dump (raw_fd_ostream &OS) const |
void | setFuncInfo (StringRef Name, uint64_t Hash) |
Error | accumulateCounts (const std::string &BaseFilename, const std::string &TestFilename, bool IsCS) |
void | addOneMismatch (const CountSumOrPercent &MismatchFunc) |
void | addOneUnique (const CountSumOrPercent &UniqueFunc) |
Static Public Member Functions | |
static double | score (uint64_t Val1, uint64_t Val2, double Sum1, double Sum2) |
Public Attributes | |
CountSumOrPercent | Base |
CountSumOrPercent | Test |
CountSumOrPercent | Overlap |
CountSumOrPercent | Mismatch |
CountSumOrPercent | Unique |
OverlapStatsLevel | Level |
const std::string * | BaseFilename = nullptr |
const std::string * | TestFilename = nullptr |
StringRef | FuncName |
uint64_t | FuncHash = 0 |
bool | Valid = false |
Definition at line 759 of file InstrProf.h.
Enumerator | |
---|---|
ProgramLevel | |
FunctionLevel |
Definition at line 760 of file InstrProf.h.
|
inline |
Definition at line 776 of file InstrProf.h.
Error llvm::OverlapStats::accumulateCounts | ( | const std::string & | BaseFilename, |
const std::string & | TestFilename, | ||
bool | IsCS | ||
) |
Definition at line 1523 of file InstrProf.cpp.
References Base, BaseFilename, llvm::InstrProfReader::create(), llvm::vfs::getRealFileSystem(), llvm::Error::success(), Test, TestFilename, and Valid.
void llvm::OverlapStats::addOneMismatch | ( | const CountSumOrPercent & | MismatchFunc | ) |
Definition at line 1551 of file InstrProf.cpp.
References llvm::CountSumOrPercent::CountSum, I, Mismatch, llvm::CountSumOrPercent::NumEntries, Test, and llvm::CountSumOrPercent::ValueCounts.
Referenced by llvm::InstrProfRecord::overlap(), and llvm::InstrProfWriter::overlapRecord().
void llvm::OverlapStats::addOneUnique | ( | const CountSumOrPercent & | UniqueFunc | ) |
Definition at line 1561 of file InstrProf.cpp.
References llvm::CountSumOrPercent::CountSum, I, llvm::CountSumOrPercent::NumEntries, Test, Unique, and llvm::CountSumOrPercent::ValueCounts.
Referenced by llvm::InstrProfWriter::overlapRecord().
void llvm::OverlapStats::dump | ( | raw_fd_ostream & | OS | ) | const |
Definition at line 1570 of file InstrProf.cpp.
References Base, BaseFilename, llvm::CountSumOrPercent::CountSum, llvm::format(), FuncHash, FuncName, I, Mismatch, llvm::CountSumOrPercent::NumEntries, OS, Overlap, ProgramLevel, Test, TestFilename, Unique, Valid, and llvm::CountSumOrPercent::ValueCounts.
|
inlinestatic |
Definition at line 790 of file InstrProf.h.
Referenced by llvm::InstrProfRecord::overlap(), and llvm::InstrProfValueSiteRecord::overlap().
Definition at line 780 of file InstrProf.h.
CountSumOrPercent llvm::OverlapStats::Base |
Definition at line 762 of file InstrProf.h.
Referenced by accumulateCounts(), dump(), llvm::InstrProfRecord::overlap(), and llvm::InstrProfValueSiteRecord::overlap().
const std::string* llvm::OverlapStats::BaseFilename = nullptr |
Definition at line 770 of file InstrProf.h.
Referenced by accumulateCounts(), and dump().
uint64_t llvm::OverlapStats::FuncHash = 0 |
Definition at line 773 of file InstrProf.h.
Referenced by dump(), and setFuncInfo().
StringRef llvm::OverlapStats::FuncName |
Definition at line 772 of file InstrProf.h.
Referenced by dump(), and setFuncInfo().
OverlapStatsLevel llvm::OverlapStats::Level |
Definition at line 769 of file InstrProf.h.
CountSumOrPercent llvm::OverlapStats::Mismatch |
Definition at line 767 of file InstrProf.h.
Referenced by addOneMismatch(), and dump().
CountSumOrPercent llvm::OverlapStats::Overlap |
Definition at line 766 of file InstrProf.h.
Referenced by dump(), llvm::InstrProfRecord::overlap(), llvm::InstrProfValueSiteRecord::overlap(), and llvm::InstrProfWriter::overlapRecord().
CountSumOrPercent llvm::OverlapStats::Test |
Definition at line 764 of file InstrProf.h.
Referenced by accumulateCounts(), addOneMismatch(), addOneUnique(), dump(), llvm::InstrProfRecord::overlap(), llvm::InstrProfValueSiteRecord::overlap(), and llvm::InstrProfWriter::overlapRecord().
const std::string* llvm::OverlapStats::TestFilename = nullptr |
Definition at line 771 of file InstrProf.h.
Referenced by accumulateCounts(), and dump().
CountSumOrPercent llvm::OverlapStats::Unique |
Definition at line 768 of file InstrProf.h.
Referenced by addOneUnique(), and dump().
bool llvm::OverlapStats::Valid = false |
Definition at line 774 of file InstrProf.h.
Referenced by accumulateCounts(), dump(), and llvm::InstrProfRecord::overlap().