Lines Matching refs:MergedModule

95     : Context(Context), MergedModule(new Module("ld-temp.o", Context)),  in LTOCodeGenerator()
96 TheLinker(new Linker(*MergedModule)) { in LTOCodeGenerator()
155 MergedModule = Mod->takeModule(); in setModule()
156 TheLinker = make_unique<Linker>(*MergedModule); in setModule()
222 WriteBitcodeToFile(MergedModule.get(), Out.os(), ShouldEmbedUselists); in writeMergedModules()
320 TripleStr = MergedModule->getTargetTriple(); in determineTarget()
323 MergedModule->setTargetTriple(TripleStr); in determineTarget()
429 MergedModule->getDataLayout()); in applyScopeRestrictions()
434 preserveDiscardableGVs(*MergedModule, mustPreserveGV); in applyScopeRestrictions()
448 for (auto &GV : *MergedModule) in applyScopeRestrictions()
450 for (auto &GV : MergedModule->globals()) in applyScopeRestrictions()
452 for (auto &GV : MergedModule->aliases()) in applyScopeRestrictions()
458 updateCompilerUsed(*MergedModule, *TargetMach, AsmUndefinedRefs); in applyScopeRestrictions()
460 internalizeModule(*MergedModule, mustPreserveGV); in applyScopeRestrictions()
487 std::for_each(MergedModule->begin(), MergedModule->end(), externalize); in restoreLinkageForExternals()
488 std::for_each(MergedModule->global_begin(), MergedModule->global_end(), in restoreLinkageForExternals()
490 std::for_each(MergedModule->alias_begin(), MergedModule->alias_end(), in restoreLinkageForExternals()
502 if (verifyModule(*MergedModule, &dbgs(), &BrokenDebugInfo)) in verifyMergedModuleOnce()
506 StripDebugInfo(*MergedModule); in verifyMergedModuleOnce()
509 if (verifyModule(*MergedModule, &dbgs())) in verifyMergedModuleOnce()
531 MergedModule->setDataLayout(TargetMach->createDataLayout()); in optimize()
551 passes.run(*MergedModule); in optimize()
569 preCodeGenPasses.run(*MergedModule); in compileOptimized()
580 MergedModule = splitCodeGen(std::move(MergedModule), Out, {}, in compileOptimized()