Lines Matching refs:Conf
93 SmallString<40> &Key, const Config &Conf, const ModuleSummaryIndex &Index, in computeLTOCacheKey() argument
130 AddString(Conf.CPU); in computeLTOCacheKey()
135 AddUnsigned(Conf.Options.MCOptions.X86RelaxRelocations); in computeLTOCacheKey()
136 AddUnsigned(Conf.Options.FunctionSections); in computeLTOCacheKey()
137 AddUnsigned(Conf.Options.DataSections); in computeLTOCacheKey()
138 AddUnsigned((unsigned)Conf.Options.DebuggerTuning); in computeLTOCacheKey()
139 for (auto &A : Conf.MAttrs) in computeLTOCacheKey()
141 if (Conf.RelocModel) in computeLTOCacheKey()
142 AddUnsigned(*Conf.RelocModel); in computeLTOCacheKey()
145 if (Conf.CodeModel) in computeLTOCacheKey()
146 AddUnsigned(*Conf.CodeModel); in computeLTOCacheKey()
149 for (const auto &S : Conf.MllvmArgs) in computeLTOCacheKey()
151 AddUnsigned(static_cast<int>(Conf.CGOptLevel)); in computeLTOCacheKey()
152 AddUnsigned(static_cast<int>(Conf.CGFileType)); in computeLTOCacheKey()
153 AddUnsigned(Conf.OptLevel); in computeLTOCacheKey()
154 AddUnsigned(Conf.Freestanding); in computeLTOCacheKey()
155 AddString(Conf.OptPipeline); in computeLTOCacheKey()
156 AddString(Conf.AAPipeline); in computeLTOCacheKey()
157 AddString(Conf.OverrideTriple); in computeLTOCacheKey()
158 AddString(Conf.DefaultTriple); in computeLTOCacheKey()
159 AddString(Conf.DwoDir); in computeLTOCacheKey()
345 if (!Conf.SampleProfile.empty()) { in computeLTOCacheKey()
346 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile); in computeLTOCacheKey()
350 if (!Conf.ProfileRemapping.empty()) { in computeLTOCacheKey()
351 FileOrErr = MemoryBuffer::getFile(Conf.ProfileRemapping); in computeLTOCacheKey()
591 const Config &Conf) in RegularLTOState() argument
593 Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)), in RegularLTOState()
605 LTO::LTO(Config Conf, ThinBackend Backend, in LTO() argument
607 : Conf(std::move(Conf)), in LTO()
608 RegularLTO(ParallelCodeGenParallelismLevel, this->Conf), in LTO()
711 if (Conf.ResolutionFile) in add()
712 writeToResolutionFile(*Conf.ResolutionFile, Input.get(), Res); in add()
717 Conf.VisibilityScheme = Config::ELF; in add()
1072 if (!Conf.ThinLTOModulesToCompile.empty()) { in addThinLTO()
1077 for (const std::string &Name : Conf.ThinLTOModulesToCompile) { in addThinLTO()
1170 isPrevailing, Conf.OptLevel > 0); in run()
1173 auto StatsFileOrErr = setupStatsFile(Conf.StatsFile); in run()
1232 RegularLTO.CombinedModule->getContext(), Conf.RemarksFilename, in runRegularLTO()
1233 Conf.RemarksPasses, Conf.RemarksFormat, Conf.RemarksWithHotness, in runRegularLTO()
1234 Conf.RemarksHotnessThreshold); in runRegularLTO()
1286 Conf.HasWholeProgramVisibility && in runRegularLTO()
1289 (!Conf.ValidateAllVtablesHaveTypeInfos || Conf.AllVtablesHaveTypeInfos); in runRegularLTO()
1302 DynamicExportSymbols, Conf.ValidateAllVtablesHaveTypeInfos, in runRegularLTO()
1307 if (Conf.PreOptModuleHook && in runRegularLTO()
1308 !Conf.PreOptModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1311 if (!Conf.CodeGenOnly) { in runRegularLTO()
1346 if (Conf.PostInternalizeModuleHook && in runRegularLTO()
1347 !Conf.PostInternalizeModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1351 if (!RegularLTO.EmptyCombinedModule || Conf.AlwaysEmitRegularLTOObj) { in runRegularLTO()
1353 backend(Conf, AddStream, RegularLTO.ParallelCodeGenParallelismLevel, in runRegularLTO()
1372 const Config &Conf; member in lto::ThinBackendProc
1380 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in ThinBackendProc() argument
1383 : Conf(Conf), CombinedIndex(CombinedIndex), in ThinBackendProc()
1442 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in InProcessThinBackend() argument
1447 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries, in InProcessThinBackend()
1468 LTOLLVMContext BackendContext(Conf); in runThinLTOBackendThread()
1473 return thinBackend(Conf, Task, AddStream, **MOrErr, CombinedIndex, in runThinLTOBackendThread()
1493 computeLTOCacheKey(Key, Conf, CombinedIndex, ModuleID, ImportList, in runThinLTOBackendThread()
1524 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1525 timeTraceProfilerInitialize(Conf.TimeTraceGranularity, in start()
1537 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1567 [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createInProcessThinBackend()
1571 Conf, CombinedIndex, Parallelism, ModuleToDefinedGVSummaries, in createInProcessThinBackend()
1618 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in WriteIndexesThinBackend() argument
1623 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries, in WriteIndexesThinBackend()
1668 [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createWriteIndexesThinBackend()
1672 Conf, CombinedIndex, ModuleToDefinedGVSummaries, OldPrefix, in createWriteIndexesThinBackend()
1695 if (Conf.CombinedIndexHook && in runThinLTO()
1696 !Conf.CombinedIndexHook(ThinLTO.CombinedIndex, GUIDPreservedSymbols)) in runThinLTO()
1731 Conf.HasWholeProgramVisibility && in runThinLTO()
1734 (!Conf.ValidateAllVtablesHaveTypeInfos || Conf.AllVtablesHaveTypeInfos); in runThinLTO()
1743 Conf.ValidateAllVtablesHaveTypeInfos) { in runThinLTO()
1801 if (Conf.OptLevel > 0) in runThinLTO()
1833 thinLTOResolvePrevailingInIndex(Conf, ThinLTO.CombinedIndex, isPrevailing, in runThinLTO()
1846 ThinLTO.Backend(Conf, ThinLTO.CombinedIndex, ModuleToDefinedGVSummaries, in runThinLTO()