My Project
Public Member Functions | List of all members
mlir::PassRegistration< ConcretePass > Struct Template Reference

#include <PassRegistry.h>

Public Member Functions

 PassRegistration (StringRef arg, StringRef description, const PassAllocatorFunction &constructor)
 
 PassRegistration (StringRef arg, StringRef description)
 

Detailed Description

template<typename ConcretePass>
struct mlir::PassRegistration< ConcretePass >

PassRegistration provides a global initializer that registers a Pass allocation routine for a concrete pass instance. The third 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("my-pass", "My Pass Description.");

Constructor & Destructor Documentation

◆ PassRegistration() [1/2]

template<typename ConcretePass >
mlir::PassRegistration< ConcretePass >::PassRegistration ( StringRef  arg,
StringRef  description,
const PassAllocatorFunction constructor 
)
inline

◆ PassRegistration() [2/2]

template<typename ConcretePass >
mlir::PassRegistration< ConcretePass >::PassRegistration ( StringRef  arg,
StringRef  description 
)
inline

The documentation for this struct was generated from the following file: