LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::InstrProfSummaryBuilder Class Referencefinal

#include "llvm/ProfileData/ProfileCommon.h"

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

Public Member Functions

 InstrProfSummaryBuilder (std::vector< uint32_t > Cutoffs)
 
void addRecord (const InstrProfRecord &)
 
std::unique_ptr< ProfileSummarygetSummary ()
 

Additional Inherited Members

- Static Public Attributes inherited from llvm::ProfileSummaryBuilder
static const ArrayRef< uint32_tDefaultCutoffs
 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
 

Detailed Description

Definition at line 68 of file ProfileCommon.h.

Constructor & Destructor Documentation

◆ InstrProfSummaryBuilder()

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

Definition at line 75 of file ProfileCommon.h.

Member Function Documentation

◆ addRecord()

void InstrProfSummaryBuilder::addRecord ( const InstrProfRecord R)

Definition at line 36 of file ProfileSummaryBuilder.cpp.

References llvm::InstrProfRecord::Counts, E, and I.

Referenced by llvm::InstrProfRecordWriterTrait::EmitData().

◆ getSummary()

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

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