diff options
author | Jakub Staszak <jstaszak@apple.com> | 2011-08-01 15:22:10 +0000 |
---|---|---|
committer | Jakub Staszak <jstaszak@apple.com> | 2011-08-01 15:22:10 +0000 |
commit | e2481ff8ee722e25d1e3aa192b276f9b5be5b177 (patch) | |
tree | 0edc0168b4d888d770a1d48e2d5aa67b9fa91f36 /include/llvm/Support | |
parent | 5cd8ea2fd3a88639bc6556e9564a95bcdd9598db (diff) | |
download | external_llvm-e2481ff8ee722e25d1e3aa192b276f9b5be5b177.zip external_llvm-e2481ff8ee722e25d1e3aa192b276f9b5be5b177.tar.gz external_llvm-e2481ff8ee722e25d1e3aa192b276f9b5be5b177.tar.bz2 |
Add BlockFrequency::getEntryFrequency()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/BlockFrequency.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/BlockFrequency.h b/include/llvm/Support/BlockFrequency.h index 36aca80..554b784 100644 --- a/include/llvm/Support/BlockFrequency.h +++ b/include/llvm/Support/BlockFrequency.h @@ -23,10 +23,12 @@ class BranchProbability; class BlockFrequency { uint64_t Frequency; + static const int64_t ENTRY_FREQ = 1024; public: BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } + static uint64_t getEntryFrequency() { return ENTRY_FREQ; } uint64_t getFrequency() const { return Frequency; } BlockFrequency &operator*=(const BranchProbability &Prob); |