Lines Matching refs:config

37   return lto::getThinLTOOutputFile(modulePath, config->thinLTOPrefixReplaceOld,  in getThinLTOOutputFile()
38 config->thinLTOPrefixReplaceNew); in getThinLTOOutputFile()
44 c.Options.EmitAddrsig = config->icfLevel == ICFLevel::safe; in createConfig()
45 for (StringRef C : config->mllvmOpts) in createConfig()
55 c.AlwaysEmitRegularLTOObj = !config->ltoObjPath.empty(); in createConfig()
57 c.TimeTraceEnabled = config->timeTraceEnabled; in createConfig()
58 c.TimeTraceGranularity = config->timeTraceGranularity; in createConfig()
59 c.DebugPassManager = config->ltoDebugPassManager; in createConfig()
60 c.CSIRProfile = std::string(config->csProfilePath); in createConfig()
61 c.RunCSIRInstr = config->csProfileGenerate; in createConfig()
62 c.PGOWarnMismatch = config->pgoWarnMismatch; in createConfig()
63 c.OptLevel = config->ltoo; in createConfig()
64 c.CGOptLevel = config->ltoCgo; in createConfig()
65 if (config->saveTemps) in createConfig()
66 checkError(c.addSaveTemps(config->outputFile.str() + ".", in createConfig()
85 if (!config->thinLTOIndexOnlyArg.empty()) in BitcodeCompiler()
86 indexFile = openFile(config->thinLTOIndexOnlyArg); in BitcodeCompiler()
91 if (config->thinLTOIndexOnly) { in BitcodeCompiler()
93 std::string(config->thinLTOPrefixReplaceOld), in BitcodeCompiler()
94 std::string(config->thinLTOPrefixReplaceNew), in BitcodeCompiler()
95 std::string(config->thinLTOPrefixReplaceNativeObject), in BitcodeCompiler()
96 config->thinLTOEmitImportsFiles, indexFile.get(), onIndexWrite); in BitcodeCompiler()
99 llvm::heavyweight_hardware_concurrency(config->thinLTOJobs), in BitcodeCompiler()
100 onIndexWrite, config->thinLTOEmitIndexFiles, in BitcodeCompiler()
101 config->thinLTOEmitImportsFiles); in BitcodeCompiler()
110 if (config->thinLTOEmitIndexFiles) in add()
119 config->outputType != MH_EXECUTE || config->exportDynamic; in add()
183 if (config->thinLTOEmitImportsFiles) in thinLTOCreateEmptyIndexFiles()
200 if (!config->thinLTOCacheDir.empty()) in compile()
201 cache = check(localCache("ThinLTO", "Thin", config->thinLTOCacheDir, in compile()
219 if (config->thinLTOEmitImportsFiles) in compile()
223 if (config->thinLTOEmitIndexFiles) in compile()
229 if (!config->ltoObjPath.empty()) { in compile()
230 if (std::error_code ec = fs::create_directories(config->ltoObjPath)) in compile()
231 fatal("cannot create LTO object path " + config->ltoObjPath + ": " + in compile()
234 if (!fs::is_directory(config->ltoObjPath)) { in compile()
245 if (!config->ltoObjPath.empty()) { in compile()
246 filePath = config->ltoObjPath; in compile()
249 getArchitectureName(config->arch()) + in compile()
258 if (config->thinLTOIndexOnly) { in compile()
259 if (!config->ltoObjPath.empty()) in compile()
266 if (!config->thinLTOCacheDir.empty()) in compile()
267 pruneCache(config->thinLTOCacheDir, config->thinLTOCachePolicy, files); in compile()
286 if (config->saveTemps) in compile()
288 config->outputFile + ((i == 0) ? "" : Twine(i)) + ".lto.o"); in compile()
292 if (!config->ltoObjPath.empty()) { in compile()