[llvm-commits] CVS: llvm/lib/Analysis/CFGPrinter.cpp InstCount.cpp IntervalPartition.cpp LoopInfo.cpp PostDominators.cpp ScalarEvolution.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 15:30:37 PDT 2006



Changes in directory llvm/lib/Analysis:

CFGPrinter.cpp updated: 1.16 -> 1.17
InstCount.cpp updated: 1.14 -> 1.15
IntervalPartition.cpp updated: 1.31 -> 1.32
LoopInfo.cpp updated: 1.76 -> 1.77
PostDominators.cpp updated: 1.57 -> 1.58
ScalarEvolution.cpp updated: 1.50 -> 1.51
---
Log message:

Eliminate RegisterAnalysis.  RegisterPass now does all that is necessary.


---
Diffs of the changes:  (+13 -13)

 CFGPrinter.cpp        |    6 +++---
 InstCount.cpp         |    4 ++--
 IntervalPartition.cpp |    2 +-
 LoopInfo.cpp          |    2 +-
 PostDominators.cpp    |   10 +++++-----
 ScalarEvolution.cpp   |    2 +-
 6 files changed, 13 insertions(+), 13 deletions(-)


Index: llvm/lib/Analysis/CFGPrinter.cpp
diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.16 llvm/lib/Analysis/CFGPrinter.cpp:1.17
--- llvm/lib/Analysis/CFGPrinter.cpp:1.16	Tue Jun 27 11:49:46 2006
+++ llvm/lib/Analysis/CFGPrinter.cpp	Sun Aug 27 17:30:17 2006
@@ -109,8 +109,8 @@
     }
   };
 
-  RegisterAnalysis<CFGPrinter> P1("print-cfg",
-                                  "Print CFG of function to 'dot' file");
+  RegisterPass<CFGPrinter> P1("print-cfg",
+                              "Print CFG of function to 'dot' file");
 
   struct CFGOnlyPrinter : public CFGPrinter {
     virtual bool runOnFunction(Function &F) {
@@ -127,7 +127,7 @@
     }
   };
 
-  RegisterAnalysis<CFGOnlyPrinter>
+  RegisterPass<CFGOnlyPrinter>
   P2("print-cfg-only",
      "Print CFG of function to 'dot' file (with no function bodies)");
 }


Index: llvm/lib/Analysis/InstCount.cpp
diff -u llvm/lib/Analysis/InstCount.cpp:1.14 llvm/lib/Analysis/InstCount.cpp:1.15
--- llvm/lib/Analysis/InstCount.cpp:1.14	Sun Jan 22 17:19:18 2006
+++ llvm/lib/Analysis/InstCount.cpp	Sun Aug 27 17:30:17 2006
@@ -55,8 +55,8 @@
 
   };
 
-  RegisterAnalysis<InstCount> X("instcount",
-                                "Counts the various types of Instructions");
+  RegisterPass<InstCount> X("instcount",
+                            "Counts the various types of Instructions");
 }
 
 FunctionPass *llvm::createInstCountPass() { return new InstCount(); }


Index: llvm/lib/Analysis/IntervalPartition.cpp
diff -u llvm/lib/Analysis/IntervalPartition.cpp:1.31 llvm/lib/Analysis/IntervalPartition.cpp:1.32
--- llvm/lib/Analysis/IntervalPartition.cpp:1.31	Tue Apr 26 09:48:28 2005
+++ llvm/lib/Analysis/IntervalPartition.cpp	Sun Aug 27 17:30:17 2006
@@ -15,7 +15,7 @@
 #include "llvm/Analysis/IntervalIterator.h"
 using namespace llvm;
 
-static RegisterAnalysis<IntervalPartition>
+static RegisterPass<IntervalPartition>
 X("intervals", "Interval Partition Construction", true);
 
 //===----------------------------------------------------------------------===//


Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.76 llvm/lib/Analysis/LoopInfo.cpp:1.77
--- llvm/lib/Analysis/LoopInfo.cpp:1.76	Sat Aug 12 00:02:03 2006
+++ llvm/lib/Analysis/LoopInfo.cpp	Sun Aug 27 17:30:17 2006
@@ -25,7 +25,7 @@
 #include <iostream>
 using namespace llvm;
 
-static RegisterAnalysis<LoopInfo>
+static RegisterPass<LoopInfo>
 X("loops", "Natural Loop Construction", true);
 
 //===----------------------------------------------------------------------===//


Index: llvm/lib/Analysis/PostDominators.cpp
diff -u llvm/lib/Analysis/PostDominators.cpp:1.57 llvm/lib/Analysis/PostDominators.cpp:1.58
--- llvm/lib/Analysis/PostDominators.cpp:1.57	Wed Jun  7 17:00:26 2006
+++ llvm/lib/Analysis/PostDominators.cpp	Sun Aug 27 17:30:17 2006
@@ -23,7 +23,7 @@
 //  ImmediatePostDominators Implementation
 //===----------------------------------------------------------------------===//
 
-static RegisterAnalysis<ImmediatePostDominators>
+static RegisterPass<ImmediatePostDominators>
 D("postidom", "Immediate Post-Dominators Construction", true);
 
 unsigned ImmediatePostDominators::DFSPass(BasicBlock *V, InfoRec &VInfo,
@@ -145,7 +145,7 @@
 //  PostDominatorSet Implementation
 //===----------------------------------------------------------------------===//
 
-static RegisterAnalysis<PostDominatorSet>
+static RegisterPass<PostDominatorSet>
 B("postdomset", "Post-Dominator Set Construction", true);
 
 // Postdominator set construction.  This converts the specified function to only
@@ -212,7 +212,7 @@
 //  PostDominatorTree Implementation
 //===----------------------------------------------------------------------===//
 
-static RegisterAnalysis<PostDominatorTree>
+static RegisterPass<PostDominatorTree>
 F("postdomtree", "Post-Dominator Tree Construction", true);
 
 DominatorTreeBase::Node *PostDominatorTree::getNodeForBlock(BasicBlock *BB) {
@@ -258,7 +258,7 @@
 // PostETForest Implementation
 //===----------------------------------------------------------------------===//
 
-static RegisterAnalysis<PostETForest>
+static RegisterPass<PostETForest>
 G("postetforest", "Post-ET-Forest Construction", true);
 
 ETNode *PostETForest::getNodeForBlock(BasicBlock *BB) {
@@ -322,7 +322,7 @@
 //  PostDominanceFrontier Implementation
 //===----------------------------------------------------------------------===//
 
-static RegisterAnalysis<PostDominanceFrontier>
+static RegisterPass<PostDominanceFrontier>
 H("postdomfrontier", "Post-Dominance Frontier Construction", true);
 
 const DominanceFrontier::DomSetType &


Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.50 llvm/lib/Analysis/ScalarEvolution.cpp:1.51
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.50	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Analysis/ScalarEvolution.cpp	Sun Aug 27 17:30:17 2006
@@ -80,7 +80,7 @@
 using namespace llvm;
 
 namespace {
-  RegisterAnalysis<ScalarEvolution>
+  RegisterPass<ScalarEvolution>
   R("scalar-evolution", "Scalar Evolution Analysis");
 
   Statistic<>






More information about the llvm-commits mailing list