struct InstrProfValueSiteRecord
Declaration
struct InstrProfValueSiteRecord { /* full declaration omitted */ };Declared at: llvm/include/llvm/ProfileData/InstrProf.h:653
Member Variables
- public std::list<InstrProfValueData> ValueData
 - Value profiling data pairs at a given value site.
 
Method Overview
- public InstrProfValueSiteRecord()
 - public template <class InputIterator> InstrProfValueSiteRecord(InputIterator F, InputIterator L)
 - public void merge(llvm::InstrProfValueSiteRecord & Input, uint64_t Weight, function_ref<void (llvm::instrprof_error)> Warn)
 - public void overlap(llvm::InstrProfValueSiteRecord & Input, uint32_t ValueKind, llvm::OverlapStats & Overlap, llvm::OverlapStats & FuncLevelOverlap)
 - public void scale(uint64_t Weight, function_ref<void (llvm::instrprof_error)> Warn)
 - public inline void sortByCount()
 - public void sortByTargetValues()
 
Methods
¶InstrProfValueSiteRecord()
InstrProfValueSiteRecord()Declared at: llvm/include/llvm/ProfileData/InstrProf.h:657
¶template <class InputIterator>
InstrProfValueSiteRecord(InputIterator F,
                         InputIterator L)
template <class InputIterator>
InstrProfValueSiteRecord(InputIterator F,
                         InputIterator L)Declared at: llvm/include/llvm/ProfileData/InstrProf.h:659
Templates
- InputIterator
 
Parameters
- InputIterator F
 - InputIterator L
 
¶void merge(
    llvm::InstrProfValueSiteRecord& Input,
    uint64_t Weight,
    function_ref<void(llvm::instrprof_error)>
        Warn)
void merge(
    llvm::InstrProfValueSiteRecord& Input,
    uint64_t Weight,
    function_ref<void(llvm::instrprof_error)>
        Warn)Description
Merge data from another InstrProfValueSiteRecord Optionally scale merged counts by \p Weight.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:674
Parameters
- llvm::InstrProfValueSiteRecord& Input
 - uint64_t Weight
 - function_ref<void(llvm::instrprof_error)> Warn
 
¶void overlap(
    llvm::InstrProfValueSiteRecord& Input,
    uint32_t ValueKind,
    llvm::OverlapStats& Overlap,
    llvm::OverlapStats& FuncLevelOverlap)
void overlap(
    llvm::InstrProfValueSiteRecord& Input,
    uint32_t ValueKind,
    llvm::OverlapStats& Overlap,
    llvm::OverlapStats& FuncLevelOverlap)Description
Compute the overlap b/w this record and Input record.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:680
Parameters
- llvm::InstrProfValueSiteRecord& Input
 - uint32_t ValueKind
 - llvm::OverlapStats& Overlap
 - llvm::OverlapStats& FuncLevelOverlap
 
¶void scale(
    uint64_t Weight,
    function_ref<void(llvm::instrprof_error)>
        Warn)
void scale(
    uint64_t Weight,
    function_ref<void(llvm::instrprof_error)>
        Warn)Description
Scale up value profile data counts.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:677
Parameters
- uint64_t Weight
 - function_ref<void(llvm::instrprof_error)> Warn
 
¶inline void sortByCount()
inline void sortByCount()Description
Sort ValueData Descending by Count
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:670
¶void sortByTargetValues()
void sortByTargetValues()Description
Sort ValueData ascending by Value
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:663