Lines Matching refs:config
47 return lto::getThinLTOOutputFile(path, ctx.config.thinLTOPrefixReplaceOld, in getThinLTOOutputFile()
48 ctx.config.thinLTOPrefixReplaceNew); in getThinLTOOutputFile()
55 for (StringRef C : ctx.config.mllvmOpts) in createConfig()
66 if (ctx.config.machine == COFF::IMAGE_FILE_MACHINE_I386) in createConfig()
76 c.DwoDir = ctx.config.dwoDir.str(); in createConfig()
77 c.OptLevel = ctx.config.ltoo; in createConfig()
81 ctx.config.ltoCgo.value_or(args::getCGOptLevel(ctx.config.ltoo))); in createConfig()
84 c.AlwaysEmitRegularLTOObj = !ctx.config.ltoObjPath.empty(); in createConfig()
85 c.DebugPassManager = ctx.config.ltoDebugPassManager; in createConfig()
86 c.CSIRProfile = std::string(ctx.config.ltoCSProfileFile); in createConfig()
87 c.RunCSIRInstr = ctx.config.ltoCSProfileGenerate; in createConfig()
88 c.PGOWarnMismatch = ctx.config.ltoPGOWarnMismatch; in createConfig()
89 c.SampleProfile = ctx.config.ltoSampleProfileName; in createConfig()
90 c.TimeTraceEnabled = ctx.config.timeTraceEnabled; in createConfig()
91 c.TimeTraceGranularity = ctx.config.timeTraceGranularity; in createConfig()
93 if (ctx.config.emit == EmitKind::LLVM) { in createConfig()
96 openLTOOutputFile(ctx.config.outputFile)) in createConfig()
100 } else if (ctx.config.emit == EmitKind::ASM) { in createConfig()
105 if (ctx.config.saveTemps) in createConfig()
106 checkError(c.addSaveTemps(std::string(ctx.config.outputFile) + ".", in createConfig()
113 if (!ctx.config.thinLTOIndexOnlyArg.empty()) in BitcodeCompiler()
114 indexFile = openFile(ctx.config.thinLTOIndexOnlyArg); in BitcodeCompiler()
118 if (ctx.config.thinLTOIndexOnly) { in BitcodeCompiler()
121 std::string(ctx.config.thinLTOPrefixReplaceOld), in BitcodeCompiler()
122 std::string(ctx.config.thinLTOPrefixReplaceNew), in BitcodeCompiler()
123 std::string(ctx.config.thinLTOPrefixReplaceNativeObject), in BitcodeCompiler()
124 ctx.config.thinLTOEmitImportsFiles, indexFile.get(), OnIndexWrite); in BitcodeCompiler()
127 llvm::heavyweight_hardware_concurrency(ctx.config.thinLTOJobs)); in BitcodeCompiler()
131 ctx.config.ltoPartitions); in BitcodeCompiler()
144 if (ctx.config.thinLTOIndexOnly) in add()
183 if (!ctx.config.ltoCache.empty()) in compile()
184 cache = check(localCache("ThinLTO", "Thin", ctx.config.ltoCache, in compile()
203 if (ctx.config.thinLTOEmitImportsFiles) in compile()
210 if (ctx.config.thinLTOIndexOnly) { in compile()
211 if (!ctx.config.ltoObjPath.empty()) in compile()
212 saveBuffer(buf[0].second, ctx.config.ltoObjPath); in compile()
218 if (!ctx.config.ltoCache.empty()) in compile()
219 pruneCache(ctx.config.ltoCache, ctx.config.ltoCachePolicy, files); in compile()
222 bool emitASM = ctx.config.emit == EmitKind::ASM; in compile()
245 saver().save(Twine(ctx.config.outputFile) + ".lto" + in compile()
250 StringRef outputFileBaseName = sys::path::filename(ctx.config.outputFile); in compile()
257 if (ctx.config.saveTemps || emitASM) in compile()