[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp Graph.cpp GraphAuxillary.cpp ProfilePaths.cpp RetracePath.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 14 16:35:00 PST 2003


Changes in directory llvm/lib/Transforms/Instrumentation/ProfilePaths:

EdgeCode.cpp updated: 1.17 -> 1.18
Graph.cpp updated: 1.7 -> 1.8
GraphAuxillary.cpp updated: 1.13 -> 1.14
ProfilePaths.cpp updated: 1.23 -> 1.24
RetracePath.cpp updated: 1.1 -> 1.2

---
Log message:

Clean up #includes
Move graph.h into local directory


---
Diffs of the changes:

Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.17 llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.18
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp:1.17	Fri Sep 20 11:43:38 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp	Tue Jan 14 16:33:56 2003
@@ -7,7 +7,7 @@
 //top block of cfg
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
+#include "Graph.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
@@ -16,7 +16,6 @@
 #include "llvm/iOperators.h"
 #include "llvm/iPHINode.h"
 #include "llvm/Module.h"
-#include "llvm/Instruction.h"
 #include <stdio.h>
 
 #define INSERT_LOAD_COUNT


Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp:1.7 llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp:1.8
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp:1.7	Tue Oct  1 17:38:37 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp	Tue Jan 14 16:33:56 2003
@@ -5,14 +5,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
+#include "Graph.h"
 #include "llvm/iTerminators.h"
-#include "llvm/BasicBlock.h"
 #include "Support/Statistic.h"
 #include <algorithm>
 
-//using std::list;
-//using std::set;
 using std::map;
 using std::vector;
 using std::cerr;


Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.13 llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.14
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.13	Tue Oct  1 17:38:37 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp	Tue Jan 14 16:33:56 2003
@@ -7,12 +7,12 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Pass.h"
 #include "llvm/Module.h"
 #include "llvm/iTerminators.h"
 #include "Support/Statistic.h"
 #include <algorithm>
+#include "Graph.h"
 
 //using std::list;
 using std::map;


Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.23 llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.24
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.23	Fri Nov  8 18:49:30 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp	Tue Jan 14 16:33:56 2003
@@ -24,16 +24,13 @@
 // update can be collapsed into minimum number of edges.
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/ProfilePaths.h"
 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Support/CFG.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
-#include "llvm/GlobalVariable.h"
 #include "llvm/Module.h"
-#include <iostream>
+#include "Graph.h"
 #include <fstream>
 
 using std::vector;
@@ -50,13 +47,6 @@
 };
 
 static RegisterOpt<ProfilePaths> X("paths", "Profile Paths");
-
-// createProfilePathsPass - Create a new pass to add path profiling
-//
-Pass *createProfilePathsPass() {
-  return new ProfilePaths();
-}
-
 
 static Node *findBB(std::vector<Node *> &st, BasicBlock *BB){
   for(std::vector<Node *>::iterator si=st.begin(); si!=st.end(); ++si){


Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.1 llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.2
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp:1.1	Tue Sep 17 22:55:26 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp	Tue Jan 14 16:33:56 2003
@@ -4,17 +4,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Module.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/iTerminators.h"
-#include "llvm/Support/CFG.h"
-#include "llvm/Function.h"
 #include "llvm/iOther.h"
-#include "Support/Casting.h"
-#include <iostream>
-#include <vector>
-#include <map>
+#include "llvm/Support/CFG.h"
+#include "Graph.h"
 
 using std::vector;
 using std::map;





More information about the llvm-commits mailing list