Home
last modified time | relevance | path

Searched refs:ModuleSummaryIndex (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project/llvm/include/llvm/Analysis/
H A DModuleSummaryAnalysis.h36 ModuleSummaryIndex buildModuleSummaryIndex(
51 using Result = ModuleSummaryIndex;
58 std::optional<ModuleSummaryIndex> Index;
66 ModuleSummaryIndex &getIndex() { return *Index; } in getIndex()
67 const ModuleSummaryIndex &getIndex() const { return *Index; } in getIndex()
83 const ModuleSummaryIndex *Index;
89 const ModuleSummaryIndex *Index = nullptr);
90 const ModuleSummaryIndex *getIndex() const { return Index; } in getIndex()
100 createImmutableModuleSummaryIndexWrapperPass(const ModuleSummaryIndex *Index);
H A DStackSafetyAnalysis.h55 getParamAccesses(ModuleSummaryIndex &Index) const;
65 const ModuleSummaryIndex *Index = nullptr;
73 const ModuleSummaryIndex *Index);
171 void generateParamAccessSummary(ModuleSummaryIndex &Index);
/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeWriter.h17 #include "llvm/IR/ModuleSummaryIndex.h"
90 const ModuleSummaryIndex *Index = nullptr,
100 void writeThinLinkBitcode(const Module &M, const ModuleSummaryIndex &Index,
103 void writeIndex(const ModuleSummaryIndex *Index,
131 const ModuleSummaryIndex *Index = nullptr,
143 const ModuleSummaryIndex &Index,
153 const ModuleSummaryIndex &Index, raw_ostream &Out,
H A DBitcodeReader.h36 class ModuleSummaryIndex; variable
155 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
160 readSummary(ModuleSummaryIndex &CombinedIndex, StringRef ModulePath,
222 Expected<std::unique_ptr<ModuleSummaryIndex>>
227 ModuleSummaryIndex &CombinedIndex);
233 Expected<std::unique_ptr<ModuleSummaryIndex>>
/llvm-project/llvm/include/llvm/LTO/
H A DLTOBackend.h21 #include "llvm/IR/ModuleSummaryIndex.h"
38 bool IsThinLTO, ModuleSummaryIndex *ExportSummary,
39 const ModuleSummaryIndex *ImportSummary,
46 ModuleSummaryIndex &CombinedIndex);
58 Module &M, const ModuleSummaryIndex &CombinedIndex,
77 bool initImportList(const Module &M, const ModuleSummaryIndex &CombinedIndex,
H A DLTO.h23 #include "llvm/IR/ModuleSummaryIndex.h"
51 const lto::Config &C, ModuleSummaryIndex &Index,
62 ModuleSummaryIndex &Index,
70 const lto::Config &Conf, const ModuleSummaryIndex &Index,
108 void updateMemProfAttributes(Module &Mod, const ModuleSummaryIndex &Index);
206 ModuleSummaryIndex &CombinedIndex;
216 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
254 const Config &C, ModuleSummaryIndex &CombinedIndex,
269 const Config &Conf, ModuleSummaryIndex &CombinedIndex,
423 ModuleSummaryIndex CombinedInde
[all...]
H A DSummaryBasedOptimizations.h
/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h33 class ModuleSummaryIndex; variable
225 ModuleSummaryIndex *ExportSummary;
226 const ModuleSummaryIndex *ImportSummary;
230 WholeProgramDevirtPass(ModuleSummaryIndex *ExportSummary, in WholeProgramDevirtPass()
231 const ModuleSummaryIndex *ImportSummary) in WholeProgramDevirtPass()
251 ModuleSummaryIndex &Index, bool WholeProgramVisibilityEnabledInLTO,
256 ModuleSummaryIndex &Index,
268 ModuleSummaryIndex &Summary, std::set<GlobalValue::GUID> &ExportedGUIDs,
274 ModuleSummaryIndex &Summary,
H A DMemProfContextDisambiguation.h20 #include "llvm/IR/ModuleSummaryIndex.h"
73 const ModuleSummaryIndex *ImportSummary;
77 std::unique_ptr<ModuleSummaryIndex> ImportSummaryForTesting;
89 MemProfContextDisambiguation(const ModuleSummaryIndex *Summary = nullptr,
94 void run(ModuleSummaryIndex &Index,
H A DFunctionImport.h16 #include "llvm/IR/ModuleSummaryIndex.h"
181 /// typically by the in-memory ModuleSummaryIndex the importing decisions are
309 FunctionImporter(const ModuleSummaryIndex &Index, ModuleLoaderTy ModuleLoader,
319 const ModuleSummaryIndex &Index;
353 /// are owned by the in-memory ModuleSummaryIndex the importing decisions
357 const ModuleSummaryIndex &Index,
373 void updateIndirectCalls(ModuleSummaryIndex &Index);
383 ModuleSummaryIndex &Index,
390 ModuleSummaryIndex &Index,
H A DLowerTypeTests.h28 class ModuleSummaryIndex; variable
210 ModuleSummaryIndex *ExportSummary = nullptr;
211 const ModuleSummaryIndex *ImportSummary = nullptr;
217 LowerTypeTestsPass(ModuleSummaryIndex *ExportSummary,
218 const ModuleSummaryIndex *ImportSummary,
H A DFunctionAttrs.h26 class ModuleSummaryIndex; variable
36 ModuleSummaryIndex &Index,
/llvm-project/llvm/include/llvm/AsmParser/
H A DParser.h28 class ModuleSummaryIndex;
67 /// Holds the Module and ModuleSummaryIndex returned by the interfaces
71 std::unique_ptr<ModuleSummaryIndex> Index;
77 /// a ModuleSummaryIndex with the corresponding features. Note that this does
101 /// summary. It returns a ModuleSummaryIndex with the corresponding features.
107 std::unique_ptr<ModuleSummaryIndex>
112 /// summary. It returns a a ModuleSummaryIndex with the corresponding features.
118 std::unique_ptr<ModuleSummaryIndex>
154 std::unique_ptr<ModuleSummaryIndex>
171 MemoryBufferRef F, Module *M, ModuleSummaryIndex *Inde
27 class ModuleSummaryIndex; global() variable
[all...]
/llvm-project/llvm/lib/AsmParser/
H A DParser.cpp17 #include "llvm/IR/ModuleSummaryIndex.h"
25 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto()
39 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto()
81 std::unique_ptr<ModuleSummaryIndex> Index = in parseAssemblyWithIndex()
82 std::make_unique<ModuleSummaryIndex>(/*HaveGVs=*/true); in parseAssemblyWithIndex()
145 ModuleSummaryIndex &Index, in parseSummaryIndexAssemblyInto()
158 std::unique_ptr<ModuleSummaryIndex> in parseSummaryIndexAssembly()
160 std::unique_ptr<ModuleSummaryIndex> Index = in parseSummaryIndexAssembly()
161 std::make_unique<ModuleSummaryIndex>(/*HaveGVs=*/false); in parseSummaryIndexAssembly()
169 std::unique_ptr<ModuleSummaryIndex> in parseSummaryIndexAssemblyFile()
[all...]
/llvm-project/llvm/include/llvm/LTO/legacy/
H A DThinLTOCodeGenerator.h20 #include "llvm/IR/ModuleSummaryIndex.h"
256 std::unique_ptr<ModuleSummaryIndex> linkCombinedIndex();
263 void promote(Module &Module, ModuleSummaryIndex &Index,
270 ModuleSummaryIndex &Index,
277 void crossModuleImport(Module &Module, ModuleSummaryIndex &Index,
285 Module &Module, ModuleSummaryIndex &Index,
292 void internalize(Module &Module, ModuleSummaryIndex &Index,
/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp1 //===-- ModuleSummaryIndex.cpp - Module Summary Index ---------------------===//
14 #include "llvm/IR/ModuleSummaryIndex.h"
91 constexpr uint64_t ModuleSummaryIndex::BitcodeSummaryVersion;
93 uint64_t ModuleSummaryIndex::getFlags() const { in getFlags()
117 void ModuleSummaryIndex::setFlags(uint64_t Flags) { in setFlags()
161 void ModuleSummaryIndex::collectDefinedFunctionsForModule(
179 ModuleSummaryIndex::getGlobalValueSummary(uint64_t ValueGUID, in collectDefinedFunctionsForModule()
189 bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const { in getGlobalValueSummary()
259 void ModuleSummaryIndex::propagateAttributes(
329 bool ModuleSummaryIndex in propagateAttributes()
[all...]
/llvm-project/llvm/unittests/IR/
H A DModuleSummaryIndexTest.cpp1 //===- ModuleSummaryIndexTest.cpp - ModuleSummaryIndex Unit Tests-============//
9 #include "llvm/IR/ModuleSummaryIndex.h"
18 static std::unique_ptr<ModuleSummaryIndex> makeLLVMIndex(const char *Summary) { in makeLLVMIndex()
20 std::unique_ptr<ModuleSummaryIndex> Index = in makeLLVMIndex()
28 std::unique_ptr<ModuleSummaryIndex> Index = makeLLVMIndex(R"Summary( in TEST()
/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp29 #include "llvm/IR/ModuleSummaryIndex.h"
221 const ModuleSummaryIndex &Index, in qualifyCalleeCandidates()
292 selectCallee(const ModuleSummaryIndex &Index, in selectCallee()
385 const ModuleSummaryIndex &Index; in onImportingSummaryImpl()
472 const ModuleSummaryIndex &Index, const GVSummaryMapTy &DefinedGVSummaries,
496 const ModuleSummaryIndex &Index; in computeImportForModule()
502 const ModuleSummaryIndex &Index, in computeImportForModule()
520 const ModuleSummaryIndex &Index, in computeImportForModule()
767 const ModuleSummaryIndex &Index, in computeImportForFunction()
795 const ModuleSummaryIndex in computeImportForFunction()
[all...]
H A DWholeProgramDevirt.cpp580 ModuleSummaryIndex *ExportSummary;
581 const ModuleSummaryIndex *ImportSummary;
621 ModuleSummaryIndex *ExportSummary,
622 const ModuleSummaryIndex *ImportSummary)
651 ModuleSummaryIndex *ExportSummary);
655 bool trySingleImplDevirt(ModuleSummaryIndex *ExportSummary,
730 ModuleSummaryIndex *ExportSummary); in DevirtIndex()
741 ModuleSummaryIndex *ExportSummary);
752 ModuleSummaryIndex &ExportSummary;
766 ModuleSummaryIndex in run()
[all...]
/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h18 #include "llvm/IR/ModuleSummaryIndex.h"
30 const ModuleSummaryIndex &ImportIndex;
36 /// Set to true if the given ModuleSummaryIndex contains any functions
101 FunctionImportGlobalProcessing(Module &M, const ModuleSummaryIndex &Index, in FunctionImportGlobalProcessing()
106 // If we have a ModuleSummaryIndex but no function to import, in FunctionImportGlobalProcessing()
129 Module &M, const ModuleSummaryIndex &Index,
/llvm-project/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp
H A DThinLTOCodeGenerator.cpp136 const ModuleSummaryIndex &Index,
161 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in generateModuleMap()
213 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in loadModuleFromInput()
239 bool DebugPassManager, ModuleSummaryIndex *Index) {
357 StringRef CachePath, const ModuleSummaryIndex &Index, StringRef ModuleID,
428 ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index, in write()
508 ModuleSummaryIndex &Index,
603 std::unique_ptr<ModuleSummaryIndex> ThinLTOCodeGenerator::linkCombinedIndex() { in create()
604 std::unique_ptr<ModuleSummaryIndex> CombinedIndex = in create()
605 std::make_unique<ModuleSummaryIndex>(/*HaveGV in create()
[all...]
H A DLTOBackend.cpp135 [=](const ModuleSummaryIndex &Index, in addSaveTemps()
238 ModuleSummaryIndex *ExportSummary, in runNewPMPasses()
239 const ModuleSummaryIndex *ImportSummary) { in runNewPMPasses()
363 bool IsThinLTO, ModuleSummaryIndex *ExportSummary, in opt()
364 const ModuleSummaryIndex *ImportSummary, in opt()
398 const ModuleSummaryIndex &CombinedIndex) { in codegen()
463 const ModuleSummaryIndex &CombinedIndex) { in splitCodeGen()
542 ModuleSummaryIndex &CombinedIndex) { in dropDeadSymbols()
567 const ModuleSummaryIndex &Index) { in thinBackend()
588 Module &Mod, const ModuleSummaryIndex in thinBackend()
[all...]
/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp9 // This pass builds a ModuleSummaryIndex object for the module, to be written
45 #include "llvm/IR/ModuleSummaryIndex.h"
107 findRefEdges(ModuleSummaryIndex &Index, const User *CurUser, in findRefEdges()
303 ModuleSummaryIndex &Index, const Module &M, const Function &F, in computeFunctionSummary()
721 const Module &M, ModuleSummaryIndex &Index, in findFuncPointers()
792 static void computeVTableFuncs(ModuleSummaryIndex &Index, in computeVariableSummary()
816 recordTypeIdCompatibleVtableReferences(ModuleSummaryIndex &Index, in computeVariableSummary()
833 static void computeVariableSummary(ModuleSummaryIndex &Index, in computeVariableSummary()
884 static void computeAliasSummary(ModuleSummaryIndex &Index, const GlobalAlias &A, in buildModuleSummaryIndex()
908 static void setLiveRoot(ModuleSummaryIndex in buildModuleSummaryIndex()
[all...]
/llvm-project/llvm/tools/llvm-as/
H A Dllvm-as.cpp21 #include "llvm/IR/ModuleSummaryIndex.h"
72 static void WriteOutputFile(const Module *M, const ModuleSummaryIndex *Index) {
93 const ModuleSummaryIndex *IndexToWrite = nullptr; in WriteOutputFile()
150 std::unique_ptr<ModuleSummaryIndex> Index = std::move(ModuleAndIndex.Index); in main()

123