Home
last modified time | relevance | path

Searched refs:constructedType (Results 1 – 3 of 3) sorted by relevance

/llvm-project/mlir/test/CAPI/
H A Dpdl.c27 MlirType constructedType = mlirPDLAttributeTypeGet(ctx); in testAttributeType() local
30 assert(!mlirTypeIsNull(constructedType) && "couldn't construct PDLAttributeType"); in testAttributeType()
53 mlirTypeIsAPDLType(constructedType)); in testAttributeType()
56 mlirTypeIsAPDLAttributeType(constructedType)); in testAttributeType()
59 mlirTypeIsAPDLOperationType(constructedType)); in testAttributeType()
62 mlirTypeIsAPDLRangeType(constructedType)); in testAttributeType()
65 mlirTypeIsAPDLTypeType(constructedType)); in testAttributeType()
68 mlirTypeIsAPDLValueType(constructedType)); in testAttributeType()
71 fprintf(stderr, "equal: %d\n", mlirTypeEqual(parsedType, constructedType)); in testAttributeType()
76 mlirTypeDump(constructedType); in testAttributeType()
[all …]
H A Dtransform.c26 MlirType constructedType = mlirTransformAnyOpTypeGet(ctx); in testAnyOpType() local
29 assert(!mlirTypeIsNull(constructedType) && "couldn't construct AnyOpType"); in testAnyOpType()
32 fprintf(stderr, "equal: %d\n", mlirTypeEqual(parsedType, constructedType)); in testAnyOpType()
42 mlirTypeDump(constructedType); in testAnyOpType()
53 MlirType constructedType = mlirTransformOperationTypeGet( in testOperationType() local
57 assert(!mlirTypeIsNull(constructedType) && "couldn't construct AnyOpType"); in testOperationType()
60 fprintf(stderr, "equal: %d\n", mlirTypeEqual(parsedType, constructedType)); in testOperationType()
71 mlirTransformOperationTypeGetOperationName(constructedType); in testOperationType()
77 mlirTypeDump(constructedType); in testOperationType()
/llvm-project/mlir/test/python/dialects/
H A Dpdl_types.py18 constructedType = pdl.AttributeType.get()
26 assert pdl.AttributeType.isinstance(constructedType)
27 assert not pdl.OperationType.isinstance(constructedType)
28 assert not pdl.RangeType.isinstance(constructedType)
29 assert not pdl.TypeType.isinstance(constructedType)
30 assert not pdl.ValueType.isinstance(constructedType)
32 assert parsedType == constructedType
37 print(constructedType)
45 constructedType = pdl.OperationType.get()
53 assert not pdl.AttributeType.isinstance(constructedType)
[all …]