MLIR  19.0.0git
Classes | Namespaces | Typedefs | Functions
PassRegistry.h File Reference
#include "mlir/Pass/PassOptions.h"
#include "mlir/Support/TypeID.h"
#include <functional>
#include <utility>
#include <optional>

Go to the source code of this file.

Classes

class  mlir::PassRegistryEntry
 Structure to group information about a passes and pass pipelines (argument to invoke via mlir-opt, description, pass pipeline builder). More...
 
class  mlir::PassPipelineInfo
 A structure to represent the information of a registered pass pipeline. More...
 
class  mlir::PassInfo
 A structure to represent the information for a derived pass class. More...
 
struct  mlir::PassRegistration< ConcretePass >
 PassRegistration provides a global initializer that registers a Pass allocation routine for a concrete pass instance. More...
 
struct  mlir::PassPipelineRegistration< Options >
 PassPipelineRegistration provides a global initializer that registers a Pass pipeline builder routine. More...
 
struct  mlir::PassPipelineRegistration< EmptyPipelineOptions >
 Convenience specialization of PassPipelineRegistration for EmptyPassOptions that does not pass an empty options struct to the pass builder function. More...
 
class  mlir::PassPipelineCLParser
 This class implements a command-line parser for MLIR passes. More...
 
class  mlir::PassNameCLParser
 This class implements a command-line parser specifically for MLIR pass names. More...
 
struct  mlir::PassReproducerOptions
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::detail
 Detect if any of the given parameter types has a sub-element handler.
 

Typedefs

using mlir::PassRegistryFunction = std::function< LogicalResult(OpPassManager &, StringRef options, function_ref< LogicalResult(const Twine &)> errorHandler)>
 A registry function that adds passes to the given pass manager. More...
 
using mlir::PassAllocatorFunction = std::function< std::unique_ptr< Pass >()>
 

Functions

void mlir::registerPassPipeline (StringRef arg, StringRef description, const PassRegistryFunction &function, std::function< void(function_ref< void(const detail::PassOptions &)>)> optHandler)
 Register a specific dialect pipeline registry function with the system, typically used through the PassPipelineRegistration template. More...
 
void mlir::registerPass (const PassAllocatorFunction &function)
 Register a specific dialect pass allocator function with the system, typically used through the PassRegistration template. More...
 
LogicalResult mlir::parsePassPipeline (StringRef pipeline, OpPassManager &pm, raw_ostream &errorStream=llvm::errs())
 Parse the textual representation of a pass pipeline, adding the result to 'pm' on success. More...
 
FailureOr< OpPassManagermlir::parsePassPipeline (StringRef pipeline, raw_ostream &errorStream=llvm::errs())
 Parse the given textual representation of a pass pipeline, and return the parsed pipeline on success. More...