14 #ifndef LLVM_ANALYSIS_MODULESUMMARYANALYSIS_H
15 #define LLVM_ANALYSIS_MODULESUMMARYANALYSIS_H
23 class BlockFrequencyInfo;
24 class ProfileSummaryInfo;
34 std::function<BlockFrequencyInfo *(
const Function &
F)> GetBFICallback,
35 ProfileSummaryInfo *PSI);
A Module instance is used to store all the information related to an LLVM module. ...
Analysis pass to provide the ModuleSummaryIndex object.
ModuleSummaryIndex buildModuleSummaryIndex(const Module &M, std::function< BlockFrequencyInfo *(const Function &F)> GetBFICallback, ProfileSummaryInfo *PSI)
Direct function to compute a ModuleSummaryIndex from a given module.
ModuleSummaryIndex & getIndex()
Get the index built by pass.
Class to hold module path string table and global value map, and encapsulate methods for operating on...
bool doFinalization(Module &M) override
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
const ModuleSummaryIndex & getIndex() const
A CRTP mix-in that provides informational APIs needed for analysis passes.
Represent the analysis usage information of a pass.
Result run(Module &M, ModuleAnalysisManager &AM)
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
ModuleSummaryIndex Result
ModuleSummaryIndexWrapperPass()
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
ModuleSummaryIndex.h This file contains the declarations the classes that hold the module index and s...
ModulePass * createModuleSummaryIndexWrapperPass()
bool runOnModule(Module &M) override
runOnModule - Virtual method overriden by subclasses to process the module being operated on...
print Print MemDeps of function
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.
A special type used by analysis passes to provide an address that identifies that particular analysis...
Legacy wrapper pass to provide the ModuleSummaryIndex object.