LLVM 20.0.0git
Public Member Functions | List of all members
llvm::InstrProfSummaryBuilder Class Referencefinal

#include "llvm/ProfileData/ProfileCommon.h"

Inheritance diagram for llvm::InstrProfSummaryBuilder:
Inheritance graph
[legend]

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< ProfileSummarygetSummary ()
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ProfileSummaryBuilder
static const ProfileSummaryEntrygetEntryForPercentile (const SummaryEntryVector &DS, uint64_t Percentile)
 Find the summary entry for a desired percentile of counts.
 
static uint64_t getHotCountThreshold (const SummaryEntryVector &DS)
 
static uint64_t getColdCountThreshold (const SummaryEntryVector &DS)
 
- Static Public Attributes inherited from llvm::ProfileSummaryBuilder
static const ArrayRef< uint32_tDefaultCutoffs
 A vector of useful cutoff values for detailed summary.
 
- 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.
 
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
 

Detailed Description

Definition at line 79 of file ProfileCommon.h.

Constructor & Destructor Documentation

◆ InstrProfSummaryBuilder()

llvm::InstrProfSummaryBuilder::InstrProfSummaryBuilder ( std::vector< uint32_t Cutoffs)
inline

Definition at line 83 of file ProfileCommon.h.

Member Function Documentation

◆ addEntryCount()

void InstrProfSummaryBuilder::addEntryCount ( uint64_t  Count)

◆ addInternalCount()

void InstrProfSummaryBuilder::addInternalCount ( uint64_t  Count)

◆ addRecord()

void InstrProfSummaryBuilder::addRecord ( const InstrProfRecord R)

◆ getSummary()

std::unique_ptr< ProfileSummary > InstrProfSummaryBuilder::getSummary ( )

The documentation for this class was generated from the following files: