|
MLIR 22.0.0git
|
A list of operation attributes. More...
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| PyOpAttributeMap (PyOperationRef operation) | |
| nanobind::typed< nanobind::object, PyAttribute > | dunderGetItemNamed (const std::string &name) |
| PyNamedAttribute | dunderGetItemIndexed (intptr_t index) |
| void | dunderSetItem (const std::string &name, const PyAttribute &attr) |
| void | dunderDelItem (const std::string &name) |
| intptr_t | dunderLen () |
| bool | dunderContains (const std::string &name) |
Static Public Member Functions | |
| static void | forEachAttr (MlirOperation op, llvm::function_ref< void(MlirStringRef, MlirAttribute)> fn) |
| static void | bind (nanobind::module_ &m) |
A list of operation attributes.
Can be indexed by name, producing attributes, or by index, producing named attributes.
|
inline |
|
static |
Definition at line 2434 of file IRCore.cpp.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
| bool mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderContains | ( | const std::string & | name | ) |
Definition at line 2418 of file IRCore.cpp.
References mlirOperationGetNumAttributes().
| void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderDelItem | ( | const std::string & | name | ) |
Definition at line 2407 of file IRCore.cpp.
References mlirOperationSetAttributeByName(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::toMlirStringRef().
| PyNamedAttribute mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderGetItemIndexed | ( | intptr_t | index | ) |
Definition at line 2386 of file IRCore.cpp.
| nb::typed< nb::object, PyAttribute > mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderGetItemNamed | ( | const std::string & | name | ) |
Definition at line 2377 of file IRCore.cpp.
References mlir::Sliceable< PyBlockPredecessors, PyBlock >::length, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBlockPredecessors::PyBlockPredecessors(), mlir::Sliceable< PyBlockPredecessors, PyBlock >::startIndex, and mlir::Sliceable< PyBlockPredecessors, PyBlock >::step.
| intptr_t mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderLen | ( | ) |
Definition at line 2414 of file IRCore.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::toMlirStringRef().
| void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpAttributeMap::dunderSetItem | ( | const std::string & | name, |
| const PyAttribute & | attr ) |
Definition at line 2401 of file IRCore.cpp.
References mlirIdentifierStr().
|
static |
Definition at line 2423 of file IRCore.cpp.
References mlirOperationGetAttributeByName(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::toMlirStringRef().