LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT > Class Template Reference
Inheritance diagram for llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >:
[legend]
Collaboration diagram for llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >:
[legend]

Public Types

using Base = RemoveUnusedDiscardableAllocationsPassBase

Public Member Functions

 RemoveUnusedDiscardableAllocationsPassBase ()
 RemoveUnusedDiscardableAllocationsPassBase (const RemoveUnusedDiscardableAllocationsPassBase &other)
RemoveUnusedDiscardableAllocationsPassBaseoperator= (const RemoveUnusedDiscardableAllocationsPassBase &)=delete
 RemoveUnusedDiscardableAllocationsPassBase (RemoveUnusedDiscardableAllocationsPassBase &&)=delete
RemoveUnusedDiscardableAllocationsPassBaseoperator= (RemoveUnusedDiscardableAllocationsPassBase &&)=delete
 ~RemoveUnusedDiscardableAllocationsPassBase ()=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.
 RemoveUnusedDiscardableAllocationsPassBase (RemoveUnusedDiscardableAllocationsPassOptions 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< std::string > allocatorOpName {*this, "allocator-op", ::llvm::cl::desc("Operation name of the discardable allocator to remove"), ::llvm::cl::init("")}

Friends

std::unique_ptr<::mlir::Pass > createRemoveUnusedDiscardableAllocationsPass ()
std::unique_ptr<::mlir::Pass > createRemoveUnusedDiscardableAllocationsPass (RemoveUnusedDiscardableAllocationsPassOptions options)

Detailed Description

template<typename DerivedT>
class llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >

Definition at line 711 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ RemoveUnusedDiscardableAllocationsPassBase() [1/4]

template<typename DerivedT>
llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >::RemoveUnusedDiscardableAllocationsPassBase ( )
inline

◆ RemoveUnusedDiscardableAllocationsPassBase() [2/4]

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

◆ RemoveUnusedDiscardableAllocationsPassBase() [3/4]

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

◆ ~RemoveUnusedDiscardableAllocationsPassBase()

◆ RemoveUnusedDiscardableAllocationsPassBase() [4/4]

template<typename DerivedT>
llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >::RemoveUnusedDiscardableAllocationsPassBase ( RemoveUnusedDiscardableAllocationsPassOptions 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 768 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

Member Function Documentation

◆ classof()

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

Support isa/dyn_cast functionality for the derived pass class.

Definition at line 737 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

◆ clonePass()

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

A clone method to create a copy of this pass.

Definition at line 742 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

◆ getArgument()

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

◆ getArgumentName()

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

Returns the command-line argument attached to this pass.

Definition at line 723 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

◆ getDependentDialects()

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

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

Definition at line 747 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

◆ getDescription()

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

◆ getName()

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

◆ getPassName()

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

Returns the derived pass name.

Definition at line 731 of file LLZKRemoveUnusedDiscardableAllocationsPass.cpp.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ createRemoveUnusedDiscardableAllocationsPass [1/2]

template<typename DerivedT>
std::unique_ptr<::mlir::Pass > createRemoveUnusedDiscardableAllocationsPass ( )
friend

◆ createRemoveUnusedDiscardableAllocationsPass [2/2]

template<typename DerivedT>
std::unique_ptr<::mlir::Pass > createRemoveUnusedDiscardableAllocationsPass ( RemoveUnusedDiscardableAllocationsPassOptions options)
friend

Member Data Documentation

◆ allocatorOpName

template<typename DerivedT>
::mlir::Pass::Option<std::string> llzk::impl::RemoveUnusedDiscardableAllocationsPassBase< DerivedT >::allocatorOpName {*this, "allocator-op", ::llvm::cl::desc("Operation name of the discardable allocator to remove"), ::llvm::cl::init("")}
protected

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