LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
llzk::polymorphic::impl::FlatteningPassBase< DerivedT > Class Template Reference
Inheritance diagram for llzk::polymorphic::impl::FlatteningPassBase< DerivedT >:
[legend]
Collaboration diagram for llzk::polymorphic::impl::FlatteningPassBase< DerivedT >:
[legend]

Public Types

using Base = FlatteningPassBase

Public Member Functions

 FlatteningPassBase ()
 FlatteningPassBase (const FlatteningPassBase &other)
FlatteningPassBaseoperator= (const FlatteningPassBase &)=delete
 FlatteningPassBase (FlatteningPassBase &&)=delete
FlatteningPassBaseoperator= (FlatteningPassBase &&)=delete
 ~FlatteningPassBase ()=default
::llvm::StringRef getArgument () const override
::llvm::StringRef getDescription () const override
::llvm::StringRef getName () const override
std::unique_ptr<::mlir::Pass > clonePass () const override
 A clone method to create a copy of this pass.
void getDependentDialects (::mlir::DialectRegistry &registry) const override
 Return the dialect that must be loaded in the context before this pass.
 FlatteningPassBase (FlatteningPassOptions options)
 Explicitly declare the TypeID for this class.

Static Public Member Functions

static constexpr ::llvm::StringLiteral getArgumentName ()
 Returns the command-line argument attached to this pass.
static constexpr ::llvm::StringLiteral getPassName ()
 Returns the derived pass name.
static bool classof (const ::mlir::Pass *pass)
 Support isa/dyn_cast functionality for the derived pass class.

Protected Attributes

::mlir::Pass::Option< unsigned > iterationLimit {*this, "max-iter", ::llvm::cl::desc("Maximum number of times the pass will run if a fixpoint is not reached earlier. Unrolling loops can provide more opportunities for instantiating structs but the converse is true as well. Thus, the pass will run multiple times until no further changes can be made or the upper limit provided in this option is reached."), ::llvm::cl::init(1000)}
::mlir::Pass::Option<::llzk::polymorphic::StructCleanupModecleanupMode

Detailed Description

template<typename DerivedT>
class llzk::polymorphic::impl::FlatteningPassBase< DerivedT >

Definition at line 100 of file FlatteningPass.cpp.

Member Typedef Documentation

◆ Base

template<typename DerivedT>
using llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::Base = FlatteningPassBase

Definition at line 102 of file FlatteningPass.cpp.

Constructor & Destructor Documentation

◆ FlatteningPassBase() [1/4]

template<typename DerivedT>
llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::FlatteningPassBase ( )
inline

Definition at line 104 of file FlatteningPass.cpp.

◆ FlatteningPassBase() [2/4]

template<typename DerivedT>
llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::FlatteningPassBase ( const FlatteningPassBase< DerivedT > & other)
inline

Definition at line 105 of file FlatteningPass.cpp.

◆ FlatteningPassBase() [3/4]

template<typename DerivedT>
llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::FlatteningPassBase ( FlatteningPassBase< DerivedT > && )
delete

◆ ~FlatteningPassBase()

template<typename DerivedT>
llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::~FlatteningPassBase ( )
default

◆ FlatteningPassBase() [4/4]

template<typename DerivedT>
llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::FlatteningPassBase ( FlatteningPassOptions options)
inline

Explicitly declare the TypeID for this class.

We declare an explicit private instantiation because Pass classes should only be visible by the current library.

Definition at line 158 of file FlatteningPass.cpp.

Member Function Documentation

◆ classof()

template<typename DerivedT>
bool llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::classof ( const ::mlir::Pass * pass)
inlinestatic

Support isa/dyn_cast functionality for the derived pass class.

Definition at line 126 of file FlatteningPass.cpp.

◆ clonePass()

template<typename DerivedT>
std::unique_ptr<::mlir::Pass > llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::clonePass ( ) const
inlineoverride

A clone method to create a copy of this pass.

Definition at line 131 of file FlatteningPass.cpp.

◆ getArgument()

template<typename DerivedT>
::llvm::StringRef llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getArgument ( ) const
inlineoverride

Definition at line 115 of file FlatteningPass.cpp.

◆ getArgumentName()

template<typename DerivedT>
constexpr ::llvm::StringLiteral llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getArgumentName ( )
inlinestatic

Returns the command-line argument attached to this pass.

Definition at line 112 of file FlatteningPass.cpp.

◆ getDependentDialects()

template<typename DerivedT>
void llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getDependentDialects ( ::mlir::DialectRegistry & registry) const
inlineoverride

Return the dialect that must be loaded in the context before this pass.

Definition at line 136 of file FlatteningPass.cpp.

◆ getDescription()

template<typename DerivedT>
::llvm::StringRef llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getDescription ( ) const
inlineoverride

Definition at line 117 of file FlatteningPass.cpp.

◆ getName()

template<typename DerivedT>
::llvm::StringRef llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getName ( ) const
inlineoverride

Definition at line 123 of file FlatteningPass.cpp.

◆ getPassName()

template<typename DerivedT>
constexpr ::llvm::StringLiteral llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::getPassName ( )
inlinestatic

Returns the derived pass name.

Definition at line 120 of file FlatteningPass.cpp.

◆ operator=() [1/2]

template<typename DerivedT>
FlatteningPassBase & llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::operator= ( const FlatteningPassBase< DerivedT > & )
delete

◆ operator=() [2/2]

template<typename DerivedT>
FlatteningPassBase & llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::operator= ( FlatteningPassBase< DerivedT > && )
delete

Member Data Documentation

◆ cleanupMode

template<typename DerivedT>
::mlir::Pass::Option<::llzk::polymorphic::StructCleanupMode> llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::cleanupMode
protected
Initial value:
{*this, "cleanup", ::llvm::cl::desc("Specifies the extent to which unused parameterized structs are removed during the flattening pass."), ::llvm::cl::init(::llzk::polymorphic::StructCleanupMode::Preimage), ::llvm::cl::values(
"Only structs that were replaced with concrete instantiations are deleted."),
"All structs that cannot be reached by a use-def chain from some concrete struct are deleted."),
"All structs that cannot be reached by a use-def chain from the \"Main\" struct are deleted.")
)}
::llvm::StringRef stringifyStructCleanupMode(StructCleanupMode val)

Definition at line 164 of file FlatteningPass.cpp.

◆ iterationLimit

template<typename DerivedT>
::mlir::Pass::Option<unsigned> llzk::polymorphic::impl::FlatteningPassBase< DerivedT >::iterationLimit {*this, "max-iter", ::llvm::cl::desc("Maximum number of times the pass will run if a fixpoint is not reached earlier. Unrolling loops can provide more opportunities for instantiating structs but the converse is true as well. Thus, the pass will run multiple times until no further changes can be made or the upper limit provided in this option is reached."), ::llvm::cl::init(1000)}
protected

Definition at line 163 of file FlatteningPass.cpp.


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