MLIR  19.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 757 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyRegion()

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

Definition at line 759 of file IRModule.h.

References mlirRegionIsNull().

Member Function Documentation

◆ checkValid()

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

Definition at line 768 of file IRModule.h.

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

◆ get()

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

Definition at line 765 of file IRModule.h.

◆ getParentOperation()

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

Definition at line 766 of file IRModule.h.

◆ operator MlirRegion()

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

Definition at line 763 of file IRModule.h.

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