Lines Matching refs:SrcGV

433   GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) {  in getLinkedToGlobal()  argument
436 if (!SrcGV->hasName() || SrcGV->hasLocalLinkage()) in getLinkedToGlobal()
440 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
456 const GlobalVariable *SrcGV);
746 const GlobalVariable *SrcGV) { in linkAppendingVarProto() argument
747 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType())) in linkAppendingVarProto()
754 StringRef Name = SrcGV->getName(); in linkAppendingVarProto()
764 PointerType *VoidPtrTy = Type::getInt8Ty(SrcGV->getContext())->getPointerTo(); in linkAppendingVarProto()
768 EltTy = StructType::get(SrcGV->getContext(), Tys, false); in linkAppendingVarProto()
776 if (!SrcGV->hasAppendingLinkage() || !DstGV->hasAppendingLinkage()) in linkAppendingVarProto()
778 "Linking globals named '" + SrcGV->getName() + in linkAppendingVarProto()
785 if (DstGV->isConstant() != SrcGV->isConstant()) in linkAppendingVarProto()
788 if (DstGV->getAlignment() != SrcGV->getAlignment()) in linkAppendingVarProto()
792 if (DstGV->getVisibility() != SrcGV->getVisibility()) in linkAppendingVarProto()
796 if (DstGV->hasGlobalUnnamedAddr() != SrcGV->hasGlobalUnnamedAddr()) in linkAppendingVarProto()
800 if (DstGV->getSection() != SrcGV->getSection()) in linkAppendingVarProto()
806 getArrayElements(SrcGV->getInitializer(), SrcElements); in linkAppendingVarProto()
825 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(), in linkAppendingVarProto()
826 /*init*/ nullptr, /*name*/ "", DstGV, SrcGV->getThreadLocalMode(), in linkAppendingVarProto()
827 SrcGV->getType()->getAddressSpace()); in linkAppendingVarProto()
829 NG->copyAttributesFrom(SrcGV); in linkAppendingVarProto()
830 forceRenaming(NG, SrcGV->getName()); in linkAppendingVarProto()
832 Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType())); in linkAppendingVarProto()