MLIR
22.0.0git
|
#include "Bindings/Python/IRModule.h"
Public Member Functions | |
PyConcreteAttribute ()=default | |
PyConcreteAttribute (PyMlirContextRef contextRef, MlirAttribute attr) | |
PyConcreteAttribute (PyAttribute &orig) | |
![]() | |
PyConcreteAttribute ()=default | |
PyConcreteAttribute (PyMlirContextRef contextRef, MlirAttribute attr) | |
PyConcreteAttribute (PyAttribute &orig) | |
![]() | |
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. More... | |
nanobind::object | maybeDownCast () |
![]() | |
BaseContextObject (PyMlirContextRef ref) | |
PyMlirContextRef & | getContext () |
Accesses the context reference. More... | |
Static Public Member Functions | |
static void | bindDerived (ClassTy &c) |
![]() | |
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. More... | |
![]() | |
static PyAttribute | createFromCapsule (nanobind::object capsule) |
Creates a PyAttribute from the MlirAttribute wrapped by a capsule. More... | |
Static Public Attributes | |
static constexpr IsAFunctionTy | isaFunction = mlirAttributeIsAString |
static constexpr const char * | pyClassName = "StringAttr" |
static constexpr GetTypeIDFunctionTy | getTypeIdFunction |
![]() | |
static constexpr GetTypeIDFunctionTy | getTypeIdFunction |
Additional Inherited Members | |
![]() | |
using | ClassTy = nanobind::class_< PyStringAttribute, PyAttribute > |
using | IsAFunctionTy = bool(*)(MlirAttribute) |
using | GetTypeIDFunctionTy = MlirTypeID(*)() |
Definition at line 1148 of file IRModule.h.
|
static |
Definition at line 1736 of file IRAttributes.cpp.
References MlirStringRef::data, mlir::python::Defaulting< DerivedTy, T >::get(), mlir::python::BaseContextObject::getContext(), MlirStringRef::length, mlirStringAttrGet(), mlirStringAttrGetValue(), mlirStringAttrTypedGet(), and toMlirStringRef().
|
default |
|
inline |
Definition at line 1073 of file IRModule.h.
|
inline |
Definition at line 1071 of file IRModule.h.
|
staticconstexpr |
Definition at line 1153 of file IRModule.h.
|
staticconstexpr |
Definition at line 1150 of file IRModule.h.
|
staticconstexpr |
Definition at line 1151 of file IRModule.h.