MLIR  20.0.0git
Public Member Functions | List of all members
mlir::PassPipelineRegistration< Options > Struct Template Reference

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)
 

Detailed Description

template<typename Options = EmptyPipelineOptions>
struct mlir::PassPipelineRegistration< Options >

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.

Constructor & Destructor Documentation

◆ PassPipelineRegistration()

template<typename Options = EmptyPipelineOptions>
mlir::PassPipelineRegistration< Options >::PassPipelineRegistration ( StringRef  arg,
StringRef  description,
std::function< void(OpPassManager &, const Options &options)>  builder 
)
inline

Definition at line 178 of file PassRegistry.h.

References options, and mlir::registerPassPipeline().


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