Lines Matching refs:GlobalVariable

409     GlobalVariable *NewGV;   // New aggregate global in dest module.
451 const GlobalVariable *&GVar);
489 bool linkAppendingVarProto(GlobalVariable *DstGV,
490 const GlobalVariable *SrcGV);
497 void linkGlobalInit(GlobalVariable &Dst, GlobalVariable &Src);
550 static GlobalVariable *copyGlobalVariableProto(TypeMapTy &TypeMap, Module &DstM, in copyGlobalVariableProto()
551 const GlobalVariable *SGVar) { in copyGlobalVariableProto()
555 GlobalVariable *NewDGV = new GlobalVariable( in copyGlobalVariableProto()
587 if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) in copyGlobalValueProto()
616 const GlobalVariable *&GVar) { in getComdatLeader()
626 GVar = dyn_cast_or_null<GlobalVariable>(GVal); in getComdatLeader()
670 const GlobalVariable *DstGV; in computeResultingSelectionKind()
671 const GlobalVariable *SrcGV; in computeResultingSelectionKind()
879 static void upgradeGlobalArray(GlobalVariable *GV) { in upgradeGlobalArray()
911 GlobalVariable *NewGV = new GlobalVariable( in upgradeGlobalArray()
923 auto *DstGV = dyn_cast_or_null<GlobalVariable>(DstM->getNamedValue(Name)); in upgradeMismatchedGlobalArray()
926 auto *SrcGV = dyn_cast_or_null<GlobalVariable>(SrcM->getNamedValue(Name)); in upgradeMismatchedGlobalArray()
958 bool ModuleLinker::linkAppendingVarProto(GlobalVariable *DstGV, in linkAppendingVarProto()
959 const GlobalVariable *SrcGV) { in linkAppendingVarProto()
996 GlobalVariable *NG = in linkAppendingVarProto()
997 new GlobalVariable(*DstGV->getParent(), NewType, SrcGV->isConstant(), in linkAppendingVarProto()
1029 return linkAppendingVarProto(cast<GlobalVariable>(DGV), in linkGlobalValueProto()
1030 cast<GlobalVariable>(SGV)); in linkGlobalValueProto()
1098 if (auto *NewGVar = dyn_cast<GlobalVariable>(NewGV)) { in linkGlobalValueProto()
1099 auto *DGVar = dyn_cast_or_null<GlobalVariable>(DGV); in linkGlobalValueProto()
1100 auto *SGVar = dyn_cast<GlobalVariable>(SGV); in linkGlobalValueProto()
1160 void ModuleLinker::linkGlobalInit(GlobalVariable &Dst, GlobalVariable &Src) { in linkGlobalInit()
1228 if (auto *GVar = dyn_cast<GlobalVariable>(&Src)) { in linkGlobalValueBody()
1229 linkGlobalInit(cast<GlobalVariable>(*Dst), *GVar); in linkGlobalValueBody()
1599 for (GlobalVariable &Src : SrcM->globals()) { in run()