14 #ifndef LLVM_ANALYSIS_MODULESUMMARYANALYSIS_H 15 #define LLVM_ANALYSIS_MODULESUMMARYANALYSIS_H 25 class BlockFrequencyInfo;
28 class ProfileSummaryInfo;
38 std::function<BlockFrequencyInfo *(
const Function &
F)> GetBFICallback,
39 ProfileSummaryInfo *PSI);
67 bool runOnModule(
Module &M)
override;
68 bool doFinalization(
Module &M)
override;
81 #endif // LLVM_ANALYSIS_MODULESUMMARYANALYSIS_H This class represents lattice values for constants.
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.
const ModuleSummaryIndex & getIndex() const
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...
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)
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()
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.