Lines Matching defs:Conf

100     const Config &Conf, const ModuleSummaryIndex &Index, StringRef ModuleID,
137 AddString(Conf.CPU);
142 AddUnsigned(Conf.Options.MCOptions.X86RelaxRelocations);
143 AddUnsigned(Conf.Options.FunctionSections);
144 AddUnsigned(Conf.Options.DataSections);
145 AddUnsigned((unsigned)Conf.Options.DebuggerTuning);
146 for (auto &A : Conf.MAttrs)
148 if (Conf.RelocModel)
149 AddUnsigned(*Conf.RelocModel);
152 if (Conf.CodeModel)
153 AddUnsigned(*Conf.CodeModel);
156 for (const auto &S : Conf.MllvmArgs)
158 AddUnsigned(static_cast<int>(Conf.CGOptLevel));
159 AddUnsigned(static_cast<int>(Conf.CGFileType));
160 AddUnsigned(Conf.OptLevel);
161 AddUnsigned(Conf.Freestanding);
162 AddString(Conf.OptPipeline);
163 AddString(Conf.AAPipeline);
164 AddString(Conf.OverrideTriple);
165 AddString(Conf.DefaultTriple);
166 AddString(Conf.DwoDir);
333 if (!Conf.SampleProfile.empty()) {
334 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile);
338 if (!Conf.ProfileRemapping.empty()) {
339 FileOrErr = MemoryBuffer::getFile(Conf.ProfileRemapping);
593 const Config &Conf)
595 Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)),
607 LTO::LTO(Config Conf, ThinBackend Backend,
609 : Conf(std::move(Conf)),
610 RegularLTO(ParallelCodeGenParallelismLevel, this->Conf),
615 if (Conf.KeepSymbolNameCopies || LTOKeepSymbolCopies) {
732 if (Conf.ResolutionFile)
733 writeToResolutionFile(*Conf.ResolutionFile, Input.get(), Res);
738 Conf.VisibilityScheme = Config::ELF;
1093 if (!Conf.ThinLTOModulesToCompile.empty()) {
1098 for (const std::string &Name : Conf.ThinLTOModulesToCompile) {
1191 isPrevailing, Conf.OptLevel > 0);
1194 auto StatsFileOrErr = setupStatsFile(Conf.StatsFile);
1253 RegularLTO.CombinedModule->getContext(), Conf.RemarksFilename,
1254 Conf.RemarksPasses, Conf.RemarksFormat, Conf.RemarksWithHotness,
1255 Conf.RemarksHotnessThreshold);
1307 Conf.HasWholeProgramVisibility &&
1310 (!Conf.ValidateAllVtablesHaveTypeInfos || Conf.AllVtablesHaveTypeInfos);
1323 DynamicExportSymbols, Conf.ValidateAllVtablesHaveTypeInfos,
1328 if (Conf.PreOptModuleHook &&
1329 !Conf.PreOptModuleHook(0, *RegularLTO.CombinedModule))
1332 if (!Conf.CodeGenOnly) {
1367 if (Conf.PostInternalizeModuleHook &&
1368 !Conf.PostInternalizeModuleHook(0, *RegularLTO.CombinedModule))
1372 if (!RegularLTO.EmptyCombinedModule || Conf.AlwaysEmitRegularLTOObj) {
1374 backend(Conf, AddStream, RegularLTO.ParallelCodeGenParallelismLevel,
1430 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1435 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries,
1456 LTOLLVMContext BackendContext(Conf);
1461 return thinBackend(Conf, Task, AddStream, **MOrErr, CombinedIndex,
1463 Conf.CodeGenOnly);
1482 Conf, CombinedIndex, ModuleID, ImportList, ExportList, ResolvedODR,
1512 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled)
1513 timeTraceProfilerInitialize(Conf.TimeTraceGranularity,
1525 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled)
1548 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1553 : InProcessThinBackend(Conf, CombinedIndex, ThinLTOParallelism,
1570 LTOLLVMContext BackendContext(Conf);
1575 return thinBackend(Conf, Task, CGAddStream, **MOrErr, CombinedIndex,
1577 Conf.CodeGenOnly, IRAddStream);
1600 Conf, CombinedIndex, ModuleID, ImportList, ExportList, ResolvedODR,
1642 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1648 : InProcessThinBackend(Conf, CombinedIndex, ThinLTOParallelism,
1665 LTOLLVMContext BackendContext(Conf);
1669 return thinBackend(Conf, Task, AddStream, *LoadedModule, CombinedIndex,
1685 Conf, CombinedIndex, ModuleID, ImportList, ExportList, ResolvedODR,
1710 [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1714 Conf, CombinedIndex, Parallelism, ModuleToDefinedGVSummaries,
1762 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1768 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries,
1831 [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex,
1835 Conf, CombinedIndex, Parallelism, ModuleToDefinedGVSummaries,
1859 if (Conf.CombinedIndexHook &&
1860 !Conf.CombinedIndexHook(ThinLTO.CombinedIndex, GUIDPreservedSymbols))
1891 Conf.HasWholeProgramVisibility &&
1894 (!Conf.ValidateAllVtablesHaveTypeInfos || Conf.AllVtablesHaveTypeInfos);
1903 Conf.ValidateAllVtablesHaveTypeInfos) {
1961 if (Conf.OptLevel > 0)
1993 thinLTOResolvePrevailingInIndex(Conf, ThinLTO.CombinedIndex, isPrevailing,
2047 ThinLTO.Backend(Conf, ThinLTO.CombinedIndex, ModuleToDefinedGVSummaries,
2070 Conf, ThinLTO.CombinedIndex, Parallelism, ModuleToDefinedGVSummaries,
2086 Conf, ThinLTO.CombinedIndex, Parallelism, ModuleToDefinedGVSummaries,