MLIR
19.0.0git
|
PassPipelineRegistration provides a global initializer that registers a Pass pipeline builder routine. More...
#include "mlir/Pass/PassRegistry.h"
Public Member Functions | |
PassPipelineRegistration (StringRef arg, StringRef description, std::function< void(OpPassManager &, const Options &options)> builder) | |
PassPipelineRegistration provides a global initializer that registers a Pass pipeline builder routine.
Usage:
// At namespace scope. void pipelineBuilder(OpPassManager &pm) { pm.addPass(new MyPass()); pm.addPass(new MyOtherPass()); }
static PassPipelineRegistration Unused("unused", "Unused pass", pipelineBuilder);
Definition at line 174 of file PassRegistry.h.
|
inline |
Definition at line 175 of file PassRegistry.h.
References mlir::failed(), mlir::failure(), options, mlir::registerPassPipeline(), and mlir::success().