54 "Get an instance of AttributeType in given context.",
55 nb::arg(
"context").none() = nb::none());
78 "Get an instance of OperationType in given context.",
79 nb::arg(
"context").none() = nb::none());
101 "Gets an instance of RangeType in the same context as the provided "
103 nb::arg(
"element_type"), nb::arg(
"context").none() = nb::none());
110 "Get the element type.");
133 "Get an instance of TypeType in given context.",
134 nb::arg(
"context").none() = nb::none());
157 "Get an instance of TypeType in given context.",
158 nb::arg(
"context").none() = nb::none());
176 m.doc() =
"MLIR PDL dialect.";
NB_MODULE(_mlirDialectsPDL, m)
ReferrentTy * get() const
Used in function arguments when None should resolve to the current context manager set instance.
nanobind::class_< PDLType, PyType > ClassTy
static void bind(nanobind::module_ &m)
MlirTypeID(*)() GetTypeIDFunctionTy
bool(*)(MlirType) IsAFunctionTy
PyType(PyMlirContextRef contextRef, MlirType type)
MLIR_CAPI_EXPORTED MlirTypeID mlirPDLTypeTypeGetTypeID(void)
MLIR_CAPI_EXPORTED MlirType mlirPDLOperationTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirTypeID mlirPDLAttributeTypeGetTypeID(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLRangeType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLAttributeTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirStringRef mlirPDLOperationTypeGetName(void)
MLIR_CAPI_EXPORTED MlirType mlirPDLValueTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirStringRef mlirPDLValueTypeGetName(void)
MLIR_CAPI_EXPORTED MlirStringRef mlirPDLTypeTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLAttributeType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLOperationType(MlirType type)
MLIR_CAPI_EXPORTED MlirTypeID mlirPDLOperationTypeGetTypeID(void)
MLIR_CAPI_EXPORTED MlirTypeID mlirPDLValueTypeGetTypeID(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGetElementType(MlirType type)
MLIR_CAPI_EXPORTED MlirStringRef mlirPDLAttributeTypeGetName(void)
MLIR_CAPI_EXPORTED MlirType mlirPDLTypeTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType mlirPDLRangeTypeGet(MlirType elementType)
MLIR_CAPI_EXPORTED MlirTypeID mlirPDLRangeTypeGetTypeID(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLValueType(MlirType type)
MLIR_CAPI_EXPORTED MlirStringRef mlirPDLRangeTypeGetName(void)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLTypeType(MlirType type)
static void populateDialectPDLSubmodule(nanobind::module_ &m)
Include the generated interface declarations.
A pointer to a sized fragment of a string, not necessarily null-terminated.
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static void bindDerived(ClassTy &c)
static constexpr const char * pyClassName
static constexpr IsAFunctionTy isaFunction
static const MlirStringRef name
static constexpr const char * pyClassName
static void bindDerived(ClassTy &c)
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name
static constexpr IsAFunctionTy isaFunction
static constexpr const char * pyClassName
static constexpr IsAFunctionTy isaFunction
static void bindDerived(ClassTy &c)
static constexpr const char * pyClassName
static const MlirStringRef name
static void bindDerived(ClassTy &c)
static constexpr IsAFunctionTy isaFunction
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr IsAFunctionTy isaFunction
static const MlirStringRef name
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr const char * pyClassName
static void bindDerived(ClassTy &c)
static const MlirStringRef name
static constexpr const char * pyClassName
static void bindDerived(ClassTy &c)
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static constexpr IsAFunctionTy isaFunction