Lines Matching refs:MergedModule
68 : Context(Context), MergedModule(new Module("ld-temp.o", Context)), in LTOCodeGenerator()
69 TheLinker(new Linker(*MergedModule)) { in LTOCodeGenerator()
124 MergedModule = Mod->takeModule(); in setModule()
125 TheLinker = make_unique<Linker>(*MergedModule); in setModule()
185 WriteBitcodeToFile(MergedModule.get(), Out.os(), ShouldEmbedUselists); in writeMergedModules()
283 std::string TripleStr = MergedModule->getTargetTriple(); in determineTarget()
286 MergedModule->setTargetTriple(TripleStr); in determineTarget()
415 accumulateAndSortLibcalls(Libcalls, TLI, *MergedModule, *TargetMach); in applyScopeRestrictions()
417 for (Function &f : *MergedModule) in applyScopeRestrictions()
419 for (GlobalVariable &v : MergedModule->globals()) in applyScopeRestrictions()
421 for (GlobalAlias &a : MergedModule->aliases()) in applyScopeRestrictions()
425 MergedModule->getGlobalVariable("llvm.compiler.used"); in applyScopeRestrictions()
440 new llvm::GlobalVariable(*MergedModule, ATy, false, in applyScopeRestrictions()
451 passes.run(*MergedModule); in applyScopeRestrictions()
470 MergedModule->setDataLayout(TargetMach->createDataLayout()); in optimize()
490 passes.run(*MergedModule); in optimize()
504 preCodeGenPasses.run(*MergedModule); in compileOptimized()
511 MergedModule = in compileOptimized()
512 splitCodeGen(std::move(MergedModule), Out, MCpu, FeatureStr, Options, in compileOptimized()