Lines Matching refs:Index
137 const ModuleSummaryIndex &Index, in computePrevailingCopies() argument
143 for (auto &I : Index) { in computePrevailingCopies()
162 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument
164 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations)) in promoteModule()
215 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
225 FunctionImporter Importer(Index, Loader, ClearDSOLocalOnDeclarations); in crossImportIntoModule()
241 bool DebugPassManager, ModuleSummaryIndex *Index) { in optimizeModule() argument
290 MPM.addPass(PB.buildThinLTODefaultPipeline(OL, Index)); in optimizeModule()
362 StringRef CachePath, const ModuleSummaryIndex &Index, StringRef ModuleID, in ModuleCacheEntry() argument
371 if (!Index.modulePaths().count(ModuleID)) in ModuleCacheEntry()
375 if (all_of(Index.getModuleHash(ModuleID), in ModuleCacheEntry()
389 computeLTOCacheKey(Key, Conf, Index, ModuleID, ImportList, ExportList, in ModuleCacheEntry()
432 ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index, in ProcessThinLTOModule() argument
453 promoteModule(TheModule, Index, ClearDSOLocalOnDeclarations); in ProcessThinLTOModule()
473 crossImportIntoModule(TheModule, Index, ModuleMap, ImportList, in ProcessThinLTOModule()
486 &Index); in ProcessThinLTOModule()
496 auto Index = buildModuleSummaryIndex(TheModule, nullptr, &PSI); in ProcessThinLTOModule() local
497 WriteBitcodeToFile(TheModule, OS, true, &Index); in ProcessThinLTOModule()
512 ModuleSummaryIndex &Index, in resolvePrevailingInIndex() argument
535 thinLTOResolvePrevailingInIndex(Conf, Index, isPrevailing, recordNewLinkage, in resolvePrevailingInIndex()
668 ModuleSummaryIndex &Index, in computeDeadSymbolsInIndex() argument
676 computeDeadSymbolsWithConstProp(Index, GUIDPreservedSymbols, isPrevailing, in computeDeadSymbolsInIndex()
684 void ThinLTOCodeGenerator::promote(Module &TheModule, ModuleSummaryIndex &Index, in promote() argument
686 auto ModuleCount = Index.modulePaths().size(); in promote()
691 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in promote()
701 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols); in promote()
705 computePrevailingCopies(Index, PrevailingCopy); in promote()
710 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, in promote()
716 resolvePrevailingInIndex(Index, ResolvedODR, GUIDPreservedSymbols, in promote()
726 Index, IsExported(ExportLists, GUIDPreservedSymbols), in promote()
730 promoteModule(TheModule, Index, /*ClearDSOLocalOnDeclarations=*/false); in promote()
737 ModuleSummaryIndex &Index, in crossModuleImport() argument
740 auto ModuleCount = Index.modulePaths().size(); in crossModuleImport()
744 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in crossModuleImport()
753 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols); in crossModuleImport()
757 computePrevailingCopies(Index, PrevailingCopy); in crossModuleImport()
762 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, in crossModuleImport()
768 crossImportIntoModule(TheModule, Index, ModuleMap, ImportList, in crossModuleImport()
776 Module &TheModule, ModuleSummaryIndex &Index, in gatherImportedSummariesForModule() argument
779 auto ModuleCount = Index.modulePaths().size(); in gatherImportedSummariesForModule()
784 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in gatherImportedSummariesForModule()
793 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols); in gatherImportedSummariesForModule()
797 computePrevailingCopies(Index, PrevailingCopy); in gatherImportedSummariesForModule()
802 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, in gatherImportedSummariesForModule()
815 ModuleSummaryIndex &Index, in emitImports() argument
817 auto ModuleCount = Index.modulePaths().size(); in emitImports()
822 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in emitImports()
831 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols); in emitImports()
835 computePrevailingCopies(Index, PrevailingCopy); in emitImports()
840 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, in emitImports()
861 ModuleSummaryIndex &Index, in internalize() argument
864 auto ModuleCount = Index.modulePaths().size(); in internalize()
875 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in internalize()
878 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols); in internalize()
882 computePrevailingCopies(Index, PrevailingCopy); in internalize()
887 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, in internalize()
899 resolvePrevailingInIndex(Index, ResolvedODR, GUIDPreservedSymbols, in internalize()
905 Index, IsExported(ExportLists, GUIDPreservedSymbols), in internalize()
909 promoteModule(TheModule, Index, /*ClearDSOLocalOnDeclarations=*/false); in internalize()
1017 auto Index = linkCombinedIndex(); in run() local
1027 writeIndexToFile(*Index, OS); in run()
1037 Index->collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); in run()
1051 computeDeadSymbolsInIndex(*Index, GUIDPreservedSymbols); in run()
1054 computeSyntheticCounts(*Index); in run()
1060 Index->setWithWholeProgramVisibility(); in run()
1063 updateVCallVisibilityInIndex(*Index, in run()
1075 runWholeProgramDevirtOnIndex(*Index, ExportedGUIDs, LocalWPDTargetsMap); in run()
1081 computePrevailingCopies(*Index, PrevailingCopy); in run()
1087 ComputeCrossModuleImport(*Index, ModuleToDefinedGVSummaries, in run()
1099 resolvePrevailingInIndex(*Index, ResolvedODR, GUIDPreservedSymbols, in run()
1105 updateIndexWPDForExports(*Index, in run()
1109 *Index, IsExported(ExportLists, GUIDPreservedSymbols), in run()
1112 thinLTOPropagateFunctionAttrs(*Index, IsPrevailing(PrevailingCopy)); in run()
1148 ModuleCacheEntry CacheEntry(CacheOptions.Path, *Index, ModuleIdentifier, in run()
1194 *TheModule, *Index, ModuleMap, *TMBuilder.create(), ImportList, in run()