diff options
author | Andreas Neustifter <astifter@gmx.at> | 2009-09-01 19:08:51 +0000 |
---|---|---|
committer | Andreas Neustifter <astifter@gmx.at> | 2009-09-01 19:08:51 +0000 |
commit | 231d73422a43624472e0ff74a1d9ec30740c7adb (patch) | |
tree | acb6c1bed261f0e4e761e865b3a9fb80ad969ded /include/llvm/Analysis/ProfileInfoLoader.h | |
parent | 595887666dae3198db047b6e718129fdcf45ab8a (diff) | |
download | external_llvm-231d73422a43624472e0ff74a1d9ec30740c7adb.zip external_llvm-231d73422a43624472e0ff74a1d9ec30740c7adb.tar.gz external_llvm-231d73422a43624472e0ff74a1d9ec30740c7adb.tar.bz2 |
OptimalEdgeProfiling: Reading in Profiles.
This enables LLVM to read the OptimalEdgeProfiles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ProfileInfoLoader.h')
-rw-r--r-- | include/llvm/Analysis/ProfileInfoLoader.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ProfileInfoLoader.h b/include/llvm/Analysis/ProfileInfoLoader.h index 87faa3e..e74ea3c 100644 --- a/include/llvm/Analysis/ProfileInfoLoader.h +++ b/include/llvm/Analysis/ProfileInfoLoader.h @@ -33,6 +33,7 @@ class ProfileInfoLoader { std::vector<unsigned> FunctionCounts; std::vector<unsigned> BlockCounts; std::vector<unsigned> EdgeCounts; + std::vector<unsigned> OptimalEdgeCounts; std::vector<unsigned> BBTrace; bool Warned; public: @@ -66,6 +67,14 @@ public: const std::vector<unsigned> &getRawEdgeCounts() const { return EdgeCounts; } + + // getEdgeOptimalCounts - This method is used by consumers of optimal edge + // counting information. + // + const std::vector<unsigned> &getRawOptimalEdgeCounts() const { + return OptimalEdgeCounts; + } + }; } // End llvm namespace |