aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter-llvm@gmx.at>2009-09-01 08:48:42 +0000
committerAndreas Neustifter <astifter-llvm@gmx.at>2009-09-01 08:48:42 +0000
commite7ddcfdebe357b4067f9c7d68d44616e11351a23 (patch)
tree55015a2a2f9978f1379a039a303df0a12403bc8c /include
parent9535b314833c50bd1c7002b414a9dbabd6690b09 (diff)
downloadexternal_llvm-e7ddcfdebe357b4067f9c7d68d44616e11351a23.zip
external_llvm-e7ddcfdebe357b4067f9c7d68d44616e11351a23.tar.gz
external_llvm-e7ddcfdebe357b4067f9c7d68d44616e11351a23.tar.bz2
Preparation for Optimal Edge Profiling:
This adds a pass to verify the current profile against the flow conditions. This is very helpful when later on trying to perserve the profiling information during all passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/Passes.h6
-rw-r--r--include/llvm/LinkAllPasses.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Passes.h b/include/llvm/Analysis/Passes.h
index e687653..66ab3ea 100644
--- a/include/llvm/Analysis/Passes.h
+++ b/include/llvm/Analysis/Passes.h
@@ -109,6 +109,12 @@ namespace llvm {
//===--------------------------------------------------------------------===//
//
+ // createProfileVerifierPass - This pass verifies profiling information.
+ //
+ FunctionPass *createProfileVerifierPass();
+
+ //===--------------------------------------------------------------------===//
+ //
// createDSAAPass - This pass implements simple context sensitive alias
// analysis.
//
diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h
index 347dba4..8d93557 100644
--- a/include/llvm/LinkAllPasses.h
+++ b/include/llvm/LinkAllPasses.h
@@ -94,6 +94,7 @@ namespace {
(void) llvm::createNoAAPass();
(void) llvm::createNoProfileInfoPass();
(void) llvm::createProfileEstimatorPass();
+ (void) llvm::createProfileVerifierPass();
(void) llvm::createProfileLoaderPass();
(void) llvm::createPromoteMemoryToRegisterPass();
(void) llvm::createDemoteRegisterToMemoryPass();