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

Wrapper around an MlirRegion. More...

#include "Bindings/Python/IRModule.h"

Public Member Functions

 PyRegion (PyOperationRef parentOperation, MlirRegion region)
 operator MlirRegion () const
MlirRegion get ()
PyOperationRefgetParentOperation ()
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 733 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyRegion()

mlir::python::PyRegion::PyRegion ( PyOperationRef  parentOperation,
MlirRegion  region 

Definition at line 735 of file IRModule.h.

References mlirRegionIsNull().

Member Function Documentation

◆ checkValid()

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

Definition at line 744 of file IRModule.h.

References mlir::python::PyOperation::checkValid().

◆ get()

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

Definition at line 741 of file IRModule.h.

◆ getParentOperation()

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

Definition at line 742 of file IRModule.h.

◆ operator MlirRegion()

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

Definition at line 739 of file IRModule.h.

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