Class to accumulate and hold information about a callee.
More...
#include "llvm/IR/ModuleSummaryIndex.h"
Class to accumulate and hold information about a callee.
Definition at line 54 of file ModuleSummaryIndex.h.
◆ HotnessType
◆ CalleeInfo() [1/2]
llvm::CalleeInfo::CalleeInfo |
( |
| ) |
|
|
inline |
◆ CalleeInfo() [2/2]
llvm::CalleeInfo::CalleeInfo |
( |
HotnessType |
Hotness, |
|
|
uint64_t |
RelBF |
|
) |
| |
|
inlineexplicit |
◆ getHotness()
◆ updateHotness()
◆ updateRelBlockFreq()
void llvm::CalleeInfo::updateRelBlockFreq |
( |
uint64_t |
BlockFreq, |
|
|
uint64_t |
EntryFreq |
|
) |
| |
|
inline |
Update RelBlockFreq
from BlockFreq
and EntryFreq
.
BlockFreq is divided by EntryFreq and added to RelBlockFreq. To represent fractional values, the result is represented as a fixed point number with scale of -ScaleShift.
Definition at line 89 of file ModuleSummaryIndex.h.
◆ Hotness
◆ MaxRelBlockFreq
constexpr uint64_t llvm::CalleeInfo::MaxRelBlockFreq = (1 << 29) - 1 |
|
static |
◆ RelBlockFreq
The value stored in RelBlockFreq has to be interpreted as the digits of a scaled number with a scale of -ScaleShift
.
Definition at line 69 of file ModuleSummaryIndex.h.
◆ ScaleShift
constexpr int32_t llvm::CalleeInfo::ScaleShift = 8 |
|
static |
The documentation for this struct was generated from the following file: