Lines Matching refs:NewGV
409 GlobalVariable *NewGV; // New aggregate global in dest module. member
586 GlobalValue *NewGV; in copyGlobalValueProto() local
588 NewGV = copyGlobalVariableProto(TypeMap, DstM, SGVar); in copyGlobalValueProto()
590 NewGV = copyFunctionProto(TypeMap, DstM, SF); in copyGlobalValueProto()
592 NewGV = copyGlobalAliasProto(TypeMap, DstM, cast<GlobalAlias>(SGV)); in copyGlobalValueProto()
593 copyGVAttributes(NewGV, SGV); in copyGlobalValueProto()
594 return NewGV; in copyGlobalValueProto()
911 GlobalVariable *NewGV = new GlobalVariable( in upgradeGlobalArray() local
915 NewGV->copyAttributesFrom(GV); in upgradeGlobalArray()
916 NewGV->takeName(GV); in upgradeGlobalArray()
1006 AVI.NewGV = NG; in linkAppendingVarProto()
1068 GlobalValue *NewGV; in linkGlobalValueProto() local
1070 NewGV = DGV; in linkGlobalValueProto()
1080 NewGV = copyGlobalValueProto(TypeMap, *DstM, SGV); in linkGlobalValueProto()
1083 if (auto *NewF = dyn_cast<Function>(NewGV)) in linkGlobalValueProto()
1087 NewGV->setUnnamedAddr(HasUnnamedAddr); in linkGlobalValueProto()
1088 NewGV->setVisibility(Visibility); in linkGlobalValueProto()
1090 if (auto *NewGO = dyn_cast<GlobalObject>(NewGV)) { in linkGlobalValueProto()
1098 if (auto *NewGVar = dyn_cast<GlobalVariable>(NewGV)) { in linkGlobalValueProto()
1107 if (NewGV != DGV) { in linkGlobalValueProto()
1109 DGV->replaceAllUsesWith(ConstantExpr::getBitCast(NewGV, DGV->getType())); in linkGlobalValueProto()
1112 ValueMap[SGV] = NewGV; in linkGlobalValueProto()
1134 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType()); in linkAppendingVarInit()
1136 StringRef Name = AVI.NewGV->getName(); in linkAppendingVarInit()
1152 AVI.NewGV->mutateType(PointerType::get(NewType, 0)); in linkAppendingVarInit()
1155 AVI.NewGV->setInitializer(ConstantArray::get(NewType, DstElements)); in linkAppendingVarInit()