44 "Get an instance of AnyOpType in the given context.",
45 nb::arg(
"context").none() = nb::none());
66 context.
get()->get()));
68 "Get an instance of AnyParamType in the given context.",
69 nb::arg(
"context").none() = nb::none());
90 context.
get()->get()));
92 "Get an instance of AnyValueType in the given context.",
93 nb::arg(
"context").none() = nb::none());
118 context.
get()->get(), cOperationName));
120 "Get an instance of OperationType for the given kind in the given "
122 nb::arg(
"operation_name"), nb::arg(
"context").none() = nb::none());
128 return nb::str(operationName.
data, operationName.
length);
130 "Get the name of the payload operation accepted by the handle.");
151 context.
get()->get(), type));
153 "Get an instance of ParamType for the given type in the given context.",
154 nb::arg(
"type"), nb::arg(
"context").none() = nb::none());
161 "Get the type this ParamType is associated with.");
178 m.doc() =
"MLIR Transform dialect.";
ReferrentTy * get() const
Used in function arguments when None should resolve to the current context manager set instance.
nanobind::class_< AnyOpType, PyType > ClassTy
static void bind(nanobind::module_ &m)
MlirTypeID(*)() GetTypeIDFunctionTy
bool(*)(MlirType) IsAFunctionTy
PyType(PyMlirContextRef contextRef, MlirType type)
static MlirStringRef mlirStringRefCreate(const char *str, size_t length)
Constructs a string reference from the pointer and length.
static void populateDialectTransformSubmodule(nb::module_ &m)
Include the generated interface declarations.
A pointer to a sized fragment of a string, not necessarily null-terminated.
const char * data
Pointer to the first symbol.
size_t length
Length of the fragment.
static const MlirStringRef name
static constexpr IsAFunctionTy isaFunction
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static void bindDerived(ClassTy &c)
static constexpr const char * pyClassName
static constexpr const char * pyClassName
static void bindDerived(ClassTy &c)
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name
static constexpr IsAFunctionTy isaFunction
static constexpr IsAFunctionTy isaFunction
static void bindDerived(ClassTy &c)
static const MlirStringRef name
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr const char * pyClassName
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr IsAFunctionTy isaFunction
static const MlirStringRef name
static void bindDerived(ClassTy &c)
static constexpr const char * pyClassName
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr IsAFunctionTy isaFunction
static void bindDerived(ClassTy &c)
static const MlirStringRef name
static constexpr const char * pyClassName