12 #ifndef LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H 13 #define LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H 20 class ProfileSummaryInfo;
21 class BlockFrequencyInfo;
22 class TargetTransformInfo;
23 class OptimizationRemarkEmitter;
24 class AssumptionCache;
26 class CodeExtractorAnalysisCache;
40 : PSI(ProfSI), GetBFI(GBFI), GetTTI(GTTI), GetORE(GORE), LookupAC(LAC) {}
44 bool isFunctionCold(
const Function &
F)
const;
45 bool shouldOutlineFrom(
const Function &F)
const;
46 bool outlineColdRegions(
Function &F,
bool HasProfileSummary);
56 std::function<OptimizationRemarkEmitter &(Function &)> *GetORE;
68 #endif // LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H HotColdSplitting(ProfileSummaryInfo *ProfSI, function_ref< BlockFrequencyInfo *(Function &)> GBFI, function_ref< TargetTransformInfo &(Function &)> GTTI, std::function< OptimizationRemarkEmitter &(Function &)> *GORE, function_ref< AssumptionCache *(Function &)> LAC)
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
Analysis providing profile information.
An efficient, type-erasing, non-owning reference to a callable.
A cache of @llvm.assume calls within a function.
A CRTP mix-in to automatically provide informational APIs needed for passes.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
A set of analyses that are preserved following a run of a transformation pass.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Pass to outline cold regions.
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.