MLIR  20.0.0git
Public Member Functions | List of all members
mlir::python::PyDialectDescriptor Class Reference

Wrapper around an MlirDialect. More...

#include "Bindings/Python/IRModule.h"

+ Inheritance diagram for mlir::python::PyDialectDescriptor:

Public Member Functions

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

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 454 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyDialectDescriptor()

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

Definition at line 456 of file IRModule.h.

Member Function Documentation

◆ get()

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

Definition at line 459 of file IRModule.h.


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