Lines Matching defs:Index

138     const ModuleSummaryIndex &Index,
144 for (auto &I : Index) {
163 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index,
165 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations))
216 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index,
226 FunctionImporter Importer(Index, Loader, ClearDSOLocalOnDeclarations);
242 bool DebugPassManager, ModuleSummaryIndex *Index) {
291 MPM.addPass(PB.buildThinLTODefaultPipeline(OL, Index));
363 StringRef CachePath, const ModuleSummaryIndex &Index, StringRef ModuleID,
372 if (!Index.modulePaths().count(ModuleID))
376 if (all_of(Index.getModuleHash(ModuleID),
390 computeLTOCacheKey(Key, Conf, Index, ModuleID, ImportList, ExportList,
433 ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index,
454 promoteModule(TheModule, Index, ClearDSOLocalOnDeclarations);
474 crossImportIntoModule(TheModule, Index, ModuleMap, ImportList,
487 &Index);
497 auto Index = buildModuleSummaryIndex(TheModule, nullptr, &PSI);
498 WriteBitcodeToFile(TheModule, OS, true, &Index);
508 /// for caching, and in the \p Index for application during the ThinLTO
513 ModuleSummaryIndex &Index,
536 thinLTOResolvePrevailingInIndex(Conf, Index, isPrevailing, recordNewLinkage,
660 ModuleSummaryIndex &Index,
668 computeDeadSymbolsWithConstProp(Index, GUIDPreservedSymbols, isPrevailing,
674 * Index is updated to reflect linkage changes from weak resolution.
676 void ThinLTOCodeGenerator::promote(Module &TheModule, ModuleSummaryIndex &Index,
678 auto ModuleCount = Index.modulePaths().size();
683 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
693 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols);
697 computePrevailingCopies(Index, PrevailingCopy);
702 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries,
708 resolvePrevailingInIndex(Index, ResolvedODR, GUIDPreservedSymbols,
718 Index, IsExported(ExportLists, GUIDPreservedSymbols),
722 promoteModule(TheModule, Index, /*ClearDSOLocalOnDeclarations=*/false);
729 ModuleSummaryIndex &Index,
732 auto ModuleCount = Index.modulePaths().size();
736 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
745 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols);
749 computePrevailingCopies(Index, PrevailingCopy);
754 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries,
760 crossImportIntoModule(TheModule, Index, ModuleMap, ImportList,
768 Module &TheModule, ModuleSummaryIndex &Index,
771 auto ModuleCount = Index.modulePaths().size();
776 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
785 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols);
789 computePrevailingCopies(Index, PrevailingCopy);
794 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries,
807 ModuleSummaryIndex &Index,
809 auto ModuleCount = Index.modulePaths().size();
814 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
823 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols);
827 computePrevailingCopies(Index, PrevailingCopy);
832 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries,
854 * Index is updated to reflect linkage changes.
857 ModuleSummaryIndex &Index,
860 auto ModuleCount = Index.modulePaths().size();
871 Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
874 computeDeadSymbolsInIndex(Index, GUIDPreservedSymbols);
878 computePrevailingCopies(Index, PrevailingCopy);
883 ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries,
895 resolvePrevailingInIndex(Index, ResolvedODR, GUIDPreservedSymbols,
901 Index, IsExported(ExportLists, GUIDPreservedSymbols),
905 promoteModule(TheModule, Index, /*ClearDSOLocalOnDeclarations=*/false);
1013 auto Index = linkCombinedIndex();
1023 writeIndexToFile(*Index, OS);
1033 Index->collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
1047 computeDeadSymbolsInIndex(*Index, GUIDPreservedSymbols);
1050 computeSyntheticCounts(*Index);
1056 Index->setWithWholeProgramVisibility();
1059 updateVCallVisibilityInIndex(*Index,
1071 runWholeProgramDevirtOnIndex(*Index, ExportedGUIDs, LocalWPDTargetsMap);
1077 computePrevailingCopies(*Index, PrevailingCopy);
1083 ComputeCrossModuleImport(*Index, ModuleToDefinedGVSummaries,
1095 resolvePrevailingInIndex(*Index, ResolvedODR, GUIDPreservedSymbols,
1101 updateIndexWPDForExports(*Index,
1105 *Index, IsExported(ExportLists, GUIDPreservedSymbols),
1108 thinLTOPropagateFunctionAttrs(*Index, IsPrevailing(PrevailingCopy));
1144 ModuleCacheEntry CacheEntry(CacheOptions.Path, *Index, ModuleIdentifier,
1190 *TheModule, *Index, ModuleMap, *TMBuilder.create(), ImportList,