aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter@gmx.at>2009-09-01 19:08:51 +0000
committerAndreas Neustifter <astifter@gmx.at>2009-09-01 19:08:51 +0000
commit231d73422a43624472e0ff74a1d9ec30740c7adb (patch)
treeacb6c1bed261f0e4e761e865b3a9fb80ad969ded /include/llvm/Analysis
parent595887666dae3198db047b6e718129fdcf45ab8a (diff)
downloadexternal_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')
-rw-r--r--include/llvm/Analysis/ProfileInfoLoader.h9
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