Home
last modified time | relevance | path

Searched refs:convertedType (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/mlir/unittests/Dialect/Quant/
H A DQuantizationUtilsTest.cpp80 IntegerType convertedType = IntegerType::get(&ctx, 8); in TEST() local
81 auto quantizedType = getTestQuantizedType(convertedType, &ctx); in TEST()
92 convertedType.getWidth()); in TEST()
98 IntegerType convertedType = IntegerType::get(&ctx, 8); in TEST() local
99 auto quantizedType = getTestQuantizedType(convertedType, &ctx); in TEST()
112 EXPECT_EQ(tensorType.getElementType(), convertedType); in TEST()
124 IntegerType convertedType = IntegerType::get(&ctx, 8); in TEST() local
125 auto quantizedType = getTestQuantizedType(convertedType, &ctx); in TEST()
138 EXPECT_EQ(tensorType.getElementType(), convertedType); in TEST()
150 IntegerType convertedType = IntegerType::get(&ctx, 8); in TEST() local
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToSPIRV/
H A DGPUToSPIRV.cpp168 auto convertedType = in matchAndRewrite() local
170 if (!convertedType) in matchAndRewrite()
173 op, convertedType, IntegerAttr::get(convertedType, val)); in matchAndRewrite()
206 auto convertedType = typeConverter.convertType(argType.value()); in lowerAsEntryFunction() local
207 signatureConverter.addInputs(argType.index(), convertedType); in lowerAsEntryFunction()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp67 auto convertedType = LLVM::LLVMStructType::getIdentified( in LLVMTypeConverter() local
70 while (convertedType.isInitialized()) { in LLVMTypeConverter()
73 convertedType = LLVM::LLVMStructType::getIdentified( in LLVMTypeConverter()
78 results.push_back(convertedType); in LLVMTypeConverter()
87 if (failed(convertedType.setBody(convertedElemTypes, type.isPacked()))) in LLVMTypeConverter()
89 results.push_back(convertedType); in LLVMTypeConverter()
H A DMemRefBuilder.cpp59 auto convertedType = typeConverter.convertType(type); in fromStaticShape() local
60 assert(convertedType && "unexpected failure in memref type conversion"); in fromStaticShape()
62 auto descr = MemRefDescriptor::undef(builder, loc, convertedType); in fromStaticShape()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToSPIRV/
H A DSCFToSPIRV.cpp138 for (Type convertedType : returnTypes) { in replaceSCFOutputValue() local
140 spirv::PointerType::get(convertedType, spirv::StorageClass::Function); in replaceSCFOutputValue()
288 auto convertedType = typeConverter.convertType(result.getType()); in matchAndRewrite() local
289 returnTypes.push_back(convertedType); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp553 auto convertedType = getTypeConverter()->convertType(argType.value()); in matchAndRewrite() local
554 if (!convertedType) in matchAndRewrite()
556 signatureConverter.addInputs(argType.index(), convertedType); in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestPatterns.cpp1120 Type convertedType = getTypeConverter() in matchAndRewrite() local
1128 convertedType != resultType) in matchAndRewrite()
1129 resultType = convertedType; in matchAndRewrite()