MLIR  17.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::python::PyDialectRegistry Class Reference

Wrapper around an MlirDialectRegistry. More...

#include "Bindings/Python/IRModule.h"

Public Member Functions

 PyDialectRegistry ()
 
 PyDialectRegistry (MlirDialectRegistry registry)
 
 ~PyDialectRegistry ()
 
 PyDialectRegistry (PyDialectRegistry &)=delete
 
 PyDialectRegistry (PyDialectRegistry &&other)
 
 operator MlirDialectRegistry () const
 
MlirDialectRegistry get () const
 
pybind11::object getCapsule ()
 

Static Public Member Functions

static PyDialectRegistry createFromCapsule (pybind11::object capsule)
 

Detailed Description

Wrapper around an MlirDialectRegistry.

Upon construction, the Python wrapper takes ownership of the underlying MlirDialectRegistry.

Definition at line 467 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyDialectRegistry() [1/4]

mlir::python::PyDialectRegistry::PyDialectRegistry ( )
inline

Definition at line 469 of file IRModule.h.

Referenced by createFromCapsule().

◆ PyDialectRegistry() [2/4]

mlir::python::PyDialectRegistry::PyDialectRegistry ( MlirDialectRegistry  registry)
inline

Definition at line 470 of file IRModule.h.

◆ ~PyDialectRegistry()

mlir::python::PyDialectRegistry::~PyDialectRegistry ( )
inline

Definition at line 471 of file IRModule.h.

References mlirDialectRegistryDestroy(), and mlirDialectRegistryIsNull().

◆ PyDialectRegistry() [3/4]

mlir::python::PyDialectRegistry::PyDialectRegistry ( PyDialectRegistry )
delete

◆ PyDialectRegistry() [4/4]

mlir::python::PyDialectRegistry::PyDialectRegistry ( PyDialectRegistry &&  other)
inline

Definition at line 476 of file IRModule.h.

Member Function Documentation

◆ createFromCapsule()

PyDialectRegistry PyDialectRegistry::createFromCapsule ( pybind11::object  capsule)
static

◆ get()

MlirDialectRegistry mlir::python::PyDialectRegistry::get ( ) const
inline

Definition at line 481 of file IRModule.h.

◆ getCapsule()

py::object PyDialectRegistry::getCapsule ( )

Definition at line 940 of file IRCore.cpp.

References mlirPythonDialectRegistryToCapsule().

◆ operator MlirDialectRegistry()

mlir::python::PyDialectRegistry::operator MlirDialectRegistry ( ) const
inline

Definition at line 480 of file IRModule.h.


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