My Project
Static Public Member Functions | List of all members
mlir::PassPipelineOptions< T > Class Template Reference

#include <PassOptions.h>

Inheritance diagram for mlir::PassPipelineOptions< T >:
Inheritance graph
[legend]
Collaboration diagram for mlir::PassPipelineOptions< T >:
Collaboration graph
[legend]

Static Public Member Functions

static std::unique_ptr< T > createFromString (StringRef options)
 

Additional Inherited Members

- Public Member Functions inherited from mlir::detail::PassOptions
 PassOptions ()=default
 
void copyOptionValuesFrom (const PassOptions &other)
 Copy the option values from 'other'. More...
 
LogicalResult parseFromString (StringRef options)
 
void print (raw_ostream &os)
 

Detailed Description

template<typename T>
class mlir::PassPipelineOptions< T >

Subclasses of PassPipelineOptions provide a set of options that can be used to initialize a pass pipeline. See PassPipelineRegistration for usage details.

Usage:

struct MyPipelineOptions : PassPipelineOptions<MyPassOptions> { ListOption<int> someListFlag{ *this, "flag-name", llvm::cl::MiscFlags::CommaSeparated, llvm::cl::desc("...")}; };

Member Function Documentation

◆ createFromString()

template<typename T>
static std::unique_ptr<T> mlir::PassPipelineOptions< T >::createFromString ( StringRef  options)
inlinestatic

Factory that parses the provided options and returns a unique_ptr to the struct.


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