diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-03 21:27:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-03 21:27:48 +0000 |
commit | c875f023d41f60efc79647e9c2dd44ab0c8c03ca (patch) | |
tree | 5718718ddb016611404b49fc1537150a24592b90 /include | |
parent | d18f342af8c716a88917ef2694f798d67109801d (diff) | |
download | llvm-c875f023d41f60efc79647e9c2dd44ab0c8c03ca.tar.gz llvm-c875f023d41f60efc79647e9c2dd44ab0c8c03ca.tar.bz2 llvm-c875f023d41f60efc79647e9c2dd44ab0c8c03ca.tar.xz |
Rename ValueMap to ScalarMap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DSGraph.h | 22 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 22 |
2 files changed, 22 insertions, 22 deletions
diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index c84c0e3386..278576f8ad 100644 --- a/include/llvm/Analysis/DSGraph.h +++ b/include/llvm/Analysis/DSGraph.h @@ -16,7 +16,7 @@ class DSGraph { Function *Func; std::vector<DSNode*> Nodes; DSNodeHandle RetNode; // Node that gets returned... - std::map<Value*, DSNodeHandle> ValueMap; + std::map<Value*, DSNodeHandle> ScalarMap; #if 0 // GlobalsGraph -- Reference to the common graph of globally visible objects. @@ -58,11 +58,11 @@ public: /// void addNode(DSNode *N) { Nodes.push_back(N); } - /// getValueMap - Get a map that describes what the nodes the scalars in this + /// getScalarMap - Get a map that describes what the nodes the scalars in this /// function point to... /// - std::map<Value*, DSNodeHandle> &getValueMap() { return ValueMap; } - const std::map<Value*, DSNodeHandle> &getValueMap() const { return ValueMap;} + std::map<Value*, DSNodeHandle> &getScalarMap() { return ScalarMap; } + const std::map<Value*, DSNodeHandle> &getScalarMap() const {return ScalarMap;} std::vector<DSCallSite> &getFunctionCalls() { return FunctionCalls; @@ -74,7 +74,7 @@ public: /// getNodeForValue - Given a value that is used or defined in the body of the /// current function, return the DSNode that it points to. /// - DSNodeHandle &getNodeForValue(Value *V) { return ValueMap[V]; } + DSNodeHandle &getNodeForValue(Value *V) { return ScalarMap[V]; } const DSNodeHandle &getRetNode() const { return RetNode; } DSNodeHandle &getRetNode() { return RetNode; } @@ -119,10 +119,10 @@ public: void removeDeadNodes(bool KeepAllGlobals = false, bool KeepCalls = true); // cloneInto - Clone the specified DSGraph into the current graph, returning - // the Return node of the graph. The translated ValueMap for the old function - // is filled into the OldValMap member. - // If StripScalars (StripAllocas) is set to true, Scalar (Alloca) markers - // are removed from the graph as the graph is being cloned. + // the Return node of the graph. The translated ScalarMap for the old + // function is filled into the OldValMap member. If StripScalars + // (StripAllocas) is set to true, Scalar (Alloca) markers are removed from the + // graph as the graph is being cloned. // DSNodeHandle cloneInto(const DSGraph &G, std::map<Value*, DSNodeHandle> &OldValMap, @@ -135,8 +135,8 @@ public: // DSNode* cloneGlobalInto(const DSNode* GNode); DSNode* cloneGlobalInto(GlobalValue* GV) { - assert(!GV || (((DSGraph*) GlobalsGraph)->ValueMap[GV] != 0)); - return GV? cloneGlobalInto(((DSGraph*) GlobalsGraph)->ValueMap[GV]) : 0; + assert(!GV || (((DSGraph*) GlobalsGraph)->ScalarMap[GV] != 0)); + return GV? cloneGlobalInto(((DSGraph*) GlobalsGraph)->ScalarMap[GV]) : 0; } #endif diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index c84c0e3386..278576f8ad 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -16,7 +16,7 @@ class DSGraph { Function *Func; std::vector<DSNode*> Nodes; DSNodeHandle RetNode; // Node that gets returned... - std::map<Value*, DSNodeHandle> ValueMap; + std::map<Value*, DSNodeHandle> ScalarMap; #if 0 // GlobalsGraph -- Reference to the common graph of globally visible objects. @@ -58,11 +58,11 @@ public: /// void addNode(DSNode *N) { Nodes.push_back(N); } - /// getValueMap - Get a map that describes what the nodes the scalars in this + /// getScalarMap - Get a map that describes what the nodes the scalars in this /// function point to... /// - std::map<Value*, DSNodeHandle> &getValueMap() { return ValueMap; } - const std::map<Value*, DSNodeHandle> &getValueMap() const { return ValueMap;} + std::map<Value*, DSNodeHandle> &getScalarMap() { return ScalarMap; } + const std::map<Value*, DSNodeHandle> &getScalarMap() const {return ScalarMap;} std::vector<DSCallSite> &getFunctionCalls() { return FunctionCalls; @@ -74,7 +74,7 @@ public: /// getNodeForValue - Given a value that is used or defined in the body of the /// current function, return the DSNode that it points to. /// - DSNodeHandle &getNodeForValue(Value *V) { return ValueMap[V]; } + DSNodeHandle &getNodeForValue(Value *V) { return ScalarMap[V]; } const DSNodeHandle &getRetNode() const { return RetNode; } DSNodeHandle &getRetNode() { return RetNode; } @@ -119,10 +119,10 @@ public: void removeDeadNodes(bool KeepAllGlobals = false, bool KeepCalls = true); // cloneInto - Clone the specified DSGraph into the current graph, returning - // the Return node of the graph. The translated ValueMap for the old function - // is filled into the OldValMap member. - // If StripScalars (StripAllocas) is set to true, Scalar (Alloca) markers - // are removed from the graph as the graph is being cloned. + // the Return node of the graph. The translated ScalarMap for the old + // function is filled into the OldValMap member. If StripScalars + // (StripAllocas) is set to true, Scalar (Alloca) markers are removed from the + // graph as the graph is being cloned. // DSNodeHandle cloneInto(const DSGraph &G, std::map<Value*, DSNodeHandle> &OldValMap, @@ -135,8 +135,8 @@ public: // DSNode* cloneGlobalInto(const DSNode* GNode); DSNode* cloneGlobalInto(GlobalValue* GV) { - assert(!GV || (((DSGraph*) GlobalsGraph)->ValueMap[GV] != 0)); - return GV? cloneGlobalInto(((DSGraph*) GlobalsGraph)->ValueMap[GV]) : 0; + assert(!GV || (((DSGraph*) GlobalsGraph)->ScalarMap[GV] != 0)); + return GV? cloneGlobalInto(((DSGraph*) GlobalsGraph)->ScalarMap[GV]) : 0; } #endif |