24 return isa<pdl::PDLType>(
unwrap(type));
32 return isa<pdl::AttributeType>(
unwrap(type));
36 return wrap(pdl::AttributeType::get(
unwrap(ctx)));
44 return isa<pdl::OperationType>(
unwrap(type));
48 return wrap(pdl::OperationType::get(
unwrap(ctx)));
56 return isa<pdl::RangeType>(
unwrap(type));
60 return wrap(pdl::RangeType::get(
unwrap(elementType)));
72 return isa<pdl::TypeType>(
unwrap(type));
84 return isa<pdl::ValueType>(
unwrap(type));
bool mlirTypeIsAPDLRangeType(MlirType type)
bool mlirTypeIsAPDLTypeType(MlirType type)
MlirType mlirPDLOperationTypeGet(MlirContext ctx)
bool mlirTypeIsAPDLValueType(MlirType type)
MlirType mlirPDLAttributeTypeGet(MlirContext ctx)
bool mlirTypeIsAPDLOperationType(MlirType type)
MlirType mlirPDLRangeTypeGet(MlirType elementType)
MlirType mlirPDLValueTypeGet(MlirContext ctx)
MlirType mlirPDLRangeTypeGetElementType(MlirType type)
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.