Lines Matching refs:Conf
79 SmallString<40> &Key, const Config &Conf, const ModuleSummaryIndex &Index, in computeLTOCacheKey() argument
113 AddString(Conf.CPU); in computeLTOCacheKey()
118 AddUnsigned(Conf.Options.RelaxELFRelocations); in computeLTOCacheKey()
119 AddUnsigned(Conf.Options.FunctionSections); in computeLTOCacheKey()
120 AddUnsigned(Conf.Options.DataSections); in computeLTOCacheKey()
121 AddUnsigned((unsigned)Conf.Options.DebuggerTuning); in computeLTOCacheKey()
122 for (auto &A : Conf.MAttrs) in computeLTOCacheKey()
124 if (Conf.RelocModel) in computeLTOCacheKey()
125 AddUnsigned(*Conf.RelocModel); in computeLTOCacheKey()
128 if (Conf.CodeModel) in computeLTOCacheKey()
129 AddUnsigned(*Conf.CodeModel); in computeLTOCacheKey()
132 AddUnsigned(Conf.CGOptLevel); in computeLTOCacheKey()
133 AddUnsigned(Conf.CGFileType); in computeLTOCacheKey()
134 AddUnsigned(Conf.OptLevel); in computeLTOCacheKey()
135 AddUnsigned(Conf.UseNewPM); in computeLTOCacheKey()
136 AddUnsigned(Conf.Freestanding); in computeLTOCacheKey()
137 AddString(Conf.OptPipeline); in computeLTOCacheKey()
138 AddString(Conf.AAPipeline); in computeLTOCacheKey()
139 AddString(Conf.OverrideTriple); in computeLTOCacheKey()
140 AddString(Conf.DefaultTriple); in computeLTOCacheKey()
141 AddString(Conf.DwoDir); in computeLTOCacheKey()
305 if (!Conf.SampleProfile.empty()) { in computeLTOCacheKey()
306 auto FileOrErr = MemoryBuffer::getFile(Conf.SampleProfile); in computeLTOCacheKey()
310 if (!Conf.ProfileRemapping.empty()) { in computeLTOCacheKey()
311 FileOrErr = MemoryBuffer::getFile(Conf.ProfileRemapping); in computeLTOCacheKey()
510 const Config &Conf) in RegularLTOState() argument
512 Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)), in RegularLTOState()
522 LTO::LTO(Config Conf, ThinBackend Backend, in LTO() argument
524 : Conf(std::move(Conf)), in LTO()
525 RegularLTO(ParallelCodeGenParallelismLevel, this->Conf), in LTO()
616 if (Conf.ResolutionFile) in add()
617 writeToResolutionFile(*Conf.ResolutionFile, Input.get(), Res); in add()
622 Conf.VisibilityScheme = Config::ELF; in add()
932 if (!Conf.ThinLTOModulesToCompile.empty()) { in addThinLTO()
937 for (const std::string &Name : Conf.ThinLTOModulesToCompile) { in addThinLTO()
1025 isPrevailing, Conf.OptLevel > 0); in run()
1028 auto StatsFileOrErr = setupStatsFile(Conf.StatsFile); in run()
1046 RegularLTO.CombinedModule->getContext(), Conf.RemarksFilename, in runRegularLTO()
1047 Conf.RemarksPasses, Conf.RemarksFormat, Conf.RemarksWithHotness, in runRegularLTO()
1048 Conf.RemarksHotnessThreshold); in runRegularLTO()
1098 Conf.HasWholeProgramVisibility, in runRegularLTO()
1101 if (Conf.PreOptModuleHook && in runRegularLTO()
1102 !Conf.PreOptModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1105 if (!Conf.CodeGenOnly) { in runRegularLTO()
1127 if (Conf.PostInternalizeModuleHook && in runRegularLTO()
1128 !Conf.PostInternalizeModuleHook(0, *RegularLTO.CombinedModule)) in runRegularLTO()
1132 if (!RegularLTO.EmptyCombinedModule || Conf.AlwaysEmitRegularLTOObj) { in runRegularLTO()
1134 backend(Conf, AddStream, RegularLTO.ParallelCodeGenParallelismLevel, in runRegularLTO()
1155 const Config &Conf; member in lto::ThinBackendProc
1160 ThinBackendProc(const Config &Conf, ModuleSummaryIndex &CombinedIndex, in ThinBackendProc() argument
1162 : Conf(Conf), CombinedIndex(CombinedIndex), in ThinBackendProc()
1189 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in InProcessThinBackend() argument
1193 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries), in InProcessThinBackend()
1213 LTOLLVMContext BackendContext(Conf); in runThinLTOBackendThread()
1218 return thinBackend(Conf, Task, AddStream, **MOrErr, CombinedIndex, in runThinLTOBackendThread()
1233 computeLTOCacheKey(Key, Conf, CombinedIndex, ModuleID, ImportList, in runThinLTOBackendThread()
1260 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1261 timeTraceProfilerInitialize(Conf.TimeTraceGranularity, in start()
1273 if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled) in start()
1296 return [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createInProcessThinBackend()
1300 Conf, CombinedIndex, Parallelism, ModuleToDefinedGVSummaries, AddStream, in createInProcessThinBackend()
1334 const Config &Conf, ModuleSummaryIndex &CombinedIndex, in WriteIndexesThinBackend() argument
1338 : ThinBackendProc(Conf, CombinedIndex, ModuleToDefinedGVSummaries), in WriteIndexesThinBackend()
1390 return [=](const Config &Conf, ModuleSummaryIndex &CombinedIndex, in createWriteIndexesThinBackend()
1394 Conf, CombinedIndex, ModuleToDefinedGVSummaries, OldPrefix, NewPrefix, in createWriteIndexesThinBackend()
1409 if (Conf.CombinedIndexHook && in runThinLTO()
1410 !Conf.CombinedIndexHook(ThinLTO.CombinedIndex, GUIDPreservedSymbols)) in runThinLTO()
1447 Conf.HasWholeProgramVisibility, in runThinLTO()
1457 if (Conf.OptLevel > 0) in runThinLTO()
1510 thinLTOResolvePrevailingInIndex(Conf, ThinLTO.CombinedIndex, isPrevailing, in runThinLTO()
1516 ThinLTO.Backend(Conf, ThinLTO.CombinedIndex, ModuleToDefinedGVSummaries, in runThinLTO()