Home
last modified time | relevance | path

Searched refs:SrcGV (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp367 GlobalValue *getLinkedToGlobal(GlobalValue *SrcGV) { in getLinkedToGlobal() argument
370 if (!SrcGV->hasName() || SrcGV->hasLocalLinkage()) in getLinkedToGlobal()
374 GlobalValue *DGV = DstM->getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
388 bool linkAppendingVarProto(GlobalVariable *DstGV, GlobalVariable *SrcGV);
389 bool linkGlobalProto(GlobalVariable *SrcGV);
426 static void CopyGVAttributes(GlobalValue *DestGV, const GlobalValue *SrcGV) { in CopyGVAttributes() argument
428 unsigned Alignment = std::max(DestGV->getAlignment(), SrcGV->getAlignment()); in CopyGVAttributes()
429 DestGV->copyAttributesFrom(SrcGV); in CopyGVAttributes()
432 forceRenaming(DestGV, SrcGV->getName()); in CopyGVAttributes()
553 GlobalVariable *SrcGV) { in linkAppendingVarProto() argument
[all …]
/external/llvm/lib/Linker/
DIRMover.cpp433 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()
[all …]
DLinkModules.cpp83 GlobalValue *getLinkedToGlobal(const GlobalValue *SrcGV) { in getLinkedToGlobal() argument
87 if (!SrcGV->hasName() || GlobalValue::isLocalLinkage(SrcGV->getLinkage())) in getLinkedToGlobal()
91 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
204 const GlobalVariable *SrcGV; in computeResultingSelectionKind() local
206 getComdatLeader(*SrcM, ComdatName, SrcGV)) in computeResultingSelectionKind()
212 uint64_t SrcSize = SrcDL.getTypeAllocSize(SrcGV->getValueType()); in computeResultingSelectionKind()
214 if (SrcGV->getInitializer() != DstGV->getInitializer()) in computeResultingSelectionKind()