LLVM 17.0.0git
|
#include "llvm/Support/BlockFrequency.h"
Static Public Member Functions | |
static uint64_t | getMaxFrequency () |
Returns the maximum possible frequency, the saturation value. | |
Definition at line 23 of file BlockFrequency.h.
|
inline |
Definition at line 27 of file BlockFrequency.h.
|
inline |
Returns the frequency as a fixpoint number scaled by the entry frequency.
Definition at line 34 of file BlockFrequency.h.
Referenced by llvm::CFGMST< Edge, BBInfo >::buildEdges(), llvm::CodeExtractor::extractCodeRegion(), llvm::RegBankSelect::MBBInsertPoint::frequency(), llvm::RegBankSelect::EdgeInsertPoint::frequency(), llvm::MachineBlockFrequencyInfo::getBlockFreqRelativeToEntryBlock(), llvm::InlineFunction(), llvm::BlockFrequencyInfoImplBase::printBlockFreq(), llvm::SplitIndirectBrCriticalEdges(), and updateCallerBFI().
|
inlinestatic |
Returns the maximum possible frequency, the saturation value.
Definition at line 30 of file BlockFrequency.h.
References UINT64_MAX.
Referenced by llvm::SpillPlacement::Node::addBias().
BlockFrequency BlockFrequency::operator* | ( | BranchProbability | Prob | ) | const |
Definition at line 24 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator*= | ( | BranchProbability | Prob | ) |
Multiplies with a branch probability.
The computation will never overflow.
Definition at line 19 of file BlockFrequency.cpp.
References llvm::BranchProbability::scale().
BlockFrequency BlockFrequency::operator+ | ( | BlockFrequency | Freq | ) | const |
Definition at line 52 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator+= | ( | BlockFrequency | Freq | ) |
Adds another block frequency using saturating arithmetic.
Definition at line 41 of file BlockFrequency.cpp.
References UINT64_MAX.
BlockFrequency BlockFrequency::operator- | ( | BlockFrequency | Freq | ) | const |
Definition at line 67 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator-= | ( | BlockFrequency | Freq | ) |
Subtracts another block frequency using saturating arithmetic.
Definition at line 58 of file BlockFrequency.cpp.
BlockFrequency BlockFrequency::operator/ | ( | BranchProbability | Prob | ) | const |
Definition at line 35 of file BlockFrequency.cpp.
BlockFrequency & BlockFrequency::operator/= | ( | BranchProbability | Prob | ) |
Divide by a non-zero branch probability using saturating arithmetic.
Definition at line 30 of file BlockFrequency.cpp.
References llvm::BranchProbability::scaleByInverse().
|
inline |
Definition at line 57 of file BlockFrequency.h.
References RHS.
|
inline |
Definition at line 61 of file BlockFrequency.h.
References RHS.
|
inline |
Definition at line 73 of file BlockFrequency.h.
References RHS.
|
inline |
Definition at line 65 of file BlockFrequency.h.
References RHS.
|
inline |
Definition at line 69 of file BlockFrequency.h.
References RHS.
BlockFrequency & BlockFrequency::operator>>= | ( | const unsigned | count | ) |
Shift block frequency to the right by count digits saturating to 1.
Definition at line 73 of file BlockFrequency.cpp.
References assert(), and llvm::count().