diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfo.h b/llvm/include/llvm/Analysis/BlockFrequencyInfo.h index bd44ae34e5b9..e594448f4789 100644 --- a/llvm/include/llvm/Analysis/BlockFrequencyInfo.h +++ b/llvm/include/llvm/Analysis/BlockFrequencyInfo.h @@ -59,6 +59,8 @@ public: // BB and print it to OS. raw_ostream &printBlockFreq(raw_ostream &OS, const BasicBlock *BB) const; + uint64_t getEntryFreq() const; + }; } diff --git a/llvm/lib/Analysis/BlockFrequencyInfo.cpp b/llvm/lib/Analysis/BlockFrequencyInfo.cpp index 2616edd78baa..0088c2074557 100644 --- a/llvm/lib/Analysis/BlockFrequencyInfo.cpp +++ b/llvm/lib/Analysis/BlockFrequencyInfo.cpp @@ -170,3 +170,7 @@ BlockFrequencyInfo::printBlockFreq(raw_ostream &OS, const BasicBlock *BB) const { return BFI->printBlockFreq(OS, BB); } + +uint64_t BlockFrequencyInfo::getEntryFreq() const { + return BFI->getEntryFreq(); +}