diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-19 22:12:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-19 22:12:33 +0000 |
commit | ed53fe9945e527570206d419e74e4561da3761cc (patch) | |
tree | fd861b238b851e9ce1c14ffd0133a34261bd40c6 /include/llvm/Analysis/DataStructure/EquivClassGraphs.h | |
parent | ce325fdb87b029cdc6fc21088e40648cfb68ce54 (diff) |
Each DS collection now contains an equivalence class of globals values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/EquivClassGraphs.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/EquivClassGraphs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index d0e4265db0..5b0a2206d6 100644 --- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h @@ -16,9 +16,7 @@ #include "llvm/Analysis/DataStructure/DataStructure.h" #include "llvm/Analysis/DataStructure/DSGraph.h" -#include "llvm/ADT/EquivalenceClasses.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/ADT/hash_map" #include <vector> #include <map> @@ -52,6 +50,10 @@ namespace llvm { /// a call site. std::map<DSNode*, Function *> OneCalledFunction; + /// GlobalECs - The equivalence classes for each global value that is merged + /// with other global values in the DSGraphs. + EquivalenceClasses<GlobalValue*> GlobalECs; + public: /// EquivClassGraphs - Computes the equivalence classes and then the /// folded DS graphs for each class. @@ -62,6 +64,8 @@ namespace llvm { /// void print(std::ostream &O, const Module *M) const; + EquivalenceClasses<GlobalValue*> &getGlobalECs() { return GlobalECs; } + /// getDSGraph - Return the data structure graph for the specified function. /// This returns the folded graph. The folded graph is the same as the CBU /// graph iff the function is in a singleton equivalence class AND all its |