MLIR 22.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDialectDescriptor Class Reference

Wrapper around an MlirDialect. More...

#include "mlir/Bindings/Python/IRCore.h"

Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDialectDescriptor:

Public Member Functions

 PyDialectDescriptor (PyMlirContextRef contextRef, MlirDialect dialect)
MlirDialect get ()
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
PyMlirContextRefgetContext ()
 Accesses the context reference.

Detailed Description

Wrapper around an MlirDialect.

This is exported as DialectDescriptor in order to differentiate it from the Dialect base class which is extended by plugins which extend dialect functionality through extension python code. This should be seen as the "low-level" object and Dialect as the high-level, user facing object.

Definition at line 462 of file IRCore.h.

Constructor & Destructor Documentation

◆ PyDialectDescriptor()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDialectDescriptor::PyDialectDescriptor ( PyMlirContextRef contextRef,
MlirDialect dialect )
inline

Member Function Documentation

◆ get()

MlirDialect mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDialectDescriptor::get ( )
inline

Definition at line 467 of file IRCore.h.


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