[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp DataStructureOpt.cpp Parallelize.cpp Steensgaard.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sun Jan 9 12:43:04 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructureAA.cpp updated: 1.21 -> 1.22
DataStructureOpt.cpp updated: 1.8 -> 1.9
Parallelize.cpp updated: 1.18 -> 1.19
Steensgaard.cpp updated: 1.43 -> 1.44
---
Log message:
Add last four createXxxPass functions
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.21 llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.22
--- llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.21 Tue Dec 7 02:11:24 2004
+++ llvm/lib/Analysis/DataStructure/DataStructureAA.cpp Sun Jan 9 14:42:52 2005
@@ -14,6 +14,7 @@
#include "llvm/Module.h"
#include "llvm/Analysis/AliasAnalysis.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/DataStructure/DataStructure.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
using namespace llvm;
@@ -71,6 +72,8 @@
RegisterAnalysisGroup<AliasAnalysis, DSAA> Y;
}
+ModulePass *llvm::createDSAAPass() { return new DSAA(); }
+
// getGraphForValue - Return the DSGraph to use for queries about the specified
// value...
//
Index: llvm/lib/Analysis/DataStructure/DataStructureOpt.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructureOpt.cpp:1.8 llvm/lib/Analysis/DataStructure/DataStructureOpt.cpp:1.9
--- llvm/lib/Analysis/DataStructure/DataStructureOpt.cpp:1.8 Sun Sep 19 23:45:25 2004
+++ llvm/lib/Analysis/DataStructure/DataStructureOpt.cpp Sun Jan 9 14:42:52 2005
@@ -14,6 +14,7 @@
#include "llvm/Analysis/DataStructure/DataStructure.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Module.h"
#include "llvm/Constant.h"
#include "llvm/ADT/Statistic.h"
@@ -48,6 +49,8 @@
RegisterOpt<DSOpt> X("ds-opt", "DSA-based simple optimizations");
}
+ModulePass *llvm::createDSOptPass() { return new DSOpt(); }
+
/// OptimizeGlobals - This method uses information taken from DSA to optimize
/// global variables.
///
Index: llvm/lib/Analysis/DataStructure/Parallelize.cpp
diff -u llvm/lib/Analysis/DataStructure/Parallelize.cpp:1.18 llvm/lib/Analysis/DataStructure/Parallelize.cpp:1.19
--- llvm/lib/Analysis/DataStructure/Parallelize.cpp:1.18 Sun Sep 19 23:45:25 2004
+++ llvm/lib/Analysis/DataStructure/Parallelize.cpp Sun Jan 9 14:42:52 2005
@@ -42,6 +42,7 @@
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "PgmDependenceGraph.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/DataStructure/DataStructure.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
#include "llvm/Support/InstVisitor.h"
@@ -408,6 +409,8 @@
RegisterOpt<Parallelize> X("parallel", "Parallelize program using Cilk");
}
+ModulePass *llvm::createParallelizePass() { return new Parallelize(); }
+
bool Parallelize::runOnModule(Module& M) {
hash_set<Function*> parallelFunctions;
Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.43 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.44
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.43 Sun Sep 19 23:45:25 2004
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp Sun Jan 9 14:42:52 2005
@@ -17,6 +17,7 @@
#include "llvm/Analysis/DataStructure/DataStructure.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
#include "llvm/Analysis/AliasAnalysis.h"
+#include "llvm/Analysis/Passes.h"
#include "llvm/Module.h"
#include "llvm/Support/Debug.h"
using namespace llvm;
@@ -76,6 +77,8 @@
RegisterAnalysisGroup<AliasAnalysis, Steens> Y;
}
+ModulePass *llvm::createSteensgaardPass() { return new Steens(); }
+
/// ResolveFunctionCall - Resolve the actual arguments of a call to function F
/// with the specified call site descriptor. This function links the arguments
/// and the return value for the call site context-insensitively.
More information about the llvm-commits
mailing list