Lines Matching refs:Config
63 Config->ThinLTOPrefixReplace.first, in getThinLTOOutputFile()
64 Config->ThinLTOPrefixReplace.second); in getThinLTOOutputFile()
67 static lto::Config createConfig() { in createConfig()
68 lto::Config C; in createConfig()
79 if (Config->Relocatable) in createConfig()
81 else if (Config->Pic) in createConfig()
87 C.DisableVerify = Config->DisableVerify; in createConfig()
89 C.OptLevel = Config->LTOO; in createConfig()
94 C.OptPipeline = Config->LTONewPmPasses; in createConfig()
95 C.AAPipeline = Config->LTOAAPipeline; in createConfig()
98 C.RemarksFilename = Config->OptRemarksFilename; in createConfig()
99 C.RemarksWithHotness = Config->OptRemarksWithHotness; in createConfig()
101 C.SampleProfile = Config->LTOSampleProfile; in createConfig()
102 C.UseNewPM = Config->LTONewPassManager; in createConfig()
103 C.DebugPassManager = Config->LTODebugPassManager; in createConfig()
104 C.DwoDir = Config->DwoDir; in createConfig()
106 if (Config->EmitLLVM) { in createConfig()
108 if (std::unique_ptr<raw_fd_ostream> OS = openFile(Config->OutputFile)) in createConfig()
114 if (Config->SaveTemps) in createConfig()
115 checkError(C.addSaveTemps(Config->OutputFile.str() + ".", in createConfig()
122 if (!Config->ThinLTOIndexOnlyArg.empty()) in BitcodeCompiler()
123 IndexFile = openFile(Config->ThinLTOIndexOnlyArg); in BitcodeCompiler()
127 if (Config->ThinLTOIndexOnly) { in BitcodeCompiler()
130 Config->ThinLTOPrefixReplace.first, Config->ThinLTOPrefixReplace.second, in BitcodeCompiler()
131 Config->ThinLTOEmitImportsFiles, IndexFile.get(), OnIndexWrite); in BitcodeCompiler()
132 } else if (Config->ThinLTOJobs != -1U) { in BitcodeCompiler()
133 Backend = lto::createInProcessThinBackend(Config->ThinLTOJobs); in BitcodeCompiler()
137 Config->LTOPartitions); in BitcodeCompiler()
157 bool IsExec = !Config->Shared && !Config->Relocatable; in add()
159 if (Config->ThinLTOIndexOnly) in add()
185 R.VisibleToRegularObj = Config->Relocatable || Sym->IsUsedInRegularObj || in add()
219 if (Config->ThinLTOEmitImportsFiles) in createEmptyIndex()
234 if (!Config->ThinLTOCacheDir.empty()) in compile()
236 lto::localCache(Config->ThinLTOCacheDir, in compile()
252 if (Config->ThinLTOEmitImportsFiles) in compile()
259 if (Config->ThinLTOIndexOnly) { in compile()
264 if (!Config->LTOObjPath.empty()) in compile()
265 saveBuffer(Buf[0], Config->LTOObjPath); in compile()
275 if (!Config->ThinLTOCacheDir.empty()) in compile()
276 pruneCache(Config->ThinLTOCacheDir, Config->ThinLTOCachePolicy); in compile()
282 if (Config->SaveTemps) { in compile()
284 saveBuffer(Buf[I], Config->OutputFile + ".lto.o"); in compile()
286 saveBuffer(Buf[I], Config->OutputFile + Twine(I) + ".lto.o"); in compile()