LLVM
8.0.1
|
#include "llvm/ProfileData/ProfileCommon.h"
Public Member Functions | |
InstrProfSummaryBuilder (std::vector< uint32_t > Cutoffs) | |
void | addRecord (const InstrProfRecord &) |
std::unique_ptr< ProfileSummary > | getSummary () |
Additional Inherited Members | |
Static Public Attributes inherited from llvm::ProfileSummaryBuilder | |
static const ArrayRef< uint32_t > | DefaultCutoffs |
A vector of useful cutoff values for detailed summary. More... | |
Protected Member Functions inherited from llvm::ProfileSummaryBuilder | |
ProfileSummaryBuilder (std::vector< uint32_t > Cutoffs) | |
~ProfileSummaryBuilder ()=default | |
void | addCount (uint64_t Count) |
This is called when a count is seen in the profile. More... | |
void | computeDetailedSummary () |
Protected Attributes inherited from llvm::ProfileSummaryBuilder | |
SummaryEntryVector | DetailedSummary |
uint64_t | TotalCount = 0 |
uint64_t | MaxCount = 0 |
uint64_t | MaxFunctionCount = 0 |
uint32_t | NumCounts = 0 |
uint32_t | NumFunctions = 0 |
Definition at line 68 of file ProfileCommon.h.
|
inline |
Definition at line 75 of file ProfileCommon.h.
void InstrProfSummaryBuilder::addRecord | ( | const InstrProfRecord & | R | ) |
Definition at line 35 of file ProfileSummaryBuilder.cpp.
References llvm::InstrProfRecord::Counts, E, and I.
Referenced by llvm::InstrProfRecordWriterTrait::EmitData().
std::unique_ptr< ProfileSummary > InstrProfSummaryBuilder::getSummary | ( | ) |
Definition at line 97 of file ProfileSummaryBuilder.cpp.
References llvm::ProfileSummaryBuilder::addCount(), llvm::ProfileSummaryBuilder::computeDetailedSummary(), llvm::ProfileSummaryBuilder::DetailedSummary, llvm::ProfileSummaryBuilder::MaxCount, llvm::ProfileSummaryBuilder::MaxFunctionCount, llvm::ProfileSummaryBuilder::NumCounts, llvm::ProfileSummaryBuilder::NumFunctions, llvm::ProfileSummary::PSK_Instr, and llvm::ProfileSummaryBuilder::TotalCount.
Referenced by llvm::IndexedInstrProfReader::hasFormat(), and setSummary().