33 attributeType.def_classmethod(
35 [](nb::object cls, MlirContext ctx) {
38 "Get an instance of AttributeType in given context.", nb::arg(
"cls"),
39 nb::arg(
"context").none() = nb::none());
47 operationType.def_classmethod(
49 [](nb::object cls, MlirContext ctx) {
52 "Get an instance of OperationType in given context.", nb::arg(
"cls"),
53 nb::arg(
"context").none() = nb::none());
60 rangeType.def_classmethod(
62 [](nb::object cls, MlirType elementType) {
65 "Gets an instance of RangeType in the same context as the provided "
67 nb::arg(
"cls"), nb::arg(
"element_type"));
68 rangeType.def_property_readonly(
71 "Get the element type.");
78 typeType.def_classmethod(
80 [](nb::object cls, MlirContext ctx) {
83 "Get an instance of TypeType in given context.", nb::arg(
"cls"),
84 nb::arg(
"context").none() = nb::none());
91 valueType.def_classmethod(
93 [](nb::object cls, MlirContext ctx) {
96 "Get an instance of TypeType in given context.", nb::arg(
"cls"),
97 nb::arg(
"context").none() = nb::none());
101 m.doc() =
"MLIR PDL dialect.";
NB_MODULE(_mlirDialectsPDL, m)
void populateDialectPDLSubmodule(const nanobind::module_ &m)
Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking metho...
MLIR_CAPI_EXPORTED MlirType mlirPDLOperationTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLRangeType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLAttributeTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType mlirPDLValueTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLAttributeType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLOperationType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGetElementType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLTypeTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGet(MlirType elementType)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLValueType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLTypeType(MlirType type)
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.