Lines Matching refs:config

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