Searched refs:NewGV (Results 1 – 3 of 3) sorted by relevance
863 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(), in OptimizeGlobalAddressOfMalloc() local878 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()879 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()882 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()886 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()891 Constant *RepValue = NewGV; in OptimizeGlobalAddressOfMalloc()892 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc()965 ConstantPropUsersOf(NewGV); in OptimizeGlobalAddressOfMalloc()966 if (RepValue != NewGV) in OptimizeGlobalAddressOfMalloc()969 return NewGV; in OptimizeGlobalAddressOfMalloc()[all …]
329 GlobalVariable *NewGV; // New aggregate global in dest module. member587 AVI.NewGV = NG; in linkAppendingVarProto()771 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType()); in linkAppendingVarInit()772 AVI.NewGV->setInitializer(ConstantArray::get(NewType, Elements)); in linkAppendingVarInit()
1692 GlobalVariable *NewGV = in ParseModule() local1695 NewGV->setAlignment(Alignment); in ParseModule()1697 NewGV->setSection(Section); in ParseModule()1698 NewGV->setVisibility(Visibility); in ParseModule()1699 NewGV->setThreadLocal(isThreadLocal); in ParseModule()1700 NewGV->setUnnamedAddr(UnnamedAddr); in ParseModule()1702 ValueList.push_back(NewGV); in ParseModule()1706 GlobalInits.push_back(std::make_pair(NewGV, InitID-1)); in ParseModule()