mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
Remove GlobalDSGraph delcaration
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d55d502639
commit
24b3a880df
@ -14,9 +14,6 @@
|
||||
class Type;
|
||||
class DSGraph;
|
||||
class DSNode;
|
||||
class LocalDataStructures; // A collection of local graphs for a program
|
||||
class BUDataStructures; // A collection of bu graphs for a program
|
||||
class TDDataStructures; // A collection of td graphs for a program
|
||||
|
||||
// FIXME: move this stuff to a private header
|
||||
namespace DataStructureAnalysis {
|
||||
@ -60,6 +57,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// BUDataStructures - The analysis that computes the interprocedurally closed
|
||||
// data structure graphs for all of the functions in the program. This pass
|
||||
// only performs a "Bottom Up" propagation (hence the name).
|
||||
@ -93,6 +91,7 @@ private:
|
||||
DSGraph &calculateGraph(Function &F);
|
||||
};
|
||||
|
||||
|
||||
// TDDataStructures - Analysis that computes new data structure graphs
|
||||
// for each function using the closed graphs for the callers computed
|
||||
// by the bottom-up pass.
|
||||
@ -131,32 +130,4 @@ private:
|
||||
void ResolveCallSite(DSGraph &Graph, const DSCallSite &CallSite);
|
||||
};
|
||||
|
||||
#if 0
|
||||
// GlobalDSGraph - A common graph for all the globals and their outgoing links
|
||||
// to externally visible nodes. This includes GlobalValues, New nodes,
|
||||
// Cast nodes, and Calls. This graph can only be used by one of the
|
||||
// individual function graphs, and it goes away when they all go away.
|
||||
//
|
||||
class GlobalDSGraph : public DSGraph {
|
||||
hash_set<const DSGraph*> Referrers;
|
||||
void addReference(const DSGraph* referrer);
|
||||
void removeReference(const DSGraph* referrer);
|
||||
friend class DSGraph; // give access to Referrers
|
||||
|
||||
GlobalDSGraph(const GlobalDSGraph &GlobalDSG); // Do not implement
|
||||
|
||||
// Helper function for cloneGlobals and cloneCalls
|
||||
DSNode* cloneNodeInto(DSNode *OldNode,
|
||||
std::map<const DSNode*, DSNode*> &NodeCache,
|
||||
bool GlobalsAreFinal = false);
|
||||
|
||||
public:
|
||||
GlobalDSGraph(); // Create an empty DSGraph
|
||||
virtual ~GlobalDSGraph();
|
||||
|
||||
void cloneGlobals(DSGraph& Graph, bool CloneCalls = false);
|
||||
void cloneCalls (DSGraph& Graph);
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -14,9 +14,6 @@
|
||||
class Type;
|
||||
class DSGraph;
|
||||
class DSNode;
|
||||
class LocalDataStructures; // A collection of local graphs for a program
|
||||
class BUDataStructures; // A collection of bu graphs for a program
|
||||
class TDDataStructures; // A collection of td graphs for a program
|
||||
|
||||
// FIXME: move this stuff to a private header
|
||||
namespace DataStructureAnalysis {
|
||||
@ -60,6 +57,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// BUDataStructures - The analysis that computes the interprocedurally closed
|
||||
// data structure graphs for all of the functions in the program. This pass
|
||||
// only performs a "Bottom Up" propagation (hence the name).
|
||||
@ -93,6 +91,7 @@ private:
|
||||
DSGraph &calculateGraph(Function &F);
|
||||
};
|
||||
|
||||
|
||||
// TDDataStructures - Analysis that computes new data structure graphs
|
||||
// for each function using the closed graphs for the callers computed
|
||||
// by the bottom-up pass.
|
||||
@ -131,32 +130,4 @@ private:
|
||||
void ResolveCallSite(DSGraph &Graph, const DSCallSite &CallSite);
|
||||
};
|
||||
|
||||
#if 0
|
||||
// GlobalDSGraph - A common graph for all the globals and their outgoing links
|
||||
// to externally visible nodes. This includes GlobalValues, New nodes,
|
||||
// Cast nodes, and Calls. This graph can only be used by one of the
|
||||
// individual function graphs, and it goes away when they all go away.
|
||||
//
|
||||
class GlobalDSGraph : public DSGraph {
|
||||
hash_set<const DSGraph*> Referrers;
|
||||
void addReference(const DSGraph* referrer);
|
||||
void removeReference(const DSGraph* referrer);
|
||||
friend class DSGraph; // give access to Referrers
|
||||
|
||||
GlobalDSGraph(const GlobalDSGraph &GlobalDSG); // Do not implement
|
||||
|
||||
// Helper function for cloneGlobals and cloneCalls
|
||||
DSNode* cloneNodeInto(DSNode *OldNode,
|
||||
std::map<const DSNode*, DSNode*> &NodeCache,
|
||||
bool GlobalsAreFinal = false);
|
||||
|
||||
public:
|
||||
GlobalDSGraph(); // Create an empty DSGraph
|
||||
virtual ~GlobalDSGraph();
|
||||
|
||||
void cloneGlobals(DSGraph& Graph, bool CloneCalls = false);
|
||||
void cloneCalls (DSGraph& Graph);
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user