From cf69bb494af86c2dd12ca3899e45c3fda8f15a20 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Nov 2002 21:34:34 +0000 Subject: [PATCH] Almost complete rewrite of BU closure code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4693 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure.h | 16 +++++++++++++++- .../llvm/Analysis/DataStructure/DataStructure.h | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index 930b58df599..7f9df0a30db 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -102,10 +102,24 @@ public: AU.addRequired(); } private: - DSGraph &calculateGraph(Function &F, unsigned Indent); + DSGraph &calculateGraph(Function &F); + DSGraph &calculateSCCGraph(Function &F, + std::set &InlinedSCCFunctions); + void calculateReachableGraphs(Function *F); + + + DSGraph &getOrCreateGraph(Function *F); + + unsigned calculateGraphs(Function *F, std::vector &Stack, + unsigned &NextID, + std::map &ValMap); + + + /* bool ResolveFunctionCalls(DSGraph &G, unsigned &FirstResolvableCall, std::map &InProcess, unsigned Indent); + */ }; diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 930b58df599..7f9df0a30db 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -102,10 +102,24 @@ public: AU.addRequired(); } private: - DSGraph &calculateGraph(Function &F, unsigned Indent); + DSGraph &calculateGraph(Function &F); + DSGraph &calculateSCCGraph(Function &F, + std::set &InlinedSCCFunctions); + void calculateReachableGraphs(Function *F); + + + DSGraph &getOrCreateGraph(Function *F); + + unsigned calculateGraphs(Function *F, std::vector &Stack, + unsigned &NextID, + std::map &ValMap); + + + /* bool ResolveFunctionCalls(DSGraph &G, unsigned &FirstResolvableCall, std::map &InProcess, unsigned Indent); + */ };