Lines Matching refs:Src

26 enum class LinkFrom { Dst, Src, Both };  enumerator
57 const GlobalValue &Src);
68 Comdat::SelectionKind Src,
152 Comdat::SelectionKind Src, in computeResultingSelectionKind() argument
161 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
162 Src == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
165 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind()
169 } else if (Src == Dst) { in computeResultingSelectionKind()
203 From = SrcSize > DstSize ? LinkFrom::Src : LinkFrom::Dst; in computeResultingSelectionKind()
230 From = LinkFrom::Src; in getComdatResult()
242 const GlobalValue &Src) { in shouldLinkFromSource() argument
251 if (Src.hasAppendingLinkage() || Dest.hasAppendingLinkage()) { in shouldLinkFromSource()
256 bool SrcIsDeclaration = Src.isDeclarationForLinker(); in shouldLinkFromSource()
262 if (Src.hasDLLImportStorageClass()) { in shouldLinkFromSource()
273 LinkFromSrc = !Src.isDeclaration() && Dest.isDeclaration(); in shouldLinkFromSource()
283 if (Src.hasCommonLinkage()) { in shouldLinkFromSource()
296 uint64_t SrcSize = DL.getTypeAllocSize(Src.getValueType()); in shouldLinkFromSource()
301 if (Src.isWeakForLinker()) { in shouldLinkFromSource()
305 if (Dest.hasLinkOnceLinkage() && Src.hasWeakLinkage()) { in shouldLinkFromSource()
315 assert(Src.hasExternalLinkage()); in shouldLinkFromSource()
320 assert(!Src.hasExternalWeakLinkage()); in shouldLinkFromSource()
322 assert(Dest.hasExternalLinkage() && Src.hasExternalLinkage() && in shouldLinkFromSource()
324 return emitError("Linking globals named '" + Src.getName() + in shouldLinkFromSource()
480 if (From != LinkFrom::Src) in run()
624 std::unique_ptr<Module> Src, unsigned Flags, in linkInModule() argument
626 ModuleLinker ModLinker(Mover, std::move(Src), Flags, in linkInModule()
641 Module &Dest, std::unique_ptr<Module> Src, unsigned Flags, in linkModules() argument
644 return L.linkInModule(std::move(Src), Flags, std::move(InternalizeCallback)); in linkModules()
651 LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src) { in LLVMLinkModules2() argument
653 std::unique_ptr<Module> M(unwrap(Src)); in LLVMLinkModules2()