[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp EdgeProfiling.cpp EmitFunctions.cpp RSProfiling.cpp TraceBasicBlocks.cpp TraceValues.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 15:43:21 PDT 2006



Changes in directory llvm/lib/Transforms/Instrumentation:

BlockProfiling.cpp updated: 1.14 -> 1.15
EdgeProfiling.cpp updated: 1.6 -> 1.7
EmitFunctions.cpp updated: 1.24 -> 1.25
RSProfiling.cpp updated: 1.5 -> 1.6
TraceBasicBlocks.cpp updated: 1.14 -> 1.15
TraceValues.cpp updated: 1.75 -> 1.76
---
Log message:

eliminate RegisterOpt.  It does the same thing as RegisterPass.


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

 BlockProfiling.cpp   |    6 +++---
 EdgeProfiling.cpp    |    4 ++--
 EmitFunctions.cpp    |    2 +-
 RSProfiling.cpp      |    6 +++---
 TraceBasicBlocks.cpp |    2 +-
 TraceValues.cpp      |    4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)


Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.14 llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.15
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.14	Mon Nov 28 12:00:38 2005
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp	Sun Aug 27 17:42:52 2006
@@ -35,7 +35,7 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<FunctionProfiler> X("insert-function-profiling",
+  RegisterPass<FunctionProfiler> X("insert-function-profiling",
                                "Insert instrumentation for function profiling");
   RegisterAnalysisGroup<RSProfilers, FunctionProfiler> XG;
 
@@ -81,8 +81,8 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<BlockProfiler> Y("insert-block-profiling",
-                               "Insert instrumentation for block profiling");
+  RegisterPass<BlockProfiler> Y("insert-block-profiling",
+                                "Insert instrumentation for block profiling");
   RegisterAnalysisGroup<RSProfilers, BlockProfiler> YG;
 }
 


Index: llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.6 llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.7
--- llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.6	Thu Apr 21 18:40:46 2005
+++ llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp	Sun Aug 27 17:42:52 2006
@@ -33,8 +33,8 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<EdgeProfiler> X("insert-edge-profiling",
-                              "Insert instrumentation for edge profiling");
+  RegisterPass<EdgeProfiler> X("insert-edge-profiling",
+                               "Insert instrumentation for edge profiling");
 }
 
 ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); }


Index: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff -u llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.24 llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.25
--- llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.24	Sat Apr 23 16:38:35 2005
+++ llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp	Sun Aug 27 17:42:52 2006
@@ -40,7 +40,7 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<EmitFunctionTable>
+  RegisterPass<EmitFunctionTable>
   X("emitfuncs", "Emit a function table for the reoptimizer");
 }
 


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.5 llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.6
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.5	Wed May 24 12:04:04 2006
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp	Sun Aug 27 17:42:52 2006
@@ -87,7 +87,7 @@
   };
 
   static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
-  static RegisterOpt<NullProfilerRS> NP("insert-null-profiling-rs",
+  static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
 					"Measure profiling framework overhead");
   static RegisterAnalysisGroup<RSProfilers, NullProfilerRS, true> NPT;
 
@@ -160,8 +160,8 @@
     virtual void getAnalysisUsage(AnalysisUsage &AU) const;
   };
 
-  RegisterOpt<ProfilerRS> X("insert-rs-profiling-framework",
-			   "Insert random sampling instrumentation  framework");
+  RegisterPass<ProfilerRS> X("insert-rs-profiling-framework",
+			   "Insert random sampling instrumentation framework");
 }
 
 //Local utilities


Index: llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.14 llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.15
--- llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.14	Sun Jan 22 16:53:01 2006
+++ llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp	Sun Aug 27 17:42:52 2006
@@ -31,7 +31,7 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<TraceBasicBlocks> X("trace-basic-blocks",
+  RegisterPass<TraceBasicBlocks> X("trace-basic-blocks",
                               "Insert instrumentation for basic block tracing");
 }
 


Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.75 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.76
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.75	Sat Oct 22 23:37:20 2005
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp	Sun Aug 27 17:42:52 2006
@@ -104,8 +104,8 @@
   };
 
   // Register the passes...
-  RegisterOpt<FunctionTracer>  X("tracem","Insert Function trace code only");
-  RegisterOpt<BasicBlockTracer> Y("trace","Insert BB and Function trace code");
+  RegisterPass<FunctionTracer>  X("tracem","Insert Function trace code only");
+  RegisterPass<BasicBlockTracer> Y("trace","Insert BB and Function trace code");
 } // end anonymous namespace
 
 /// Just trace functions






More information about the llvm-commits mailing list