MLIR
20.0.0git
|
PassRegistration provides a global initializer that registers a Pass allocation routine for a concrete pass instance. More...
#include "mlir/Pass/PassRegistry.h"
Public Member Functions | |
PassRegistration (const PassAllocatorFunction &constructor) | |
PassRegistration () | |
PassRegistration provides a global initializer that registers a Pass allocation routine for a concrete pass instance.
The argument is optional and provides a callback to construct a pass that does not have a default constructor.
Usage:
/// At namespace scope. static PassRegistration<MyPass> reg;
Definition at line 155 of file PassRegistry.h.
|
inline |
Definition at line 156 of file PassRegistry.h.
References mlir::registerPass().
|
inline |
Definition at line 159 of file PassRegistry.h.