Lines Matching defs:GVMap
51 GVMapTy GVMap;
59 // of original global variable and its clone is placed in the GVMap for later
72 GVMap[&GV] = NewGV;
78 if (GVMap.empty()) {
83 // of original global variables in GVMap with a use of the corresponding
84 // copies in GVMap. If necessary, promote constants to instructions.
104 // Copy GVMap over to a standard value map.
106 for (auto I = GVMap.begin(), E = GVMap.end(); I != E; ++I)
110 // original global variables in GVMap with a use of the corresponding copies
111 // in GVMap. The copies need to be bitcast to the original global variable
113 for (GVMapTy::iterator I = GVMap.begin(), E = GVMap.end(); I != E;) {
120 GVMap.erase(I);
132 assert(GVMap.empty() && "Expected it to be empty by now");
148 // If the constant C is a global variable and is found in GVMap, substitute
150 // addrspacecast GVMap[C] to addrspace(0)
153 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C));
154 if (I != GVMap.end()) {
162 // variable in GVMap, the constant C needs to be reconstructed, using a set
167 // in GVMap, the constant expression C needs to be reconstructed, using a
182 // Check if any element is or uses a global variable in GVMap, and thus
221 // Check if any operand is or uses a global variable in GVMap, and thus