From 21fc51daa53ae31ab5590797c383ca1322e8797c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Nov 2003 05:05:34 +0000 Subject: [PATCH] Add methods for implementation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9963 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure.h | 10 ++++++++++ include/llvm/Analysis/DataStructure/DataStructure.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index 3e57af21318..3a04cd5add6 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -216,6 +216,16 @@ struct CompleteBUDataStructures : public BUDataStructures { // globals graph has been implemented in the BU pass) AU.addRequired(); } + + // print - Print out the analysis results... + void print(std::ostream &O, const Module *M) const; + +private: + unsigned calculateSCCGraphs(DSGraph &FG, std::vector &Stack, + unsigned &NextID, + hash_map &ValMap); + DSGraph &getOrCreateGraph(Function &F); + void processGraph(DSGraph &G); }; diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 3e57af21318..3a04cd5add6 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -216,6 +216,16 @@ struct CompleteBUDataStructures : public BUDataStructures { // globals graph has been implemented in the BU pass) AU.addRequired(); } + + // print - Print out the analysis results... + void print(std::ostream &O, const Module *M) const; + +private: + unsigned calculateSCCGraphs(DSGraph &FG, std::vector &Stack, + unsigned &NextID, + hash_map &ValMap); + DSGraph &getOrCreateGraph(Function &F); + void processGraph(DSGraph &G); };