LLVM: llvm::CalleeInfo Struct Reference (original) (raw)
Class to accumulate and hold information about a callee. More...
#include "[llvm/IR/ModuleSummaryIndex.h](ModuleSummaryIndex%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| enum class | HotnessType : uint8_t { Unknown = 0 , Cold = 1 , None = 2 , Hot = 3 , Critical = 4 } |
| Public Member Functions | |
|---|---|
| CalleeInfo () | |
| CalleeInfo (HotnessType Hotness, bool HasTC, uint64_t RelBF) | |
| void | updateHotness (const HotnessType OtherHotness) |
| bool | hasTailCall () const |
| void | setHasTailCall (const bool HasTC) |
| HotnessType | getHotness () const |
| void | updateRelBlockFreq (uint64_t BlockFreq, uint64_t EntryFreq) |
| Update RelBlockFreq from BlockFreq and EntryFreq. |
| Static Public Attributes | |
|---|---|
| static constexpr unsigned | RelBlockFreqBits = 28 |
| The value stored in RelBlockFreq has to be interpreted as the digits of a scaled number with a scale of -ScaleShift. | |
| static constexpr int32_t | ScaleShift = 8 |
| static constexpr uint64_t | MaxRelBlockFreq = (1 << RelBlockFreqBits) - 1 |
Class to accumulate and hold information about a callee.
Definition at line 62 of file ModuleSummaryIndex.h.
◆ HotnessType
| llvm::CalleeInfo::CalleeInfo ( ) | inline |
|---|
◆ CalleeInfo() [2/2]
| llvm::CalleeInfo::CalleeInfo ( HotnessType Hotness, bool HasTC, uint64_t RelBF ) | inlineexplicit |
|---|
◆ getHotness()
| HotnessType llvm::CalleeInfo::getHotness ( ) const | inline |
|---|
◆ hasTailCall()
| bool llvm::CalleeInfo::hasTailCall ( ) const | inline |
|---|
◆ setHasTailCall()
| void llvm::CalleeInfo::setHasTailCall ( const bool HasTC) | inline |
|---|
◆ updateHotness()
| void llvm::CalleeInfo::updateHotness ( const HotnessType OtherHotness) | inline |
|---|
◆ updateRelBlockFreq()
| void llvm::CalleeInfo::updateRelBlockFreq ( uint64_t BlockFreq, uint64_t EntryFreq ) | inline |
|---|
◆ HasTailCall
◆ Hotness
◆ MaxRelBlockFreq
| uint64_t llvm::CalleeInfo::MaxRelBlockFreq = (1 << RelBlockFreqBits) - 1 | staticconstexpr |
|---|
◆ RelBlockFreq
◆ RelBlockFreqBits
| unsigned llvm::CalleeInfo::RelBlockFreqBits = 28 | staticconstexpr |
|---|
◆ ScaleShift
| int32_t llvm::CalleeInfo::ScaleShift = 8 | staticconstexpr |
|---|
The documentation for this struct was generated from the following file:
- include/llvm/IR/ModuleSummaryIndex.h