LLVM API Documentation
#include <BlockFrequency.h>
Public Member Functions | |
BlockFrequency (uint64_t Freq=0) | |
uint64_t | getFrequency () const |
Returns the frequency as a fixpoint number scaled by the entry frequency. | |
BlockFrequency & | operator*= (const BranchProbability &Prob) |
Multiplies with a branch probability. The computation will never overflow. | |
const BlockFrequency | operator* (const BranchProbability &Prob) const |
BlockFrequency & | operator/= (const BranchProbability &Prob) |
Divide by a non-zero branch probability using saturating arithmetic. | |
BlockFrequency | operator/ (const BranchProbability &Prob) const |
BlockFrequency & | operator+= (const BlockFrequency &Freq) |
Adds another block frequency using saturating arithmetic. | |
const BlockFrequency | operator+ (const BlockFrequency &Freq) const |
BlockFrequency & | operator>>= (const unsigned count) |
Shift block frequency to the right by count digits saturating to 1. | |
bool | operator< (const BlockFrequency &RHS) const |
bool | operator<= (const BlockFrequency &RHS) const |
bool | operator> (const BlockFrequency &RHS) const |
bool | operator>= (const BlockFrequency &RHS) const |
Static Public Member Functions | |
static uint64_t | getMaxFrequency () |
Returns the maximum possible frequency, the saturation value. |
Definition at line 25 of file BlockFrequency.h.
llvm::BlockFrequency::BlockFrequency | ( | uint64_t | Freq = 0 | ) | [inline] |
Definition at line 29 of file BlockFrequency.h.
uint64_t llvm::BlockFrequency::getFrequency | ( | ) | const [inline] |
Returns the frequency as a fixpoint number scaled by the entry frequency.
Definition at line 36 of file BlockFrequency.h.
Referenced by llvm::DOTGraphTraits< BlockFrequencyInfo * >::getNodeLabel(), llvm::DOTGraphTraits< MachineBlockFrequencyInfo * >::getNodeLabel(), llvm::LiveIntervals::getSpillWeight(), llvm::BlockFrequencyInfoImplBase::printBlockFreq(), and setThreshold().
static uint64_t llvm::BlockFrequency::getMaxFrequency | ( | ) | [inline, static] |
Returns the maximum possible frequency, the saturation value.
Definition at line 32 of file BlockFrequency.h.
Referenced by llvm::SpillPlacement::Node::addBias().
const BlockFrequency BlockFrequency::operator* | ( | const BranchProbability & | Prob | ) | const |
Definition at line 27 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator*= | ( | const BranchProbability & | Prob | ) |
Multiplies with a branch probability. The computation will never overflow.
Definition at line 21 of file BlockFrequency.cpp.
References llvm::BranchProbability::scale().
const BlockFrequency BlockFrequency::operator+ | ( | const BlockFrequency & | Freq | ) | const |
Definition at line 56 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator+= | ( | const BlockFrequency & | Freq | ) |
Adds another block frequency using saturating arithmetic.
Definition at line 44 of file BlockFrequency.cpp.
References UINT64_MAX.
BlockFrequency BlockFrequency::operator/ | ( | const BranchProbability & | Prob | ) | const |
Definition at line 38 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator/= | ( | const BranchProbability & | Prob | ) |
Divide by a non-zero branch probability using saturating arithmetic.
Definition at line 33 of file BlockFrequency.cpp.
References llvm::BranchProbability::scaleByInverse().
bool llvm::BlockFrequency::operator< | ( | const BlockFrequency & | RHS | ) | const [inline] |
Definition at line 55 of file BlockFrequency.h.
bool llvm::BlockFrequency::operator<= | ( | const BlockFrequency & | RHS | ) | const [inline] |
Definition at line 59 of file BlockFrequency.h.
bool llvm::BlockFrequency::operator> | ( | const BlockFrequency & | RHS | ) | const [inline] |
Definition at line 63 of file BlockFrequency.h.
bool llvm::BlockFrequency::operator>= | ( | const BlockFrequency & | RHS | ) | const [inline] |
Definition at line 67 of file BlockFrequency.h.
BlockFrequency & BlockFrequency::operator>>= | ( | const unsigned | count | ) |
Shift block frequency to the right by count digits saturating to 1.
Definition at line 62 of file BlockFrequency.cpp.