Home
last modified time | relevance | path

Searched refs:vectorType (Results 1 – 25 of 58) sorted by relevance

123

/llvm-project/mlir/lib/Dialect/ArmSVE/Transforms/
H A DLegalizeVectorStorage.cpp103 auto vectorType = llvm::dyn_cast<VectorType>(memrefElementType); in matchAndRewrite() local
104 if (!vectorType || !vectorType.isScalable() || allocaOp.getAlignment()) in matchAndRewrite()
108 unsigned aligment = vectorType.getElementType().isInteger(1) ? 2 : 16; in matchAndRewrite()
137 auto vectorType = in matchAndRewrite() local
140 if (!vectorType || !isSVEMaskType(vectorType)) in matchAndRewrite()
150 {}, widenScalableMaskTypeToSvbool(vectorType)))); in matchAndRewrite()
186 auto vectorType = llvm::dyn_cast<VectorType>(resultType.getElementType()); in matchAndRewrite() local
188 if (!vectorType || !isSVEMaskTyp in matchAndRewrite()
231 auto vectorType = llvm::dyn_cast<VectorType>(valueToStore.getType()); matchAndRewrite() local
278 auto vectorType = llvm::dyn_cast<VectorType>(loadedMask.getType()); matchAndRewrite() local
[all...]
/llvm-project/mlir/unittests/IR/
H A DShapedTypeTest.cpp118 ShapedType vectorType = in TEST()
123 ASSERT_EQ(vectorType.clone(vectorNewShape), in TEST()
128 ASSERT_EQ(vectorType.clone(vectorNewType), in TEST()
131 ASSERT_EQ(vectorType.clone(vectorNewShape, vectorNewType), in TEST()
141 VectorType vectorType = VectorType::get(shape, f32, scalableDims); in TEST()
146 VectorType::Builder(vectorType).dropDim(0).dropDim(0); in TEST()
147 ASSERT_EQ(vectorType.getElementType(), dropFrontTwoDims.getElementType()); in TEST()
148 ASSERT_EQ(vectorType.getShape().drop_front(2), dropFrontTwoDims.getShape()); in TEST()
149 ASSERT_EQ(vectorType.getScalableDims().drop_front(2), in TEST()
156 VectorType::Builder(vectorType) in TEST()
117 ShapedType vectorType = TEST() local
140 VectorType vectorType = VectorType::get(shape, f32, scalableDims); TEST() local
[all...]
/llvm-project/mlir/lib/Dialect/ArmSME/Transforms/
H A DVectorLegalization.cpp182 auto vectorType = dyn_cast<VectorType>(constantOp.getType()); in matchAndRewrite()
184 if (!vectorType || !denseAttr || !denseAttr.isSplat()) in matchAndRewrite()
187 if (!isMultipleOfSMETileVectorType(vectorType)) in matchAndRewrite()
191 auto smeTileType = getSMETileTypeForElement(vectorType.getElementType()); in matchAndRewrite()
192 auto tileCount = getNumberOfSMETilesForVectorType(vectorType); in matchAndRewrite()
212 auto vectorType = outerProductOp.getResultVectorType(); in matchAndRewrite()
213 if (!isMultipleOfSMETileVectorType(vectorType)) in matchAndRewrite()
232 auto smeTileType = getSMETileTypeForElement(vectorType.getElementType()); in matchAndRewrite()
237 decomposeToSMETiles(rewriter, vectorType, smeTileType))) { in matchAndRewrite()
291 auto vectorType in matchAndRewrite()
178 auto vectorType = dyn_cast<VectorType>(constantOp.getType()); matchAndRewrite() local
207 auto vectorType = outerProductOp.getResultVectorType(); matchAndRewrite() local
285 auto vectorType = readOp.getVectorType(); matchAndRewrite() local
333 auto vectorType = writeOp.getVectorType(); matchAndRewrite() local
429 auto vectorType = writeOp.getVectorType(); matchAndRewrite() local
787 __anonedfe57290802(VectorType vectorType, SmallVectorImpl<Type> &types) runOnOperation() argument
[all...]
H A DEnableArmStreaming.cpp64 if (auto vectorType = dyn_cast<VectorType>(type)) in isScalableVector() local
65 return vectorType.isScalable(); in isScalableVector()
/llvm-project/mlir/lib/Dialect/NVGPU/Utils/
H A DMMAUtils.cpp31 auto shape = type.vectorType.getShape(); in inferNumRegistersPerMatrixFragment()
33 (shape[1] * type.vectorType.getElementType().getIntOrFloatBitWidth()) / in inferNumRegistersPerMatrixFragment()
63 info.vectorType = writeOp.getVectorType(); in getWarpMatrixInfo()
66 info.vectorType = cast<VectorType>(op->getResult(0).getType()); in getWarpMatrixInfo()
89 Type elType = type.vectorType.getElementType(); in inferTileWidthInBits()
101 MLIRContext *ctx = type.vectorType.getContext(); in getMmaSyncRegisterType()
104 Type elType = type.vectorType.getElementType(); in getMmaSyncRegisterType()
175 Type elementType = fragmentType.vectorType.getElementType(); in getLaneIdAndValueIdToOperandCoord()
176 ArrayRef<int64_t> operandShape = fragmentType.vectorType.getShape(); in getLaneIdAndValueIdToOperandCoord()
211 Type elType = type.vectorType in getLdMatrixParams()
[all...]
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOpUtils.h24 if (auto vectorType = dyn_cast<VectorType>(type)) { in getBitWidth() local
25 assert(vectorType.getElementType().isIntOrFloat()); in getBitWidth()
26 return vectorType.getNumElements() * in getBitWidth()
27 vectorType.getElementType().getIntOrFloatBitWidth(); in getBitWidth()
H A DCastOps.cpp281 if (auto vectorType = llvm::dyn_cast<VectorType>(operandType)) { in verify()
282 unsigned operandNumElements = vectorType.getNumElements(); in verify() local
302 if (auto vectorType = llvm::dyn_cast<VectorType>(operandType)) { in verify()
303 unsigned operandNumElements = vectorType.getNumElements(); in verify() local
H A DSPIRVTypes.cpp95 if (auto vectorType = llvm::dyn_cast<VectorType>(type)) in classof() local
96 return isValid(vectorType); in classof()
126 if (auto vectorType = llvm::dyn_cast<VectorType>(*this)) in getNumElements()
127 return vectorType.getNumElements(); in getNumElements() local
182 if (auto vectorType = llvm::dyn_cast<VectorType>(*this)) {
184 llvm::cast<ScalarType>(vectorType.getElementType()).getSizeInBytes(); in getSizeInBytes()
187 return *elementSize * vectorType.getNumElements(); in getSizeInBytes()
657 if (auto vectorType = llvm::dyn_cast<VectorType>(type)) in getCapabilities()
658 return CompositeType::isValid(vectorType); in getCapabilities()
1131 if (auto vectorType in getExtensions()
188 if (auto vectorType = llvm::dyn_cast<VectorType>(*this)) { getSizeInBytes() local
732 if (auto vectorType = llvm::dyn_cast<VectorType>(type)) classof() local
1205 if (auto vectorType = llvm::dyn_cast<VectorType>(columnType)) { isValidColumnType() local
[all...]
/llvm-project/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransferOpTransforms.cpp353 VectorType vectorType = cast<VectorType>(vector.getType());
374 VectorType reducedVectorType = trimNonScalableUnitDims(vectorType); in matchAndRewrite()
416 loc, vectorType, newTransferReadOp->getResults()[0]); in matchAndRewrite()
435 VectorType vectorType = cast<VectorType>(vector.getType()); in matchAndRewrite()
456 VectorType reducedVectorType = trimNonScalableUnitDims(vectorType); in matchAndRewrite()
606 VectorType vectorType = cast<VectorType>(vector.getType()); in matchAndRewrite()
615 if (vectorType.getRank() <= 1) in matchAndRewrite()
617 if (!vectorType.getElementType().isSignlessIntOrFloat()) in matchAndRewrite()
620 vectorType.getShape().back() * vectorType in matchAndRewrite()
366 VectorType vectorType = cast<VectorType>(vector.getType()); matchAndRewrite() local
434 VectorType vectorType = cast<VectorType>(vector.getType()); matchAndRewrite() local
588 VectorType vectorType = cast<VectorType>(vector.getType()); matchAndRewrite() local
679 VectorType vectorType = cast<VectorType>(vector.getType()); matchAndRewrite() local
[all...]
H A DVectorInsertExtractStridedSliceRewritePatterns.cpp24 auto vectorType = cast<VectorType>(into.getType()); insertOne() local
35 auto vectorType = cast<VectorType>(vector.getType()); extractOne() local
/llvm-project/mlir/lib/Conversion/MathToSPIRV/
H A DMathToSPIRV.cpp37 if (auto vectorType = dyn_cast<VectorType>(type)) { in getScalarOrVectorI32Constant() local
38 if (!vectorType.getElementType().isInteger(32)) in getScalarOrVectorI32Constant()
40 SmallVector<int> values(vectorType.getNumElements(), value); in getScalarOrVectorI32Constant()
138 } else if (auto vectorType = dyn_cast<VectorType>(copySignOp.getType())) { in matchAndRewrite() local
139 floatType = cast<FloatType>(vectorType.getElementType()); in matchAndRewrite()
154 if (auto vectorType = dyn_cast<VectorType>(type)) { in matchAndRewrite() local
155 assert(vectorType.getRank() == 1); in matchAndRewrite()
156 int count = vectorType.getNumElements(); in matchAndRewrite()
208 if (auto vectorType = dyn_cast<VectorType>(type)) in matchAndRewrite() local
209 bitwidth = vectorType in matchAndRewrite()
312 } else if (auto vectorType = dyn_cast<VectorType>(powfOp.getType())) { matchAndRewrite() local
321 if (auto vectorType = dyn_cast<VectorType>(adaptor.getRhs().getType())) { matchAndRewrite() local
[all...]
/llvm-project/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp92 if (auto vectorType = dyn_cast<VectorType>(type)) in decorateType() local
93 return decorateType(vectorType, size, alignment); in decorateType()
105 Type VulkanLayoutUtils::decorateType(VectorType vectorType, in decorateType() argument
108 const auto numElements = vectorType.getNumElements(); in decorateType()
109 auto elementType = vectorType.getElementType(); in decorateType()
/llvm-project/mlir/lib/Conversion/VectorToSPIRV/
H A DVectorToSPIRV.cpp52 if (auto vectorType = dyn_cast<VectorType>(type)) in getFirstIntValue()
53 return vectorType.getNumElements() * vectorType.getElementTypeBitWidth(); in getFirstIntValue()
315 Type vectorType = getTypeConverter()->convertType(insertOp.getType());
316 if (!vectorType)
319 if (isa<spirv::ScalarType>(vectorType)) {
331 insertOp, vectorType, insertOp.getDest(), adaptor.getSource(), in matchAndRewrite()
729 auto vectorType = loadOp.getVectorType(); in matchAndRewrite()
730 auto vectorPtrType = spirv::PointerType::get(vectorType, storageClass); in matchAndRewrite()
733 rewriter.replaceOpWithNewOp<spirv::LoadOp>(loadOp, vectorType, in matchAndRewrite()
65 if (auto vectorType = dyn_cast<VectorType>(type)) getNumBits() local
294 Type vectorType = getTypeConverter()->convertType(insertOp.getType()); matchAndRewrite() local
704 auto vectorType = loadOp.getVectorType(); matchAndRewrite() local
739 auto vectorType = storeOp.getVectorType(); matchAndRewrite() local
862 auto vectorType = dyn_cast<VectorType>(vec.getType()); matchAndRewrite() local
[all...]
/llvm-project/mlir/lib/Conversion/LLVMCommon/
H A DVectorPattern.cpp19 LLVM::detail::extractNDVectorTypeInfo(VectorType vectorType, in extractNDVectorTypeInfo() argument
21 assert(vectorType.getRank() > 1 && "expected >1D vector type"); in extractNDVectorTypeInfo()
23 info.llvmNDVectorTy = converter.convertType(vectorType); in extractNDVectorTypeInfo()
28 info.arraySizes.reserve(vectorType.getRank() - 1); in extractNDVectorTypeInfo()
/llvm-project/mlir/lib/Conversion/MathToLLVM/
H A DMathToLLVM.cpp88 auto vectorType = dyn_cast<VectorType>(resultType); in matchAndRewrite() local
89 if (!vectorType) in matchAndRewrite()
144 auto vectorType = dyn_cast<VectorType>(resultType); in matchAndRewrite() local
145 if (!vectorType) in matchAndRewrite()
203 auto vectorType = dyn_cast<VectorType>(resultType); in matchAndRewrite() local
204 if (!vectorType) in matchAndRewrite()
262 auto vectorType = dyn_cast<VectorType>(resultType); in matchAndRewrite() local
263 if (!vectorType) in matchAndRewrite()
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparseVectorization.cpp59 static VectorType vectorType(VL vl, Type etp) { in vectorType()
64 static VectorType vectorType(VL vl, Value mem) { in vectorType()
65 return vectorType(vl, getMemRefType(mem).getElementType()); in vectorType()
71 VectorType mtp = vectorType(vl, rewriter.getI1Type()); in genVectorMask()
103 VectorType vtp = vectorType(vl, val.getType()); in genVectorInvariantValue()
113 VectorType vtp = vectorType(vl, mem); in genVectorLoad()
305 loc, vectorType(vl, rewriter.getI32Type()), vload); in vectorizeSubscripts()
308 loc, vectorType(vl, rewriter.getI64Type()), vload); in vectorizeSubscripts()
352 VectorType vtp = vectorType(vl, x.getType()); \
383 VectorType vtp = vectorType(v in vectorizeExpr()
58 static VectorType vectorType(VL vl, Type etp) { vectorType() function
63 static VectorType vectorType(VL vl, Value mem) { vectorType() function
[all...]
/llvm-project/mlir/lib/Dialect/Vector/Utils/
H A DVectorUtils.cpp257 bool vector::isContiguousSlice(MemRefType memrefType, VectorType vectorType) { in isContiguousSlice() argument
258 if (vectorType.isScalable()) in isContiguousSlice()
261 ArrayRef<int64_t> vectorShape = vectorType.getShape(); in isContiguousSlice()
262 auto vecRank = vectorType.getRank(); in isContiguousSlice()
270 // Compare the dims of `vectorType` against `memrefType` (in reverse). in isContiguousSlice()
279 // `vectorType` need to be 1. in isContiguousSlice()
340 auto vectorType = VectorType::get(readShape, padValue.getType()); in createReadOrMaskedRead()
354 /*vectorType=*/vectorType, in createReadOrMaskedRead()
341 auto vectorType = VectorType::get(readShape, padValue.getType()); createReadOrMaskedRead() local
/llvm-project/mlir/lib/Dialect/Vector/IR/
H A DVectorOps.cpp155 VectorType vectorType) { in getTransferMinorIdentityMap() argument
164 vectorType.getShape() == ArrayRef<int64_t>{1}) in getTransferMinorIdentityMap()
169 shapedType.getRank(), vectorType.getRank() - elementVectorRank, in getTransferMinorIdentityMap()
693 auto vectorType = reductionOp.getSourceVectorType(); in matchAndRewrite()
694 if (vectorType.getRank() != 0 && vectorType.getDimSize(0) != 1) in matchAndRewrite()
699 if (vectorType.getRank() == 0) { in matchAndRewrite()
995 auto vectorType = llvm::dyn_cast<VectorType>(getOperand(index).getType()); in verify()
996 unsigned rank = vectorType ? vectorType in verify()
677 auto vectorType = reductionOp.getSourceVectorType(); matchAndRewrite() local
979 auto vectorType = llvm::dyn_cast<VectorType>(getOperand(index).getType()); verify() local
1015 auto vectorType = llvm::dyn_cast<VectorType>(resType); verify() local
1216 VectorType vectorType = getSourceVectorType(); verify() local
1290 auto vectorType = llvm::cast<VectorType>(adaptor.getVector().getType()); inferReturnTypes() local
1307 auto vectorType = llvm::dyn_cast<VectorType>(l.front()); isCompatibleReturnTypes() local
2430 auto vectorType = getResultVectorType(); fold() local
3409 inferStridedSliceOpResultType(VectorType vectorType,ArrayAttr offsets,ArrayAttr sizes,ArrayAttr strides) inferStridedSliceOpResultType() argument
3803 build(OpBuilder & builder,OperationState & result,VectorType vectorType,Value source,ValueRange indices,AffineMapAttr permutationMapAttr,ArrayAttr inBoundsAttr) build() argument
3815 build(OpBuilder & builder,OperationState & result,VectorType vectorType,Value source,ValueRange indices,AffineMap permutationMap,std::optional<ArrayRef<bool>> inBounds) build() argument
3828 build(OpBuilder & builder,OperationState & result,VectorType vectorType,Value source,ValueRange indices,Value padding,std::optional<ArrayRef<bool>> inBounds) build() argument
3845 build(OpBuilder & builder,OperationState & result,VectorType vectorType,Value source,ValueRange indices,std::optional<ArrayRef<bool>> inBounds) build() argument
3885 verifyTransferOp(VectorTransferOpInterface op,ShapedType shapedType,VectorType vectorType,VectorType maskType,VectorType inferredMaskType,AffineMap permutationMap,ArrayAttr inBounds) verifyTransferOp() argument
4028 VectorType vectorType = llvm::dyn_cast<VectorType>(types[1]); parse() local
4070 VectorType vectorType = getVectorType(); verify() local
4370 auto vectorType = llvm::cast<VectorType>(vector.getType()); build() local
4397 VectorType vectorType = llvm::dyn_cast<VectorType>(types[0]); parse() local
4449 VectorType vectorType = getVectorType(); verify() local
5566 auto vectorType = llvm::dyn_cast<VectorType>(memRefType.getElementType()); extractShape() local
5580 VectorType vectorType = build() local
5654 VectorType vectorType = getSourceVectorType(); verify() local
5876 auto vectorType = llvm::cast<VectorType>(getResult().getType()); verify() local
[all...]
/llvm-project/mlir/lib/Conversion/VectorToSCF/
H A DVectorToSCF.cpp328 auto vectorType = dyn_cast<VectorType>(type.getElementType()); in unpackOneDim()
331 if (vectorType.getScalableDims().front())
336 newMemrefShape.push_back(vectorType.getDimSize(0)); in getMaskBuffer()
338 VectorType::Builder(vectorType).dropDim(0)); in getMaskBuffer()
706 VectorType vectorType = dyn_cast<VectorType>(printOp.getPrintType()); in matchAndRewrite()
707 if (!vectorType) in matchAndRewrite()
716 if (vectorType.getRank() > 1 && vectorType.isScalable()) in matchAndRewrite()
722 if (auto intTy = dyn_cast<IntegerType>(vectorType.getElementType())) { in matchAndRewrite()
732 vectorType in matchAndRewrite()
319 auto vectorType = dyn_cast<VectorType>(type.getElementType()); unpackOneDim() local
697 VectorType vectorType = dyn_cast<VectorType>(printOp.getPrintType()); matchAndRewrite() local
[all...]
/llvm-project/mlir/lib/Conversion/AMDGPUToROCDL/
H A DAMDGPUToROCDL.cpp385 if (auto vectorType = dyn_cast<VectorType>(inputType)) { in wmmaPushInputOperand()
386 if (vectorType.getElementType().isBF16()) in wmmaPushInputOperand()
388 loc, vectorType.clone(rewriter.getI16Type()), input); in wmmaPushInputOperand()
389 if (vectorType.getElementType().isInteger(8)) { in wmmaPushInputOperand()
391 loc, rewriter.getIntegerType(vectorType.getNumElements() * 8), input); in wmmaPushInputOperand()
409 auto vectorType = dyn_cast<VectorType>(inputType);
410 Type elemType = vectorType.getElementType();
414 loc, vectorType.clone(rewriter.getI16Type()), llvmInput); in wmmaPushOutputOperand()
437 int64_t numBytes = vectorType.getNumElements(); in mfmaOpToIntrinsic()
458 auto vectorType in mfmaOpToIntrinsic()
337 if (auto vectorType = dyn_cast<VectorType>(inputType)) { mfmaConcatIfNeeded() local
374 auto vectorType = dyn_cast<VectorType>(inputType); wmmaPushInputOperand() local
417 auto vectorType = dyn_cast<VectorType>(inputType); wmmaPushOutputOperand() local
[all...]
/llvm-project/mlir/lib/Conversion/VectorToArmSME/
H A DVectorToArmSME.cpp56 auto vectorType = transferReadOp.getVectorType(); in matchAndRewrite() local
57 if (!arm_sme::isValidSMETileVectorType(vectorType)) in matchAndRewrite()
87 transferReadOp, vectorType, transferReadOp.getSource(), in matchAndRewrite()
638 VectorType vectorType = dyn_cast<VectorType>(printOp.getPrintType()); in matchAndRewrite()
639 if (!vectorType || !arm_sme::isValidSMETileVectorType(vectorType)) in matchAndRewrite() local
647 rewriter.create<arith::ConstantIndexOp>(loc, vectorType.getDimSize(0)); in matchAndRewrite()
/llvm-project/mlir/lib/Conversion/VectorToGPU/
H A DVectorToGPU.cpp658 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); in convertConstantOpMmaSync()
666 op.getLoc(), vectorType, in convertConstantOpMmaSync()
667 DenseElementsAttr::get(vectorType, dense.getSplatValue<Attribute>())); in convertConstantOpMmaSync()
755 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); in creatLdMatrixCompatibleLoads()
762 loc, vectorType, op.getSource(), indices, *transpose, params->numTiles); in creatLdMatrixCompatibleLoads()
791 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); in createNonLdMatrixLoads()
794 op.getLoc(), vectorType.getElementType(), in createNonLdMatrixLoads()
795 rewriter.getZeroAttr(vectorType.getElementType())); in createNonLdMatrixLoads()
797 rewriter.create<vector::SplatOp>(op.getLoc(), fill, vectorType); in createNonLdMatrixLoads()
808 for (int i = 0; i < vectorType in createNonLdMatrixLoads()
656 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); convertConstantOpMmaSync() local
753 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); creatLdMatrixCompatibleLoads() local
789 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); createNonLdMatrixLoads() local
918 VectorType vectorType = getMmaSyncVectorOperandType(*regInfo); convertTransferWriteToStores() local
1217 auto vectorType = cast<VectorType>(op->getResultTypes()[0]); convertElementwiseOp() local
[all...]
/llvm-project/mlir/lib/Dialect/Quant/Utils/
H A DUniformSupport.cpp41 if (auto vectorType = dyn_cast<VectorType>(inputType)) in convert() local
42 return VectorType::get(vectorType.getShape(), elementalType); in convert()
/llvm-project/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp105 Value index, VectorType vectorType) { in getIndexedPtrs()
108 assert(vectorType.getRank() == 1 && "expected a 1-d vector type"); in getIndexedPtrs()
111 LLVM::getVectorType(pType, vectorType.getDimSize(0), in getIndexedPtrs()
112 /*isScalable=*/vectorType.getScalableDims()[0]); in getIndexedPtrs()
644 Type vectorType) { in createMaskNeutralValue()
647 auto denseValue = DenseElementsAttr::get(cast<ShapedType>(vectorType), value); in createMaskNeutralValue()
648 return rewriter.create<LLVM::ConstantOp>(loc, vectorType, denseValue);
995 auto vectorType = shuffleOp.getResultVectorType(); in matchAndRewrite()
996 Type llvmType = typeConverter->convertType(vectorType); in matchAndRewrite()
1004 int64_t rank = vectorType in matchAndRewrite()
642 createMaskNeutralValue(ConversionPatternRewriter & rewriter,Location loc,Type llvmType,Type vectorType) createMaskNeutralValue() argument
993 auto vectorType = shuffleOp.getResultVectorType(); matchAndRewrite() local
1056 auto vectorType = extractEltOp.getSourceVectorType(); matchAndRewrite() local
1175 auto vectorType = insertEltOp.getDestVectorType(); matchAndRewrite() local
1659 auto vectorType = typeConverter->convertType(splatOp.getType()); matchAndRewrite() local
1848 VectorType vectorType = fromElementsOp.getType(); matchAndRewrite() local
[all...]
/llvm-project/mlir/unittests/Dialect/SPIRV/
H A DSerializationTest.cpp88 if (auto vectorType = dyn_cast<VectorType>(type)) { in addConstInt() local
89 Type elemType = vectorType.getElementType(); in addConstInt()
93 DenseElementsAttr::get(vectorType, in addConstInt()

123