LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
llzk::NestedPassOptions< CreatePass > Struct Template Reference

Stores textual options for a constituent pass after validating them against that pass' native MLIR option parser. More...

#include <Parsers.h>

Inheritance diagram for llzk::NestedPassOptions< CreatePass >:
[legend]
Collaboration diagram for llzk::NestedPassOptions< CreatePass >:
[legend]

Public Member Functions

std::unique_ptr< mlir::Pass > createPass () const
 Build a fresh pass instance with the validated options applied.
Public Member Functions inherited from llzk::detail::NestedTextualOptions
template<typename ValueT, typename CreateFnT, typename InitializeFnT>
std::unique_ptr< ValueT > createValidatedValue (CreateFnT &&createValue, llvm::StringRef kind, InitializeFnT &&initializeValue) const
 Recreate a nested value from the stored option string and re-validate it.

Static Public Member Functions

static mlir::LogicalResult initializePass (mlir::Pass &pass, llvm::StringRef options, std::string &error)

Additional Inherited Members

Public Attributes inherited from llzk::detail::NestedTextualOptions
std::string str
 The validated textual form without the outer {...} delimiters.

Detailed Description

template<auto CreatePass>
struct llzk::NestedPassOptions< CreatePass >

Stores textual options for a constituent pass after validating them against that pass' native MLIR option parser.

Definition at line 65 of file Parsers.h.

Member Function Documentation

◆ createPass()

template<auto CreatePass>
std::unique_ptr< mlir::Pass > llzk::NestedPassOptions< CreatePass >::createPass ( ) const
inline

Build a fresh pass instance with the validated options applied.

Definition at line 67 of file Parsers.h.

◆ initializePass()

template<auto CreatePass>
mlir::LogicalResult llzk::NestedPassOptions< CreatePass >::initializePass ( mlir::Pass & pass,
llvm::StringRef options,
std::string & error )
inlinestatic

Definition at line 72 of file Parsers.h.


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