[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysisCounter.cpp AliasAnalysisEvaluator.cpp BasicAliasAnalysis.cpp ProfileInfo.cpp ProfileInfoLoaderPass.cpp ValueNumbering.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sat Jan 8 14:01:27 PST 2005
Changes in directory llvm/lib/Analysis:
AliasAnalysisCounter.cpp updated: 1.10 -> 1.11
AliasAnalysisEvaluator.cpp updated: 1.20 -> 1.21
BasicAliasAnalysis.cpp updated: 1.63 -> 1.64
ProfileInfo.cpp updated: 1.5 -> 1.6
ProfileInfoLoaderPass.cpp updated: 1.8 -> 1.9
ValueNumbering.cpp updated: 1.13 -> 1.14
---
Log message:
Add even more missing createXxxPass functions.
---
Diffs of the changes: (+22 -0)
Index: llvm/lib/Analysis/AliasAnalysisCounter.cpp
diff -u llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.10 llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.11
--- llvm/lib/Analysis/AliasAnalysisCounter.cpp:1.10 Tue Dec 7 02:11:24 2004
+++ llvm/lib/Analysis/AliasAnalysisCounter.cpp Sat Jan 8 16:01:16 2005
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Pass.h"
#include <iostream>
@@ -124,3 +125,7 @@
X("count-aa", "Count Alias Analysis Query Responses");
RegisterAnalysisGroup<AliasAnalysis, AliasAnalysisCounter> Y;
}
+
+ModulePass *llvm::createAliasAnalysisCounterPass() {
+ return new AliasAnalysisCounter();
+}
Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.20 llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.21
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.20 Fri Nov 26 15:05:39 2004
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cpp Sat Jan 8 16:01:16 2005
@@ -21,6 +21,7 @@
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
#include "llvm/DerivedTypes.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Target/TargetData.h"
@@ -72,6 +73,8 @@
X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator");
}
+FunctionPass *llvm::createAAEvalPass() { return new AAEval(); }
+
static inline void PrintResults(const char *Msg, bool P, Value *V1, Value *V2,
Module *M) {
if (P) {
Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.63 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.64
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.63 Wed Dec 15 11:13:24 2004
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp Sat Jan 8 16:01:16 2005
@@ -14,6 +14,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/AliasAnalysis.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
@@ -80,6 +81,7 @@
RegisterAnalysisGroup<AliasAnalysis, NoAA> V;
} // End of anonymous namespace
+ImmutablePass *llvm::createNoAAPass() { return new NoAA(); }
namespace {
/// BasicAliasAnalysis - This is the default alias analysis implementation.
@@ -124,6 +126,10 @@
RegisterAnalysisGroup<AliasAnalysis, BasicAliasAnalysis, true> Y;
} // End of anonymous namespace
+ImmutablePass *llvm::createBasicAliasAnalysisPass() {
+ return new BasicAliasAnalysis();
+}
+
// hasUniqueAddress - Return true if the specified value points to something
// with a unique, discernable, address.
static inline bool hasUniqueAddress(const Value *V) {
Index: llvm/lib/Analysis/ProfileInfo.cpp
diff -u llvm/lib/Analysis/ProfileInfo.cpp:1.5 llvm/lib/Analysis/ProfileInfo.cpp:1.6
--- llvm/lib/Analysis/ProfileInfo.cpp:1.5 Mon Mar 8 16:04:08 2004
+++ llvm/lib/Analysis/ProfileInfo.cpp Sat Jan 8 16:01:16 2005
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/ProfileInfo.h"
#include "llvm/Pass.h"
#include "llvm/Support/CFG.h"
@@ -90,3 +91,5 @@
// Declare that we implement the ProfileInfo interface
RegisterAnalysisGroup<ProfileInfo, NoProfileInfo, true> Y;
} // End of anonymous namespace
+
+ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); }
Index: llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
diff -u llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.8 llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.9
--- llvm/lib/Analysis/ProfileInfoLoaderPass.cpp:1.8 Sun Sep 19 23:45:57 2004
+++ llvm/lib/Analysis/ProfileInfoLoaderPass.cpp Sat Jan 8 16:01:16 2005
@@ -15,6 +15,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/InstrTypes.h"
#include "llvm/Pass.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/ProfileInfo.h"
#include "llvm/Analysis/ProfileInfoLoader.h"
#include "llvm/Support/CommandLine.h"
@@ -54,6 +55,7 @@
RegisterAnalysisGroup<ProfileInfo, LoaderPass> Y;
} // End of anonymous namespace
+ModulePass *llvm::createLoaderPass() { return new LoaderPass(); }
/// createProfileLoaderPass - This function returns a Pass that loads the
/// profiling information for the module from the specified filename, making it
Index: llvm/lib/Analysis/ValueNumbering.cpp
diff -u llvm/lib/Analysis/ValueNumbering.cpp:1.13 llvm/lib/Analysis/ValueNumbering.cpp:1.14
--- llvm/lib/Analysis/ValueNumbering.cpp:1.13 Thu Dec 23 15:17:41 2004
+++ llvm/lib/Analysis/ValueNumbering.cpp Sat Jan 8 16:01:16 2005
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/ValueNumbering.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/BasicBlock.h"
@@ -85,6 +86,8 @@
};
}
+ImmutablePass *llvm::createBasicVNPass() { return new BasicVN(); }
+
// getEqualNumberNodes - Return nodes with the same value number as the
// specified Value. This fills in the argument vector with any equal values.
//
More information about the llvm-commits
mailing list