Lines Matching defs:VMap
30 ValueToValueMapTy VMap;
31 return CloneModule(M, VMap);
34 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) {
42 // new module. Here we add them to the VMap and to the new Module. We
55 VMap[I] = GV;
64 VMap[I] = NF;
73 VMap[I] = GA;
82 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]);
84 GV->setInitializer(MapValue(I->getInitializer(), VMap));
90 Function *F = cast<Function>(VMap[I]);
96 VMap[J] = DestI++;
100 CloneFunctionInto(F, I, VMap, /*ModuleLevelChanges=*/true, Returns);
107 GlobalAlias *GA = cast<GlobalAlias>(VMap[I]);
109 GA->setAliasee(MapValue(C, VMap));
118 NewNMD->addOperand(MapValue(NMD.getOperand(i), VMap));