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

Bool Attribute subclass - BoolAttr. More...

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

Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBoolAttribute:

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< PyBoolAttribute >
 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< PyBoolAttribute >
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 = mlirAttributeIsABool
static constexpr const char * pyClassName = "BoolAttr"
Static Public Attributes inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< PyBoolAttribute >
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name

Additional Inherited Members

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

Detailed Description

Bool Attribute subclass - BoolAttr.

Definition at line 347 of file IRAttributes.h.

Member Function Documentation

◆ bindDerived()

void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBoolAttribute::bindDerived ( ClassTy & c)
static

◆ 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

◆ isaFunction

IsAFunctionTy mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBoolAttribute::isaFunction = mlirAttributeIsABool
staticconstexpr

◆ pyClassName

const char* mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBoolAttribute::pyClassName = "BoolAttr"
staticconstexpr

Definition at line 351 of file IRAttributes.h.


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