My Project
Classes | Public Member Functions | Protected Member Functions | List of all members
mlir::detail::DialectInterfaceCollectionBase Class Reference

#include <DialectInterface.h>

Inheritance diagram for mlir::detail::DialectInterfaceCollectionBase:
Inheritance graph
[legend]

Classes

class  iterator
 

Public Member Functions

 DialectInterfaceCollectionBase (MLIRContext *ctx, ClassID *interfaceKind)
 
virtual ~DialectInterfaceCollectionBase ()
 

Protected Member Functions

const DialectInterfacegetInterfaceFor (Operation *op) const
 
const DialectInterfacegetInterfaceFor (Dialect *dialect) const
 Get the interface for the given dialect. More...
 
template<typename InterfaceT >
iterator< InterfaceT > interface_begin () const
 Iterator access to the held interfaces. More...
 
template<typename InterfaceT >
iterator< InterfaceT > interface_end () const
 

Detailed Description

This class is the base class for a collection of instances for a specific interface kind.

Constructor & Destructor Documentation

◆ DialectInterfaceCollectionBase()

DialectInterfaceCollectionBase::DialectInterfaceCollectionBase ( MLIRContext ctx,
ClassID interfaceKind 
)

◆ ~DialectInterfaceCollectionBase()

DialectInterfaceCollectionBase::~DialectInterfaceCollectionBase ( )
virtual

Member Function Documentation

◆ getInterfaceFor() [1/2]

const DialectInterface * DialectInterfaceCollectionBase::getInterfaceFor ( Operation op) const
protected

Get the interface for the dialect of given operation, or null if one is not registered.

◆ getInterfaceFor() [2/2]

const DialectInterface* mlir::detail::DialectInterfaceCollectionBase::getInterfaceFor ( Dialect dialect) const
inlineprotected

Get the interface for the given dialect.

◆ interface_begin()

template<typename InterfaceT >
iterator<InterfaceT> mlir::detail::DialectInterfaceCollectionBase::interface_begin ( ) const
inlineprotected

Iterator access to the held interfaces.

◆ interface_end()

template<typename InterfaceT >
iterator<InterfaceT> mlir::detail::DialectInterfaceCollectionBase::interface_end ( ) const
inlineprotected

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