Lines Matching defs:GVMap
57 GVMapTy GVMap;
74 // of original global variable and its clone is placed in the GVMap for later
89 GVMap[GV] = NewGV;
95 if (GVMap.empty()) {
100 // of original global variables in GVMap with a use of the corresponding
101 // copies in GVMap. If necessary, promote constants to instructions.
123 // Copy GVMap over to a standard value map.
125 for (auto I = GVMap.begin(), E = GVMap.end(); I != E; ++I)
129 // original global variables in GVMap with a use of the corresponding copies
130 // in GVMap. The copies need to be bitcast to the original global variable
132 for (GVMapTy::iterator I = GVMap.begin(), E = GVMap.end(); I != E;) {
139 GVMap.erase(I);
151 assert(GVMap.empty() && "Expected it to be empty by now");
167 // If the constant C is a global variable and is found in GVMap, substitute
169 // addrspacecast GVMap[C] to addrspace(0)
172 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C));
173 if (I != GVMap.end()) {
181 // variable in GVMap, the constant C needs to be reconstructed, using a set
186 // in GVMap, the constant expression C needs to be reconstructed, using a
201 // Check if any element is or uses a global variable in GVMap, and thus
240 // Check if any operand is or uses a global variable in GVMap, and thus