mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Add new flag, other minor modifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -240,18 +240,19 @@ public:
|
|||||||
DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
|
DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
|
||||||
StripModRefBits = 1 << 3, KeepModRefBits = 0,
|
StripModRefBits = 1 << 3, KeepModRefBits = 0,
|
||||||
StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0,
|
StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0,
|
||||||
|
UpdateInlinedGlobals = 1 << 5, DontUpdateInlinedGlobals = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void cloneReachableNodes(const DSNode* Node, unsigned BitsToClear,
|
void cloneReachableNodes(const DSNode* Node, unsigned BitsToClear,
|
||||||
NodeMapTy& OldNodeMap);
|
NodeMapTy& OldNodeMap, GlobalSetTy &Globals);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void updateFromGlobalGraph();
|
void updateFromGlobalGraph();
|
||||||
|
|
||||||
void cloneReachableSubgraph(const DSGraph& G,
|
void cloneReachableSubgraph(const DSGraph &G,
|
||||||
const hash_set<const DSNode*>& RootNodes,
|
hash_set<const DSNode*> &RootNodes,
|
||||||
NodeMapTy& OldNodeMap,
|
NodeMapTy &OldNodeMap,
|
||||||
unsigned CloneFlags = 0);
|
unsigned CloneFlags = 0);
|
||||||
|
|
||||||
|
|
||||||
@ -289,7 +290,8 @@ public:
|
|||||||
///
|
///
|
||||||
/// The CloneFlags member controls various aspects of the cloning process.
|
/// The CloneFlags member controls various aspects of the cloning process.
|
||||||
///
|
///
|
||||||
void clonePartiallyInto(const DSGraph &G, Function &F, const DSNodeHandle &RetVal,
|
void clonePartiallyInto(const DSGraph &G, Function &F,
|
||||||
|
const DSNodeHandle &RetVal,
|
||||||
const ScalarMapTy &ValBindings, NodeMapTy &OldNodeMap,
|
const ScalarMapTy &ValBindings, NodeMapTy &OldNodeMap,
|
||||||
unsigned CloneFlags = 0);
|
unsigned CloneFlags = 0);
|
||||||
|
|
||||||
|
@ -240,18 +240,19 @@ public:
|
|||||||
DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
|
DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
|
||||||
StripModRefBits = 1 << 3, KeepModRefBits = 0,
|
StripModRefBits = 1 << 3, KeepModRefBits = 0,
|
||||||
StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0,
|
StripIncompleteBit = 1 << 4, KeepIncompleteBit = 0,
|
||||||
|
UpdateInlinedGlobals = 1 << 5, DontUpdateInlinedGlobals = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void cloneReachableNodes(const DSNode* Node, unsigned BitsToClear,
|
void cloneReachableNodes(const DSNode* Node, unsigned BitsToClear,
|
||||||
NodeMapTy& OldNodeMap);
|
NodeMapTy& OldNodeMap, GlobalSetTy &Globals);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void updateFromGlobalGraph();
|
void updateFromGlobalGraph();
|
||||||
|
|
||||||
void cloneReachableSubgraph(const DSGraph& G,
|
void cloneReachableSubgraph(const DSGraph &G,
|
||||||
const hash_set<const DSNode*>& RootNodes,
|
hash_set<const DSNode*> &RootNodes,
|
||||||
NodeMapTy& OldNodeMap,
|
NodeMapTy &OldNodeMap,
|
||||||
unsigned CloneFlags = 0);
|
unsigned CloneFlags = 0);
|
||||||
|
|
||||||
|
|
||||||
@ -289,7 +290,8 @@ public:
|
|||||||
///
|
///
|
||||||
/// The CloneFlags member controls various aspects of the cloning process.
|
/// The CloneFlags member controls various aspects of the cloning process.
|
||||||
///
|
///
|
||||||
void clonePartiallyInto(const DSGraph &G, Function &F, const DSNodeHandle &RetVal,
|
void clonePartiallyInto(const DSGraph &G, Function &F,
|
||||||
|
const DSNodeHandle &RetVal,
|
||||||
const ScalarMapTy &ValBindings, NodeMapTy &OldNodeMap,
|
const ScalarMapTy &ValBindings, NodeMapTy &OldNodeMap,
|
||||||
unsigned CloneFlags = 0);
|
unsigned CloneFlags = 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user