summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter-llvm@gmx.at>2009-09-01 19:08:51 +0000
committerAndreas Neustifter <astifter-llvm@gmx.at>2009-09-01 19:08:51 +0000
commitda5ea945545ca8864a873a5a33fd891ec381ec88 (patch)
treeacb6c1bed261f0e4e761e865b3a9fb80ad969ded /include/llvm/Analysis
parentad09d42e04d16fe4abe36e4642de22805dbe2752 (diff)
downloadllvm-da5ea945545ca8864a873a5a33fd891ec381ec88.tar.gz
llvm-da5ea945545ca8864a873a5a33fd891ec381ec88.tar.bz2
llvm-da5ea945545ca8864a873a5a33fd891ec381ec88.tar.xz
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 87faa3e223..e74ea3c7d3 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