LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::InstrProfValueSiteRecord Struct Reference

#include "llvm/ProfileData/InstrProf.h"

Collaboration diagram for llvm::InstrProfValueSiteRecord:
Collaboration graph
[legend]

Public Member Functions

 InstrProfValueSiteRecord ()
 
template<class InputIterator >
 InstrProfValueSiteRecord (InputIterator F, InputIterator L)
 
void sortByTargetValues ()
 Sort ValueData ascending by Value. More...
 
void sortByCount ()
 Sort ValueData Descending by Count. More...
 
void merge (InstrProfValueSiteRecord &Input, uint64_t Weight, function_ref< void(instrprof_error)> Warn)
 Merge data from another InstrProfValueSiteRecord Optionally scale merged counts by Weight. More...
 
void scale (uint64_t Weight, function_ref< void(instrprof_error)> Warn)
 Scale up value profile data counts. More...
 

Public Attributes

std::list< InstrProfValueData > ValueData
 Value profiling data pairs at a given value site. More...
 

Detailed Description

Definition at line 564 of file InstrProf.h.

Constructor & Destructor Documentation

◆ InstrProfValueSiteRecord() [1/2]

llvm::InstrProfValueSiteRecord::InstrProfValueSiteRecord ( )
inline

Definition at line 568 of file InstrProf.h.

◆ InstrProfValueSiteRecord() [2/2]

template<class InputIterator >
llvm::InstrProfValueSiteRecord::InstrProfValueSiteRecord ( InputIterator  F,
InputIterator  L 
)
inline

Definition at line 570 of file InstrProf.h.

Member Function Documentation

◆ merge()

void llvm::InstrProfValueSiteRecord::merge ( InstrProfValueSiteRecord Input,
uint64_t  Weight,
function_ref< void(instrprof_error)>  Warn 
)

Merge data from another InstrProfValueSiteRecord Optionally scale merged counts by Weight.

Definition at line 468 of file InstrProf.cpp.

References llvm::counter_overflow, I, llvm::ARM_PROC::IE, llvm::SaturatingMultiplyAdd(), sortByTargetValues(), and ValueData.

◆ scale()

void llvm::InstrProfValueSiteRecord::scale ( uint64_t  Weight,
function_ref< void(instrprof_error)>  Warn 
)

◆ sortByCount()

void llvm::InstrProfValueSiteRecord::sortByCount ( )
inline

Sort ValueData Descending by Count.

Definition at line 817 of file InstrProf.h.

◆ sortByTargetValues()

void llvm::InstrProfValueSiteRecord::sortByTargetValues ( )
inline

Sort ValueData ascending by Value.

Definition at line 574 of file InstrProf.h.

References scale().

Referenced by merge().

Member Data Documentation

◆ ValueData

std::list<InstrProfValueData> llvm::InstrProfValueSiteRecord::ValueData

Value profiling data pairs at a given value site.

Definition at line 566 of file InstrProf.h.

Referenced by merge().


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