14 #ifndef LLVM_TRANSFORMS_IPO_PASSMANAGERBUILDER_H 15 #define LLVM_TRANSFORMS_IPO_PASSMANAGERBUILDER_H 23 class ModuleSummaryIndex;
25 class TargetLibraryInfoImpl;
31 class PassManagerBase;
190 std::vector<std::pair<ExtensionPointTy, ExtensionFn>> Extensions;
208 static void removeGlobalExtension(GlobalExtensionID ExtensionID);
Pass interface - Implemented by all 'passes'.
RegisterStandardPasses(PassManagerBuilder::ExtensionPointTy Ty, PassManagerBuilder::ExtensionFn Fn)
PassManagerBuilder - This class is used to set up a standard optimization sequence for languages like...
bool EnablePGOInstrGen
Enable profile instrumentation pass.
~RegisterStandardPasses()
This class represents lattice values for constants.
bool EnablePGOCSInstrUse
Enable profile context sensitive profile use pass.
static GlobalExtensionID addGlobalExtension(ExtensionPointTy Ty, ExtensionFn Fn)
Adds an extension that will be used by all PassManagerBuilder instances.
EP_ScalarOptimizerLate - This extension point allows adding optimization passes after most of the mai...
Implementation of the target library information.
std::string PGOSampleUse
Path of the sample Profile data file.
Pass * Inliner
Inliner - Specifies the inliner to use.
EP_ModuleOptimizerEarly - This extension point allows adding passes just before the main module-level...
bool EnablePGOCSInstrGen
Enable profile context sensitive instrumentation pass.
EP_EnabledOnOptLevel0 - This extension point allows adding passes that should not be disabled by O0 o...
std::function< void(const PassManagerBuilder &Builder, legacy::PassManagerBase &PM)> ExtensionFn
Extensions are passed to the builder itself (so they can see how it is configured) as well as the pas...
unsigned OptLevel
The Optimization Level - Specify the basic optimization level.
Class to hold module path string table and global value map, and encapsulate methods for operating on...
std::string PGOInstrUse
Path of the profile data file.
TargetLibraryInfoImpl * LibraryInfo
LibraryInfo - Specifies information about the runtime library for the optimizer.
FunctionPassManager manages FunctionPasses.
EP_OptimizerLast – This extension point allows adding passes that run after everything else...
EP_EarlyAsPossible - This extension point allows adding passes before any other transformations, allowing them to see the code as it is coming out of the frontend.
EP_CGSCCOptimizerLate - This extension point allows adding CallGraphSCC passes at the end of the main...
EP_VectorizerStart - This extension point allows adding optimization passes before the vectorizer and...
print lazy value Lazy Value Info Printer Pass
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
EP_FullLinkTimeOptimizationLast - This extensions point allow adding passes that run at Link Time...
EP_Peephole - This extension point allows adding passes that perform peephole optimizations similar t...
std::string PGOInstrGen
Profile data file name that the instrumentation will be written to.
Registers a function for adding a standard set of passes.
unsigned SizeLevel
SizeLevel - How much we're optimizing for size.
PassManager< Function > FunctionPassManager
Convenience typedef for a pass manager over functions.
static void removeGlobalExtension(GlobalExtensionID ExtensionID)
Removes an extension that was previously added using addGlobalExtension.
print Print MemDeps of function
unsigned LicmMssaNoAccForPromotionCap
EP_FullLinkTimeOptimizationEarly - This extensions point allow adding passes that run at Link Time...
EP_LateLoopOptimizations - This extension point allows adding late loop canonicalization and simplifi...
bool ForgetAllSCEVInLoopUnroll
EP_LoopOptimizerEnd - This extension point allows adding loop passes to the end of the loop optimizer...