|
MLIR 22.0.0git
|
This class is the base class for a collection of instances for a specific interface kind. More...
#include "mlir/IR/DialectInterface.h"
Classes | |
| struct | iterator |
| An iterator class that iterates the held interface objects of the given derived interface type. More... | |
Public Member Functions | |
| DialectInterfaceCollectionBase (MLIRContext *ctx, TypeID interfaceKind, StringRef interfaceName) | |
| virtual | ~DialectInterfaceCollectionBase () |
Protected Member Functions | |
| const DialectInterface * | getInterfaceFor (Operation *op) const |
| Get the interface for the dialect of given operation, or null if one is not registered. | |
| const DialectInterface * | getInterfaceFor (Dialect *dialect) const |
| Get the interface for the given dialect. | |
| template<typename InterfaceT> | |
| iterator< InterfaceT > | interface_begin () const |
| Iterator access to the held interfaces. | |
| template<typename InterfaceT> | |
| iterator< InterfaceT > | interface_end () const |
This class is the base class for a collection of instances for a specific interface kind.
Definition at line 79 of file DialectInterface.h.
| DialectInterfaceCollectionBase::DialectInterfaceCollectionBase | ( | MLIRContext * | ctx, |
| TypeID | interfaceKind, | ||
| StringRef | interfaceName ) |
Definition at line 121 of file Dialect.cpp.
References mlir::MLIRContext::getLoadedDialects().
Referenced by mlir::DialectInterfaceCollection< InterfaceType >::DialectInterfaceCollection().
|
virtualdefault |
|
inlineprotected |
Get the interface for the given dialect.
Definition at line 111 of file DialectInterface.h.
References nullptr.
|
protected |
Get the interface for the dialect of given operation, or null if one is not registered.
Definition at line 140 of file Dialect.cpp.
References mlir::Operation::getDialect(), and getInterfaceFor().
Referenced by getInterfaceFor(), and mlir::DialectInterfaceCollection< InterfaceType >::getInterfaceFor().
|
inlineprotected |
Iterator access to the held interfaces.
Definition at line 135 of file DialectInterface.h.
Referenced by mlir::DialectInterfaceCollection< InterfaceType >::begin().
|
inlineprotected |
Definition at line 139 of file DialectInterface.h.
Referenced by mlir::DialectInterfaceCollection< InterfaceType >::end().