|
LLVM 23.0.0git
|
A CRTP mix-in to automatically provide informational APIs needed for passes. More...
#include "llvm/IR/PassManager.h"
Inherits llvm::detail::InfoMixin< DerivedT >.
Inherited by llvm::OptionalPassInfoMixin< DerivedT >, and llvm::RequiredPassInfoMixin< DerivedT >.
Public Member Functions | |
| void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
| static bool | isRequired () |
| Static Public Member Functions inherited from llvm::detail::InfoMixin< DerivedT > | |
| static StringRef | name () |
| Gets the name of the pass we are mixed into. | |
A CRTP mix-in to automatically provide informational APIs needed for passes.
This provides some boilerplate for types that are passes.
Actual passes should inherit from RequiredPassInfoMixin or OptionalPassInfoMixin.
TODO: move to a detail namespace once we've branched for LLVM 23.
Definition at line 89 of file PassManager.h.
|
inlinestatic |
Definition at line 98 of file PassManager.h.
|
inline |
Definition at line 90 of file PassManager.h.
References PassName.
Referenced by llvm::LintPass::printPipeline().