MLIR  20.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 766 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyRegion()

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

Definition at line 768 of file IRModule.h.

References mlirRegionIsNull().

Member Function Documentation

◆ checkValid()

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

Definition at line 777 of file IRModule.h.

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

◆ get()

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

Definition at line 774 of file IRModule.h.

◆ getParentOperation()

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

Definition at line 775 of file IRModule.h.

◆ operator MlirRegion()

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

Definition at line 772 of file IRModule.h.


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