Lines Matching refs:NewGV
1040 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(),
1055 if (BCI->getType() == NewGV->getType()) {
1056 BCI->replaceAllUsesWith(NewGV);
1059 BCI->setOperand(0, NewGV);
1063 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI);
1068 Constant *RepValue = NewGV;
1069 if (NewGV->getType() != GV->getType()->getElementType())
1143 // To further other optimizations, loop over all users of NewGV and try to
1146 ConstantPropUsersOf(NewGV, TD, TLI);
1147 if (RepValue != NewGV)
1150 return NewGV;
1824 GlobalVariable *NewGV = new GlobalVariable(Type::getInt1Ty(GV->getContext()),
1831 GV->getParent()->getGlobalList().insert(GV, NewGV);
1865 StoreVal = new LoadInst(NewGV, LI->getName()+".b", false, 0,
1871 assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!");
1874 new StoreInst(StoreVal, NewGV, false, 0,
1879 LoadInst *NLI = new LoadInst(NewGV, LI->getName()+".b", false, 0,
1894 NewGV->takeName(GV);