MLIR 23.0.0git
nanobind::detail::type_caster< MlirFrozenRewritePatternSet > Struct Reference

Casts object <-> MlirFrozenRewritePatternSet. More...

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

Public Member Functions

 NB_TYPE_CASTER (MlirFrozenRewritePatternSet, const_name(MAKE_MLIR_PYTHON_QUALNAME("rewrite.FrozenRewritePatternSet"))) bool from_python(handle src

Static Public Member Functions

static handle from_cpp (MlirFrozenRewritePatternSet v, rv_policy, handle) noexcept

Public Attributes

uint8_t flags
uint8_t cleanup_list *cleanup noexcept

Detailed Description

Casts object <-> MlirFrozenRewritePatternSet.

Definition at line 277 of file NanobindAdaptors.h.

Member Function Documentation

◆ from_cpp()

handle nanobind::detail::type_caster< MlirFrozenRewritePatternSet >::from_cpp ( MlirFrozenRewritePatternSet v,
rv_policy ,
handle  )
inlinestaticnoexcept

◆ NB_TYPE_CASTER()

nanobind::detail::type_caster< MlirFrozenRewritePatternSet >::NB_TYPE_CASTER ( MlirFrozenRewritePatternSet ,
const_name(MAKE_MLIR_PYTHON_QUALNAME("rewrite.FrozenRewritePatternSet"))  )

Member Data Documentation

◆ flags

uint8_t nanobind::detail::type_caster< MlirFrozenRewritePatternSet >::flags

Definition at line 281 of file NanobindAdaptors.h.

◆ noexcept

uint8_t cleanup_list* cleanup nanobind::detail::type_caster< MlirFrozenRewritePatternSet >::noexcept
Initial value:
{
if (auto capsule = mlirApiObjectToCapsule(src)) {
return value.ptr != nullptr;
}
return false
static MlirFrozenRewritePatternSet mlirPythonCapsuleToFrozenRewritePatternSet(PyObject *capsule)
Extracts an MlirFrozenRewritePatternSet from a capsule as produced from mlirPythonFrozenRewritePatter...
Definition Interop.h:302
static std::optional< nanobind::object > mlirApiObjectToCapsule(nanobind::handle apiObject)
Helper to convert a presumed MLIR API object to a capsule, accepting either an explicit Capsule (whic...

Definition at line 281 of file NanobindAdaptors.h.


The documentation for this struct was generated from the following file: