BlockFrequencyInfo: Readded getEntryFreq.
authorYuchen Wu <yuchenericwu@hotmail.com>
Fri, 20 Dec 2013 22:11:11 +0000 (22:11 +0000)
committerYuchen Wu <yuchenericwu@hotmail.com>
Fri, 20 Dec 2013 22:11:11 +0000 (22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197839 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/BlockFrequencyInfo.h
lib/Analysis/BlockFrequencyInfo.cpp

index bd44ae34e5b9c663d45421798b3511459c9c2637..e594448f478975e622d6229050ee0c56c2f2cc36 100644 (file)
@@ -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;
+
 };
 
 }
index 2616edd78baa9bd00f32fa2fd62323f6ab28e5e9..0088c20745574ec42d845ade70647167217ffedf 100644 (file)
@@ -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();
+}