|
MLIR 23.0.0git
|
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| virtual | ~PyValue ()=default |
| PyValue (PyOperationRef parentOperation, MlirValue value) | |
| operator MlirValue () const | |
| MlirValue | get () |
| PyOperationRef & | getParentOperation () |
| void | checkValid () |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirValue. | |
| nanobind::typed< nanobind::object, std::variant< PyBlockArgument, PyOpResult, PyValue > > | maybeDownCast () |
Static Public Member Functions | |
| static PyValue | createFromCapsule (nanobind::object capsule) |
| Creates a PyValue from the MlirValue wrapped by a capsule. | |
|
virtualdefault |
|
inline |
Definition at line 1177 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::bind(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::castFrom(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::PyConcreteValue(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::PyConcreteValue().
|
inline |
|
static |
Creates a PyValue from the MlirValue wrapped by a capsule.
Ownership of the underlying MlirValue is still tied to the owning operation.
Definition at line 2020 of file IRCore.cpp.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
|
inline |
Definition at line 1181 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpOperandList::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::castFrom(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::getValueOwnerRef(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
| nb::object mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyValue::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirValue.
Definition at line 1980 of file IRCore.cpp.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
|
inline |
Definition at line 1182 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteValue< DerivedTy >::PyConcreteValue().
| nb::typed< nb::object, std::variant< PyBlockArgument, PyOpResult, PyValue > > mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyValue::maybeDownCast | ( | ) |
Definition at line 1999 of file IRCore.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::forContext().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
|
inline |