MLIR 22.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute Class Reference

#include "mlir/Bindings/Python/IRAttributes.h"

Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute:

Public Member Functions

intptr_t dunderLen () const
bool dunderContains (const std::string &name) const
 PyConcreteAttribute ()=default
 PyConcreteAttribute (PyMlirContextRef contextRef, MlirAttribute attr)
 PyConcreteAttribute (PyAttribute &orig)
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PyDictAttribute >
 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, PyAttributemaybeDownCast ()
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
PyMlirContextRefgetContext ()
 Accesses the context reference.

Static Public Member Functions

static void bindDerived (ClassTy &c)
Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PyDictAttribute >
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 = mlirAttributeIsADictionary
static constexpr const char * pyClassName = "DictAttr"
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name = mlirDictionaryAttrGetName()
Static Public Attributes inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PyDictAttribute >
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name

Additional Inherited Members

Public Types inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PyDictAttribute >
using ClassTy
using IsAFunctionTy
using GetTypeIDFunctionTy
using Base

Detailed Description

Definition at line 528 of file IRAttributes.h.

Member Function Documentation

◆ bindDerived()

◆ dunderContains()

bool mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::dunderContains ( const std::string & name) const

◆ dunderLen()

intptr_t mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::dunderLen ( ) const

Definition at line 1110 of file IRAttributes.cpp.

References mlirDictionaryAttrGetNumElements().

Referenced by bindDerived().

◆ PyConcreteAttribute() [1/3]

◆ PyConcreteAttribute() [2/3]

Definition at line 1076 of file IRCore.h.

◆ PyConcreteAttribute() [3/3]

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< DerivedTy, BaseTy >::PyConcreteAttribute ( PyMlirContextRef contextRef,
MlirAttribute attr )
inline

Definition at line 1074 of file IRCore.h.

Member Data Documentation

◆ getTypeIdFunction

GetTypeIDFunctionTy mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::getTypeIdFunction
staticconstexpr
Initial value:
=
MLIR_CAPI_EXPORTED MlirTypeID mlirDictionaryAttrGetTypeID(void)
Returns the typeID of a Dictionary attribute.

Definition at line 534 of file IRAttributes.h.

◆ isaFunction

IsAFunctionTy mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::isaFunction = mlirAttributeIsADictionary
staticconstexpr

Definition at line 531 of file IRAttributes.h.

◆ name

const MlirStringRef mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::name = mlirDictionaryAttrGetName()
inlinestatic

Definition at line 536 of file IRAttributes.h.

Referenced by bindDerived(), and dunderContains().

◆ pyClassName

const char* mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDictAttribute::pyClassName = "DictAttr"
staticconstexpr

Definition at line 532 of file IRAttributes.h.


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