mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Reapply documentation changes from r184584.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f0ca0c590
commit
2ea475cddf
@ -30,12 +30,19 @@ class BlockFrequency {
|
||||
public:
|
||||
BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { }
|
||||
|
||||
/// \brief Returns the frequency of the entry block of the function.
|
||||
static uint64_t getEntryFrequency() { return ENTRY_FREQ; }
|
||||
|
||||
/// \brief Returns the frequency as a fixpoint number scaled by the entry
|
||||
/// frequency.
|
||||
uint64_t getFrequency() const { return Frequency; }
|
||||
|
||||
/// \brief Multiplies with a branch probability. The computation will never
|
||||
/// overflow.
|
||||
BlockFrequency &operator*=(const BranchProbability &Prob);
|
||||
const BlockFrequency operator*(const BranchProbability &Prob) const;
|
||||
|
||||
/// \brief Adds another block frequency using saturating arithmetic.
|
||||
BlockFrequency &operator+=(const BlockFrequency &Freq);
|
||||
const BlockFrequency operator+(const BlockFrequency &Freq) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user