LLVM 20.0.0git
|
#include "llvm/ProfileData/ProfileCommon.h"
Public Member Functions | |
InstrProfSummaryBuilder (std::vector< uint32_t > Cutoffs) | |
void | addEntryCount (uint64_t Count) |
void | addInternalCount (uint64_t Count) |
void | addRecord (const InstrProfRecord &) |
std::unique_ptr< ProfileSummary > | getSummary () |
Definition at line 79 of file ProfileCommon.h.
|
inline |
Definition at line 83 of file ProfileCommon.h.
void InstrProfSummaryBuilder::addEntryCount | ( | uint64_t | Count | ) |
Definition at line 226 of file ProfileSummaryBuilder.cpp.
References llvm::ProfileSummaryBuilder::addCount(), assert(), llvm::getInstrMaxCountValue(), llvm::ProfileSummaryBuilder::MaxFunctionCount, and llvm::ProfileSummaryBuilder::NumFunctions.
Referenced by addRecord().
void InstrProfSummaryBuilder::addInternalCount | ( | uint64_t | Count | ) |
Definition at line 235 of file ProfileSummaryBuilder.cpp.
References llvm::ProfileSummaryBuilder::addCount(), assert(), and llvm::getInstrMaxCountValue().
Referenced by addRecord().
void InstrProfSummaryBuilder::addRecord | ( | const InstrProfRecord & | R | ) |
Definition at line 93 of file ProfileSummaryBuilder.cpp.
References addEntryCount(), addInternalCount(), I, and llvm::InstrProfRecord::NotPseudo.
Referenced by llvm::InstrProfRecordWriterTrait::EmitData().
std::unique_ptr< ProfileSummary > InstrProfSummaryBuilder::getSummary | ( | ) |
Definition at line 219 of file ProfileSummaryBuilder.cpp.
References 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.