30 anyOpType.def_classmethod(
32 [](nb::object cls, MlirContext ctx) {
35 "Get an instance of AnyOpType in the given context.", nb::arg(
"cls"),
36 nb::arg(
"context").none() = nb::none());
45 anyParamType.def_classmethod(
47 [](nb::object cls, MlirContext ctx) {
50 "Get an instance of AnyParamType in the given context.", nb::arg(
"cls"),
51 nb::arg(
"context").none() = nb::none());
60 anyValueType.def_classmethod(
62 [](nb::object cls, MlirContext ctx) {
65 "Get an instance of AnyValueType in the given context.", nb::arg(
"cls"),
66 nb::arg(
"context").none() = nb::none());
75 operationType.def_classmethod(
77 [](nb::object cls,
const std::string &operationName, MlirContext ctx) {
82 "Get an instance of OperationType for the given kind in the given "
84 nb::arg(
"cls"), nb::arg(
"operation_name"),
85 nb::arg(
"context").none() = nb::none());
86 operationType.def_property_readonly(
91 return nb::str(operationName.
data, operationName.
length);
93 "Get the name of the payload operation accepted by the handle.");
102 paramType.def_classmethod(
104 [](nb::object cls, MlirType type, MlirContext ctx) {
107 "Get an instance of ParamType for the given type in the given context.",
108 nb::arg(
"cls"), nb::arg(
"type"), nb::arg(
"context").none() = nb::none());
109 paramType.def_property_readonly(
115 "Get the type this ParamType is associated with.");
119 m.doc() =
"MLIR Transform dialect.";
Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking metho...
static MlirStringRef mlirStringRefCreate(const char *str, size_t length)
Constructs a string reference from the pointer and length.
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.