Lines Matching refs:Conf
81 SmallString<40> &Key, const Config &Conf, const ModuleSummaryIndex &Index, in computeLTOCacheKey() argument
115 AddString(Conf.CPU); in computeLTOCacheKey()
120 AddUnsigned(Conf.Options.RelaxELFRelocations); in computeLTOCacheKey()
121 AddUnsigned(Conf.Options.FunctionSections); in computeLTOCacheKey()
122 AddUnsigned(Conf.Options.DataSections); in computeLTOCacheKey()
123 AddUnsigned((unsigned)Conf.Options.DebuggerTuning); in computeLTOCacheKey()
124 for (auto &A : Conf.MAttrs) in computeLTOCacheKey()
126 if (Conf.RelocModel) in computeLTOCacheKey()
127 AddUnsigned(*Conf.RelocModel); in computeLTOCacheKey()
130 if (Conf.CodeModel) in computeLTOCacheKey()
131 AddUnsigned(*Conf.CodeModel); in computeLTOCacheKey()
134 AddUnsigned(Conf.CGOptLevel); in computeLTOCacheKey()
135 AddUnsigned(Conf.CGFileType); in computeLTOCacheKey()
136 AddUnsigned(Conf.OptLevel); in computeLTOCacheKey()
137 AddUnsigned(Conf.Freestanding); in computeLTOCacheKey()
138 AddString(Conf.OptPipeline); in computeLTOCacheKey()
139 AddString(Conf.AAPipeline); in computeLTOCacheKey()
140 AddString(Conf.OverrideTriple); in computeLTOCacheKey()
141 AddString(Conf.DefaultTriple); in computeLTOCacheKey()
142 AddString(Conf.DwoDir); in computeLTOCacheKey()
306 if (!Conf.SampleProfile.empty()) { in computeLTOCacheKey()
307 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile); in computeLTOCacheKey()
311 if (!Conf.ProfileRemapping.empty()) { in computeLTOCacheKey()
312 FileOrErr = MemoryBuffer::getFile(Conf.ProfileRemapping); in computeLTOCacheKey()
511 const Config &Conf) in RegularLTOState() argument
513 Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)), in RegularLTOState()
523 LTO::LTO(Config Conf, ThinBackend Backend, in LTO() argument
525 : Conf(std::move(Conf)), in LTO()
526 RegularLTO(ParallelCodeGenParallelismLevel, this->Conf), in LTO()
617 if (Conf.ResolutionFile) in add()
618 writeToResolutionFile(*Conf.ResolutionFile, Input.get(), Res); in add()
623 Conf.VisibilityScheme = Config::ELF; in add()
937 if (!Conf.ThinLTOModulesToCompile.empty()) { in addThinLTO()
942 for (const std::string &Name : Conf.ThinLTOModulesToCompile) { in addThinLTO()
1030 isPrevailing, Conf.OptLevel > 0); in run()
1033 auto StatsFileOrErr = setupStatsFile(Conf.StatsFile); in run()
1051 RegularLTO.CombinedModule->getContext(), Conf.RemarksFilename, in runRegularLTO()
1052 Conf.RemarksPasses, Conf.RemarksFormat, Conf.RemarksWithHotness, in runRegularLTO()
1053 Conf.RemarksHotnessThreshold); in runRegularLTO()
1104 Conf.HasWholeProgramVisibility, in runRegularLTO()
1107 Conf.HasWholeProgramVisibility); in runRegularLTO()
1109 if (Conf.PreOptModuleHook && in runRegularLTO()
1110 !Conf.PreOptModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1113 if (!Conf.CodeGenOnly) { in runRegularLTO()
1135 if (Conf.PostInternalizeModuleHook && in runRegularLTO()
1136 !Conf.PostInternalizeModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1140 if (!RegularLTO.EmptyCombinedModule || Conf.AlwaysEmitRegularLTOObj) { in runRegularLTO()
1142 backend(Conf, AddStream, RegularLTO.ParallelCodeGenParallelismLevel, in runRegularLTO()
1163 const Config &Conf; member in lto::ThinBackendProc
1170 ThinBackendProc(const Config &Conf, ModuleSummaryIndex &CombinedIndex, in ThinBackendProc() argument
1173 : Conf(Conf), CombinedIndex(CombinedIndex), in ThinBackendProc()
1227 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in InProcessThinBackend() argument
1232 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries, in InProcessThinBackend()
1253 LTOLLVMContext BackendContext(Conf); in runThinLTOBackendThread()
1258 return thinBackend(Conf, Task, AddStream, **MOrErr, CombinedIndex, in runThinLTOBackendThread()
1278 computeLTOCacheKey(Key, Conf, CombinedIndex, ModuleID, ImportList, in runThinLTOBackendThread()
1309 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1310 timeTraceProfilerInitialize(Conf.TimeTraceGranularity, in start()
1322 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1351 return [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createInProcessThinBackend()
1355 Conf, CombinedIndex, Parallelism, ModuleToDefinedGVSummaries, AddStream, in createInProcessThinBackend()
1387 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in WriteIndexesThinBackend() argument
1391 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries, in WriteIndexesThinBackend()
1428 return [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createWriteIndexesThinBackend()
1432 Conf, CombinedIndex, ModuleToDefinedGVSummaries, OldPrefix, NewPrefix, in createWriteIndexesThinBackend()
1452 if (Conf.CombinedIndexHook && in runThinLTO()
1453 !Conf.CombinedIndexHook(ThinLTO.CombinedIndex, GUIDPreservedSymbols)) in runThinLTO()
1487 if (hasWholeProgramVisibility(Conf.HasWholeProgramVisibility)) in runThinLTO()
1492 Conf.HasWholeProgramVisibility, in runThinLTO()
1502 if (Conf.OptLevel > 0) in runThinLTO()
1555 thinLTOResolvePrevailingInIndex(Conf, ThinLTO.CombinedIndex, isPrevailing, in runThinLTO()
1568 ThinLTO.Backend(Conf, ThinLTO.CombinedIndex, ModuleToDefinedGVSummaries, in runThinLTO()