Almost complete rewrite of BU closure code
authorChris Lattner <sabre@nondot.org>
Mon, 11 Nov 2002 21:34:34 +0000 (21:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Nov 2002 21:34:34 +0000 (21:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4693 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure.h
include/llvm/Analysis/DataStructure/DataStructure.h

index 930b58df599f51e614536cc8e5069e254a83f334..7f9df0a30db632c2daf902c33adf16895fd532a3 100644 (file)
@@ -102,10 +102,24 @@ public:
     AU.addRequired<LocalDataStructures>();
   }
 private:
-  DSGraph &calculateGraph(Function &F, unsigned Indent);
+  DSGraph &calculateGraph(Function &F);
+  DSGraph &calculateSCCGraph(Function &F,
+                             std::set<Function*> &InlinedSCCFunctions);
+  void calculateReachableGraphs(Function *F);
+
+
+  DSGraph &getOrCreateGraph(Function *F);
+
+  unsigned calculateGraphs(Function *F, std::vector<Function*> &Stack,
+                           unsigned &NextID, 
+                           std::map<Function*, unsigned> &ValMap);
+
+
+  /*
   bool ResolveFunctionCalls(DSGraph &G, unsigned &FirstResolvableCall,
                             std::map<Function*, DSCallSite> &InProcess,
                             unsigned Indent);
+  */
 };
 
 
index 930b58df599f51e614536cc8e5069e254a83f334..7f9df0a30db632c2daf902c33adf16895fd532a3 100644 (file)
@@ -102,10 +102,24 @@ public:
     AU.addRequired<LocalDataStructures>();
   }
 private:
-  DSGraph &calculateGraph(Function &F, unsigned Indent);
+  DSGraph &calculateGraph(Function &F);
+  DSGraph &calculateSCCGraph(Function &F,
+                             std::set<Function*> &InlinedSCCFunctions);
+  void calculateReachableGraphs(Function *F);
+
+
+  DSGraph &getOrCreateGraph(Function *F);
+
+  unsigned calculateGraphs(Function *F, std::vector<Function*> &Stack,
+                           unsigned &NextID, 
+                           std::map<Function*, unsigned> &ValMap);
+
+
+  /*
   bool ResolveFunctionCalls(DSGraph &G, unsigned &FirstResolvableCall,
                             std::map<Function*, DSCallSite> &InProcess,
                             unsigned Indent);
+  */
 };