MLIR 24.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion Class Reference

Wrapper around an MlirRegion. More...

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

Public Member Functions

 PyRegion (PyOperationRef parentOperation, MlirRegion region)
 operator MlirRegion () const
MlirRegion get ()
PyOperationRef & getParentOperation ()
void checkValid ()

Detailed Description

Wrapper around an MlirRegion.

Regions are managed completely by their containing operation. Unlike the C++ API, the python API does not support detached regions.

Definition at line 797 of file IRCore.h.

Constructor & Destructor Documentation

◆ PyRegion()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion::PyRegion ( PyOperationRef parentOperation,
MlirRegion region )
inline

Definition at line 799 of file IRCore.h.

References mlirRegionIsNull().

Member Function Documentation

◆ checkValid()

void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion::checkValid ( )
inline

Definition at line 808 of file IRCore.h.

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().

◆ get()

MlirRegion mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion::get ( )
inline

Definition at line 805 of file IRCore.h.

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().

◆ getParentOperation()

PyOperationRef & mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion::getParentOperation ( )
inline

Definition at line 806 of file IRCore.h.

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().

◆ operator MlirRegion()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRegion::operator MlirRegion ( ) const
inline

Definition at line 803 of file IRCore.h.


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