X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FBlockFrequency.h;h=839cf93712472df359670ad07ae5dfc081f90891;hb=5eb301740c4ee5d978535caa917cc004733a7fca;hp=36aca807f787e8f2687f046502b9383c14050c7d;hpb=636a02b57c3ade2eb528bda31f05556f42aa7d48;p=oota-llvm.git diff --git a/include/llvm/Support/BlockFrequency.h b/include/llvm/Support/BlockFrequency.h index 36aca807f78..839cf937124 100644 --- a/include/llvm/Support/BlockFrequency.h +++ b/include/llvm/Support/BlockFrequency.h @@ -14,6 +14,8 @@ #ifndef LLVM_SUPPORT_BLOCKFREQUENCY_H #define LLVM_SUPPORT_BLOCKFREQUENCY_H +#include "llvm/Support/DataTypes.h" + namespace llvm { class raw_ostream; @@ -23,10 +25,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);