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

Base class for all objects that directly or indirectly depend on an MlirContext. More...

#include "Bindings/Python/IRModule.h"

+ Inheritance diagram for mlir::python::BaseContextObject:

Public Member Functions

 BaseContextObject (PyMlirContextRef ref)
 
PyMlirContextRefgetContext ()
 Accesses the context reference. More...
 

Detailed Description

Base class for all objects that directly or indirectly depend on an MlirContext.

The lifetime of the context will extend at least to the lifetime of these instances. Immutable objects that depend on a context extend this directly.

Definition at line 302 of file IRModule.h.

Constructor & Destructor Documentation

◆ BaseContextObject()

mlir::python::BaseContextObject::BaseContextObject ( PyMlirContextRef  ref)
inline

Definition at line 304 of file IRModule.h.

Member Function Documentation

◆ getContext()

PyMlirContextRef& mlir::python::BaseContextObject::getContext ( )
inline

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