MLIR
20.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 177 of file PassRegistry.h.
|
inline |
Definition at line 178 of file PassRegistry.h.
References options, and mlir::registerPassPipeline().