Lines Matching refs:VMap
116 ValueToValueMapTy *VMap) { in cloneFunctionDecl() argument
123 if (VMap) { in cloneFunctionDecl()
124 (*VMap)[&F] = NewF; in cloneFunctionDecl()
128 (*VMap)[&*ArgI] = &*NewArgI; in cloneFunctionDecl()
134 void moveFunctionBody(Function &OrigF, ValueToValueMapTy &VMap, in moveFunctionBody() argument
139 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody()
141 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody()
148 CloneFunctionInto(NewF, &OrigF, VMap, /*ModuleLevelChanges=*/true, Returns, in moveFunctionBody()
154 ValueToValueMapTy *VMap) { in cloneGlobalVariableDecl() argument
161 if (VMap) in cloneGlobalVariableDecl()
162 (*VMap)[&GV] = NewGV; in cloneGlobalVariableDecl()
167 ValueToValueMapTy &VMap, in moveGlobalVariableInitializer() argument
172 NewGV = cast<GlobalVariable>(VMap[&OrigGV]); in moveGlobalVariableInitializer()
174 assert(VMap[&OrigGV] == NewGV && in moveGlobalVariableInitializer()
180 NewGV->setInitializer(MapValue(OrigGV.getInitializer(), VMap, RF_None, in moveGlobalVariableInitializer()
185 ValueToValueMapTy &VMap) { in cloneGlobalAliasDecl() argument
191 VMap[&OrigA] = NewA; in cloneGlobalAliasDecl()