32 attributeType.def_classmethod(
34 [](py::object cls, MlirContext ctx) {
37 "Get an instance of AttributeType in given context.", py::arg(
"cls"),
38 py::arg(
"context") = py::none());
46 operationType.def_classmethod(
48 [](py::object cls, MlirContext ctx) {
51 "Get an instance of OperationType in given context.", py::arg(
"cls"),
52 py::arg(
"context") = py::none());
59 rangeType.def_classmethod(
61 [](py::object cls, MlirType elementType) {
64 "Gets an instance of RangeType in the same context as the provided " 66 py::arg(
"cls"), py::arg(
"element_type"));
67 rangeType.def_property_readonly(
70 "Get the element type.");
77 typeType.def_classmethod(
79 [](py::object cls, MlirContext ctx) {
82 "Get an instance of TypeType in given context.", py::arg(
"cls"),
83 py::arg(
"context") = py::none());
90 valueType.def_classmethod(
92 [](py::object cls, MlirContext ctx) {
95 "Get an instance of TypeType in given context.", py::arg(
"cls"),
96 py::arg(
"context") = py::none());
100 m.doc() =
"MLIR PDL dialect.";
Include the generated interface declarations.
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGetElementType(MlirType type)
Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking metho...
The OpAsmOpInterface, see OpAsmInterface.td for more details.
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLOperationType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLRangeType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLValueTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLTypeType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLTypeTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLOperationTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLAttributeType(MlirType type)
PYBIND11_MODULE(_mlirDialectsPDL, m)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLValueType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGet(MlirType elementType)
MLIR_CAPI_EXPORTED MlirType mlirPDLAttributeTypeGet(MlirContext ctx)
void populateDialectPDLSubmodule(const pybind11::module &m)