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

#include <InstrProf.h>

Collaboration diagram for llvm::InstrProfValueSiteRecord:
[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 (SoftInstrProfErrors &SIPE, InstrProfValueSiteRecord &Input, uint64_t Weight=1)
 Merge data from another InstrProfValueSiteRecord Optionally scale merged counts by Weight. More...
 
void scale (SoftInstrProfErrors &SIPE, uint64_t Weight)
 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 553 of file InstrProf.h.

Constructor & Destructor Documentation

llvm::InstrProfValueSiteRecord::InstrProfValueSiteRecord ( )
inline

Definition at line 557 of file InstrProf.h.

References ValueData.

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

Definition at line 559 of file InstrProf.h.

Member Function Documentation

void llvm::InstrProfValueSiteRecord::merge ( SoftInstrProfErrors SIPE,
InstrProfValueSiteRecord Input,
uint64_t  Weight = 1 
)

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

Definition at line 342 of file InstrProf.cpp.

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

void llvm::InstrProfValueSiteRecord::scale ( SoftInstrProfErrors SIPE,
uint64_t  Weight 
)

Scale up value profile data counts.

Definition at line 365 of file InstrProf.cpp.

References llvm::SoftInstrProfErrors::addError(), llvm::counter_overflow, I, llvm::ARM_PROC::IE, llvm::SaturatingMultiply(), and ValueData.

void llvm::InstrProfValueSiteRecord::sortByCount ( )
inline

Sort ValueData Descending by Count.

Definition at line 750 of file InstrProf.h.

References ValueData.

void llvm::InstrProfValueSiteRecord::sortByTargetValues ( )
inline

Sort ValueData ascending by Value.

Definition at line 563 of file InstrProf.h.

References ValueData.

Referenced by merge().

Member Data Documentation

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

Value profiling data pairs at a given value site.

Definition at line 555 of file InstrProf.h.

Referenced by InstrProfValueSiteRecord(), merge(), scale(), sortByCount(), and sortByTargetValues().


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