24 return isa<pdl::PDLType>(
unwrap(type));
32 return isa<pdl::AttributeType>(
unwrap(type));
36 return wrap(pdl::AttributeType::getTypeID());
40 return wrap(pdl::AttributeType::get(
unwrap(ctx)));
44 return wrap(pdl::AttributeType::name);
52 return isa<pdl::OperationType>(
unwrap(type));
56 return wrap(pdl::OperationType::getTypeID());
60 return wrap(pdl::OperationType::get(
unwrap(ctx)));
64 return wrap(pdl::OperationType::name);
72 return isa<pdl::RangeType>(
unwrap(type));
76 return wrap(pdl::RangeType::getTypeID());
80 return wrap(pdl::RangeType::get(
unwrap(elementType)));
84 return wrap(pdl::RangeType::name);
96 return isa<pdl::TypeType>(
unwrap(type));
100 return wrap(pdl::TypeType::getTypeID());
114 return isa<pdl::ValueType>(
unwrap(type));
118 return wrap(pdl::ValueType::getTypeID());
122 return wrap(pdl::ValueType::get(
unwrap(ctx)));
126 return wrap(pdl::ValueType::name);
bool mlirTypeIsAPDLRangeType(MlirType type)
MlirTypeID mlirPDLRangeTypeGetTypeID(void)
bool mlirTypeIsAPDLTypeType(MlirType type)
MlirStringRef mlirPDLAttributeTypeGetName(void)
MlirType mlirPDLOperationTypeGet(MlirContext ctx)
bool mlirTypeIsAPDLValueType(MlirType type)
MlirType mlirPDLAttributeTypeGet(MlirContext ctx)
MlirStringRef mlirPDLTypeTypeGetName(void)
bool mlirTypeIsAPDLOperationType(MlirType type)
MlirStringRef mlirPDLOperationTypeGetName(void)
MlirStringRef mlirPDLRangeTypeGetName(void)
MlirTypeID mlirPDLAttributeTypeGetTypeID(void)
MlirStringRef mlirPDLValueTypeGetName(void)
MlirTypeID mlirPDLOperationTypeGetTypeID(void)
MlirType mlirPDLRangeTypeGet(MlirType elementType)
MlirType mlirPDLValueTypeGet(MlirContext ctx)
MlirTypeID mlirPDLTypeTypeGetTypeID(void)
MlirType mlirPDLRangeTypeGetElementType(MlirType type)
MlirTypeID mlirPDLValueTypeGetTypeID(void)
bool mlirTypeIsAPDLAttributeType(MlirType type)
MlirType mlirPDLTypeTypeGet(MlirContext ctx)
static Type getElementType(Type type)
Determine the element type of type.
#define MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Name, Namespace, ClassName)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MLIR_CAPI_EXPORTED bool mlirTypeIsAPDLType(MlirType type)
Include the generated interface declarations.
A pointer to a sized fragment of a string, not necessarily null-terminated.