mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Use DSNodeHandle for persistent maps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -43,7 +43,7 @@ public:
|
|||||||
// destination graph, you may optionally do this by specifying a map to record
|
// destination graph, you may optionally do this by specifying a map to record
|
||||||
// this into.
|
// this into.
|
||||||
DSGraph(const DSGraph &DSG);
|
DSGraph(const DSGraph &DSG);
|
||||||
DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNode*> &BUNodeMap);
|
DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNodeHandle> &NodeMap);
|
||||||
~DSGraph();
|
~DSGraph();
|
||||||
|
|
||||||
bool hasFunction() const { return Func != 0; }
|
bool hasFunction() const { return Func != 0; }
|
||||||
@ -138,7 +138,7 @@ public:
|
|||||||
//
|
//
|
||||||
DSNodeHandle cloneInto(const DSGraph &G,
|
DSNodeHandle cloneInto(const DSGraph &G,
|
||||||
std::map<Value*, DSNodeHandle> &OldValMap,
|
std::map<Value*, DSNodeHandle> &OldValMap,
|
||||||
std::map<const DSNode*, DSNode*> &OldNodeMap,
|
std::map<const DSNode*, DSNodeHandle> &OldNodeMap,
|
||||||
AllocaBit StripAllocas = KeepAllocaBit);
|
AllocaBit StripAllocas = KeepAllocaBit);
|
||||||
|
|
||||||
/// mergeInGraph - The method is used for merging graphs together. If the
|
/// mergeInGraph - The method is used for merging graphs together. If the
|
||||||
|
@ -198,7 +198,7 @@ public:
|
|||||||
|
|
||||||
/// remapLinks - Change all of the Links in the current node according to the
|
/// remapLinks - Change all of the Links in the current node according to the
|
||||||
/// specified mapping.
|
/// specified mapping.
|
||||||
void remapLinks(std::map<const DSNode*, DSNode*> &OldNodeMap);
|
void remapLinks(std::map<const DSNode*, DSNodeHandle> &OldNodeMap);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class DSNodeHandle;
|
friend class DSNodeHandle;
|
||||||
|
@ -43,7 +43,7 @@ public:
|
|||||||
// destination graph, you may optionally do this by specifying a map to record
|
// destination graph, you may optionally do this by specifying a map to record
|
||||||
// this into.
|
// this into.
|
||||||
DSGraph(const DSGraph &DSG);
|
DSGraph(const DSGraph &DSG);
|
||||||
DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNode*> &BUNodeMap);
|
DSGraph(const DSGraph &DSG, std::map<const DSNode*, DSNodeHandle> &NodeMap);
|
||||||
~DSGraph();
|
~DSGraph();
|
||||||
|
|
||||||
bool hasFunction() const { return Func != 0; }
|
bool hasFunction() const { return Func != 0; }
|
||||||
@ -138,7 +138,7 @@ public:
|
|||||||
//
|
//
|
||||||
DSNodeHandle cloneInto(const DSGraph &G,
|
DSNodeHandle cloneInto(const DSGraph &G,
|
||||||
std::map<Value*, DSNodeHandle> &OldValMap,
|
std::map<Value*, DSNodeHandle> &OldValMap,
|
||||||
std::map<const DSNode*, DSNode*> &OldNodeMap,
|
std::map<const DSNode*, DSNodeHandle> &OldNodeMap,
|
||||||
AllocaBit StripAllocas = KeepAllocaBit);
|
AllocaBit StripAllocas = KeepAllocaBit);
|
||||||
|
|
||||||
/// mergeInGraph - The method is used for merging graphs together. If the
|
/// mergeInGraph - The method is used for merging graphs together. If the
|
||||||
|
@ -198,7 +198,7 @@ public:
|
|||||||
|
|
||||||
/// remapLinks - Change all of the Links in the current node according to the
|
/// remapLinks - Change all of the Links in the current node according to the
|
||||||
/// specified mapping.
|
/// specified mapping.
|
||||||
void remapLinks(std::map<const DSNode*, DSNode*> &OldNodeMap);
|
void remapLinks(std::map<const DSNode*, DSNodeHandle> &OldNodeMap);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class DSNodeHandle;
|
friend class DSNodeHandle;
|
||||||
|
Reference in New Issue
Block a user