MLIR  20.0.0git
Public Types | Public Member Functions | Protected Member Functions | List of all members
mlir::DialectInterface Class Reference

This class represents an interface overridden for a single dialect. More...

#include "mlir/IR/DialectInterface.h"

Public Types

template<typename ConcreteType >
using Base = detail::DialectInterfaceBase< ConcreteType, DialectInterface >
 The base class used for all derived interface types. More...
 

Public Member Functions

virtual ~DialectInterface ()
 
DialectgetDialect () const
 Return the dialect that this interface represents. More...
 
MLIRContextgetContext () const
 Return the context that holds the parent dialect of this interface. More...
 
TypeID getID () const
 Return the derived interface id. More...
 

Protected Member Functions

 DialectInterface (Dialect *dialect, TypeID id)
 

Detailed Description

This class represents an interface overridden for a single dialect.

Definition at line 42 of file DialectInterface.h.

Member Typedef Documentation

◆ Base

template<typename ConcreteType >
using mlir::DialectInterface::Base = detail::DialectInterfaceBase<ConcreteType, DialectInterface>

The base class used for all derived interface types.

This class provides utilities necessary for registration.

Definition at line 49 of file DialectInterface.h.

Constructor & Destructor Documentation

◆ ~DialectInterface()

DialectInterface::~DialectInterface ( )
virtualdefault

◆ DialectInterface()

mlir::DialectInterface::DialectInterface ( Dialect dialect,
TypeID  id 
)
inlineprotected

Definition at line 61 of file DialectInterface.h.

Member Function Documentation

◆ getContext()

MLIRContext * DialectInterface::getContext ( ) const

Return the context that holds the parent dialect of this interface.

Definition at line 126 of file Dialect.cpp.

References mlir::Dialect::getContext().

◆ getDialect()

Dialect* mlir::DialectInterface::getDialect ( ) const
inline

Return the dialect that this interface represents.

Definition at line 52 of file DialectInterface.h.

◆ getID()

TypeID mlir::DialectInterface::getID ( ) const
inline

Return the derived interface id.

Definition at line 58 of file DialectInterface.h.


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