|
MLIR 22.0.0git
|
#include "mlir/Bindings/Python/IRAttributes.h"
Public Member Functions | |
| PyConcreteAttribute ()=default | |
| PyConcreteAttribute (PyMlirContextRef contextRef, MlirAttribute attr) | |
| PyConcreteAttribute (PyAttribute &orig) | |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PySymbolRefAttribute > | |
| PyConcreteAttribute ()=default | |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAttribute | |
| PyAttribute (PyMlirContextRef contextRef, MlirAttribute attr) | |
| bool | operator== (const PyAttribute &other) const |
| operator MlirAttribute () const | |
| MlirAttribute | get () const |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirAttribute. | |
| nanobind::typed< nanobind::object, PyAttribute > | maybeDownCast () |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject | |
| BaseContextObject (PyMlirContextRef ref) | |
| PyMlirContextRef & | getContext () |
| Accesses the context reference. | |
Static Public Member Functions | |
| static PySymbolRefAttribute | fromList (const std::vector< std::string > &symbols, PyMlirContext &context) |
| static void | bindDerived (ClassTy &c) |
| Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PySymbolRefAttribute > | |
| static MlirAttribute | castFrom (PyAttribute &orig) |
| static void | bind (nanobind::module_ &m, PyType_Slot *slots=nullptr) |
| static void | bindDerived (ClassTy &m) |
| Implemented by derived classes to add methods to the Python subclass. | |
| Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAttribute | |
| static PyAttribute | createFromCapsule (const nanobind::object &capsule) |
| Creates a PyAttribute from the MlirAttribute wrapped by a capsule. | |
Static Public Attributes | |
| static constexpr IsAFunctionTy | isaFunction = mlirAttributeIsASymbolRef |
| static constexpr const char * | pyClassName = "SymbolRefAttr" |
| static const MlirStringRef | name = mlirSymbolRefAttrGetName() |
| Static Public Attributes inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PySymbolRefAttribute > | |
| static constexpr GetTypeIDFunctionTy | getTypeIdFunction |
| static const MlirStringRef | name |
Additional Inherited Members | |
| Public Types inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PySymbolRefAttribute > | |
| using | ClassTy |
| using | IsAFunctionTy |
| using | GetTypeIDFunctionTy |
| using | Base |
Definition at line 357 of file IRAttributes.h.
|
static |
Definition at line 402 of file IRAttributes.cpp.
References fromList(), mlirSymbolRefAttrGetNestedReference(), mlirSymbolRefAttrGetNumNestedReferences(), mlirSymbolRefAttrGetRootReference(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::DefaultingPyMlirContext::resolve(), mlir::Diagnostic::str(), and unwrap().
|
static |
Definition at line 385 of file IRAttributes.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::get(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::getRef(), mlirFlatSymbolRefAttrGet(), mlirSymbolRefAttrGet(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::toMlirStringRef().
Referenced by bindDerived().
|
default |
|
inline |
|
inline |
|
staticconstexpr |
Definition at line 360 of file IRAttributes.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::symbolRefOrFlatSymbolRefAttributeCaster().
|
inlinestatic |
Definition at line 363 of file IRAttributes.h.
|
staticconstexpr |
Definition at line 361 of file IRAttributes.h.