diff options
author | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-09-01 19:08:51 +0000 |
---|---|---|
committer | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-09-01 19:08:51 +0000 |
commit | da5ea945545ca8864a873a5a33fd891ec381ec88 (patch) | |
tree | acb6c1bed261f0e4e761e865b3a9fb80ad969ded /include | |
parent | ad09d42e04d16fe4abe36e4642de22805dbe2752 (diff) | |
download | external_llvm-da5ea945545ca8864a873a5a33fd891ec381ec88.zip external_llvm-da5ea945545ca8864a873a5a33fd891ec381ec88.tar.gz external_llvm-da5ea945545ca8864a873a5a33fd891ec381ec88.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')
-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 |