Home
last modified time | relevance | path

Searched refs:SrcModule (Results 1 – 4 of 4) sorted by relevance

/external/llvm/tools/llvm-link/
Dllvm-link.cpp231 auto &SrcModule = ModuleLoaderCache(argv0, FileName); in importFunctions() local
233 if (verifyModule(SrcModule, &errs())) { in importFunctions()
239 Function *F = SrcModule.getFunction(FunctionName); in importFunctions()
257 auto &Entry = ModuleToGlobalsToImportMap[SrcModule.getModuleIdentifier()]; in importFunctions()
267 std::unique_ptr<Module> SrcModule = in importFunctions() local
269 assert(&Context == &SrcModule->getContext() && "Context mismatch"); in importFunctions()
273 SrcModule->materializeMetadata(); in importFunctions()
274 UpgradeDebugInfo(*SrcModule); in importFunctions()
277 if (renameModuleForThinLTO(*SrcModule, *Index, &GlobalsToImport)) in importFunctions()
283 if (L.linkInModule(std::move(SrcModule), Flags, &GlobalsToImport)) in importFunctions()
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp582 std::unique_ptr<Module> SrcModule = ModuleLoader(Name); in importFunctions() local
583 assert(&DestModule.getContext() == &SrcModule->getContext() && in importFunctions()
588 SrcModule->materializeMetadata(); in importFunctions()
589 UpgradeDebugInfo(*SrcModule); in importFunctions()
594 for (Function &F : *SrcModule) { in importFunctions()
601 << SrcModule->getSourceFileName() << "\n"); in importFunctions()
611 SrcModule->getSourceFileName())})); in importFunctions()
616 for (GlobalVariable &GV : SrcModule->globals()) { in importFunctions()
623 << SrcModule->getSourceFileName() << "\n"); in importFunctions()
629 for (GlobalAlias &GA : SrcModule->aliases()) { in importFunctions()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp884 static Function *replaceAliasWithAliasee(Module *SrcModule, GlobalAlias *GA) { in replaceAliasWithAliasee() argument
918 std::unique_ptr<Module> SrcModule = std::move(*SrcModuleOrErr); in importFunctions() local
919 assert(&DestModule.getContext() == &SrcModule->getContext() && in importFunctions()
924 if (Error Err = SrcModule->materializeMetadata()) in importFunctions()
930 for (Function &F : *SrcModule) { in importFunctions()
937 << SrcModule->getSourceFileName() << "\n"); in importFunctions()
947 SrcModule->getSourceFileName())})); in importFunctions()
952 for (GlobalVariable &GV : SrcModule->globals()) { in importFunctions()
959 << SrcModule->getSourceFileName() << "\n"); in importFunctions()
966 for (GlobalAlias &GA : SrcModule->aliases()) { in importFunctions()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-link/
Dllvm-link.cpp238 auto &SrcModule = ModuleLoaderCache(argv0, FileName); in importFunctions() local
240 if (verifyModule(SrcModule, &errs())) { in importFunctions()
246 Function *F = SrcModule.getFunction(FunctionName); in importFunctions()