MLIR
20.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. More... | |
const DialectInterface * | getInterfaceFor (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 |
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 130 of file Dialect.cpp.
References mlir::MLIRContext::getLoadedDialects().
|
virtualdefault |
|
inlineprotected |
Get the interface for the given dialect.
Definition at line 111 of file DialectInterface.h.
|
protected |
Get the interface for the dialect of given operation, or null if one is not registered.
Definition at line 149 of file Dialect.cpp.
References mlir::Operation::getDialect().
Referenced by mlir::DialectInterfaceCollection< InterfaceType >::getInterfaceFor().
|
inlineprotected |
Iterator access to the held interfaces.
Definition at line 135 of file DialectInterface.h.
|
inlineprotected |
Definition at line 139 of file DialectInterface.h.