Lines Matching refs:ctx

22 static void testTypeHierarchy(MlirContext ctx) {  in testTypeHierarchy()  argument
25 MlirType i8 = mlirIntegerTypeGet(ctx, 8); in testTypeHierarchy()
27 ctx, mlirStringRefCreateFromCString("!quant.any<i8<-8:7>:f32>")); in testTypeHierarchy()
29 mlirTypeParseGet(ctx, mlirStringRefCreateFromCString( in testTypeHierarchy()
32 ctx, mlirStringRefCreateFromCString( in testTypeHierarchy()
35 ctx, in testTypeHierarchy()
83 void testAnyQuantizedType(MlirContext ctx) { in testAnyQuantizedType() argument
87 ctx, mlirStringRefCreateFromCString("!quant.any<i8<-8:7>:f32>")); in testAnyQuantizedType()
89 MlirType i8 = mlirIntegerTypeGet(ctx, 8); in testAnyQuantizedType()
90 MlirType f32 = mlirF32TypeGet(ctx); in testAnyQuantizedType()
128 void testUniformType(MlirContext ctx) { in testUniformType() argument
132 mlirTypeParseGet(ctx, mlirStringRefCreateFromCString( in testUniformType()
135 MlirType i8 = mlirIntegerTypeGet(ctx, 8); in testUniformType()
136 MlirType f32 = mlirF32TypeGet(ctx); in testUniformType()
157 void testUniformPerAxisType(MlirContext ctx) { in testUniformPerAxisType() argument
161 ctx, mlirStringRefCreateFromCString( in testUniformPerAxisType()
164 MlirType i8 = mlirIntegerTypeGet(ctx, 8); in testUniformPerAxisType()
165 MlirType f32 = mlirF32TypeGet(ctx); in testUniformPerAxisType()
207 void testCalibratedType(MlirContext ctx) { in testCalibratedType() argument
211 ctx, in testCalibratedType()
214 MlirType f32 = mlirF32TypeGet(ctx); in testCalibratedType()
230 MlirContext ctx = mlirContextCreate(); in main() local
231 mlirDialectHandleRegisterDialect(mlirGetDialectHandle__quant__(), ctx); in main()
232 testTypeHierarchy(ctx); in main()
233 testAnyQuantizedType(ctx); in main()
234 testUniformType(ctx); in main()
235 testUniformPerAxisType(ctx); in main()
236 testCalibratedType(ctx); in main()
237 mlirContextDestroy(ctx); in main()