Lines Matching defs:getRank
160 elementVectorRank += elementVectorType.getRank();
163 if (shapedType.getRank() == 0 &&
169 shapedType.getRank(), vectorType.getRank() - elementVectorRank,
469 if (getSourceVectorType().getRank() == 1 && !isReducedDim(0))
601 int64_t rank = getSourceVectorType().getRank();
694 if (vectorType.getRank() != 0 && vectorType.getDimSize(0) != 1)
699 if (vectorType.getRank() == 0) {
872 if (dimPair.first < 0 || dimPair.first >= lhsType.getRank() ||
873 dimPair.second < 0 || dimPair.second >= rhsType.getRank() ||
897 for (int64_t i = 0, e = lhsType.getRank(); i < e; ++i) {
904 for (int64_t i = 0, e = rhsType.getRank(); i < e; ++i) {
936 for (unsigned idx = 0, e = v.getRank(); idx < e; ++idx) {
1238 if (vectorType.getRank() == 0) {
1243 if (vectorType.getRank() != 1)
1325 vectorType.getRank()) {
1329 vectorType.getRank());
1360 if (position.size() > static_cast<unsigned>(getSourceVectorType().getRank()))
1516 : extractOp(e), vectorRank(extractOp.getSourceVectorType().getRank()),
1651 return vecType && vecType.getRank() == 0;
1671 auto getRank = [](Type type) {
1672 return llvm::isa<VectorType>(type) ? llvm::cast<VectorType>(type).getRank()
1677 unsigned broadcastSrcRank = getRank(source.getType());
1681 unsigned extractResultRank = getRank(extractOp.getType());
1693 int64_t broadcastDstRank = broadcastOp.getResultVectorType().getRank();
1738 if (shuffleOp.getResultVectorType().getRank() != 1)
1774 ? llvm::cast<VectorType>(extractOp.getType()).getRank()
1776 if (destinationRank > shapeCastOp.getSourceVectorType().getRank())
1807 shapeCastOp.getSourceVectorType().getRank() - destinationRank;
1856 destinationRank = vecType.getRank();
1859 if (destinationRank > extractStridedSliceOp.getSourceVectorType().getRank() -
1883 ? llvm::cast<VectorType>(extractOp.getType()).getRank()
1895 int64_t insertRankDiff = insertOp.getDestVectorType().getRank() -
1896 insertOp.getSourceVectorType().getRank();
1897 if (destinationRank > insertOp.getSourceVectorType().getRank())
1930 insertOp.getSourceVectorType().getRank() - destinationRank;
1972 int64_t rank = vecType.getRank();
2044 auto getRank = [](Type type) {
2046 ? llvm::cast<VectorType>(type).getRank()
2049 unsigned broadcastSrcRank = getRank(source.getType());
2050 unsigned extractResultRank = getRank(extractOp.getType());
2123 llvm::SmallVector<int64_t> completePositions(vecTy.getRank(), 0);
2260 firstElementPos.append(/*NumInputs=*/resultType.getRank(), /*Elt=*/0);
2263 for (int64_t i = inputType.getRank() - 1; i >= 0; --i) {
2494 int64_t srcRank = srcVectorType.getRank();
2495 int64_t dstRank = dstVectorType.getRank();
2615 int64_t resRank = resultType.getRank();
2616 int64_t v1Rank = v1Type.getRank();
2617 int64_t v2Rank = v2Type.getRank();
2639 int64_t indexSize = (v1Type.getRank() == 0 ? 1 : v1Type.getDimSize(0)) +
2640 (v2Type.getRank() == 0 ? 1 : v2Type.getDimSize(0));
2653 auto v1Rank = v1Type.getRank();
2679 if (v1Type.getRank() == 0)
2700 if (lhsType.getRank() != 1)
2729 if (v1VectorType.getRank() > 0)
2778 if (resultType.getRank() != 1)
2828 if (dstVectorType.getRank() == 0) {
2833 if (dstVectorType.getRank() != 1)
2908 if (position.size() > static_cast<unsigned>(destVectorType.getRank()))
2913 (static_cast<unsigned>(srcVectorType.getRank()) + position.size() !=
2914 static_cast<unsigned>(destVectorType.getRank())))
2918 (position.size() != static_cast<unsigned>(destVectorType.getRank())))
3019 llvm::SmallVector<int64_t> completePositions(destTy.getRank(), 0);
3191 if (offsets.size() != static_cast<unsigned>(destVectorType.getRank()))
3194 if (strides.size() != static_cast<unsigned>(sourceVectorType.getRank()))
3196 if (sourceVectorType.getRank() > destVectorType.getRank())
3340 int64_t rankDifference = destTy.getRank() - sliceVecTy.getRank();
3459 if (vLHS.getRank() != 1)
3464 if (vRHS.getRank() != 1)
3466 if (vRES.getRank() != 2)
3480 if (vRES.getRank() != 1)
3520 shape.reserve(vectorType.getRank());
3617 if (op.getSourceVectorType().getRank() !=
3618 insertOp.getSourceVectorType().getRank())
3796 int64_t sliceRank = sliceVecTy.getRank();
3844 unsigned srcRank = srcVecType ? srcVecType.getRank() : 0;
3846 unsigned dstRank = dstVecType.getRank();
3918 if (sourceType.isScalable() || sourceType.getRank() == 0)
3940 if (numOffsets == sourceType.getRank() &&
3941 static_cast<int>(sizes.size()) == sourceType.getRank())
4004 SmallVector<bool>(vectorType.getRank(), false));
4020 SmallVector<bool>(vectorType.getRank(), false));
4096 unsigned sourceVecEltRank = vectorElementType.getRank();
4097 unsigned resultVecRank = vectorType.getRank();
4112 vectorType.getRank() == 0 ? 1 : vectorType.getShape().back();
4121 if (permutationMap.getNumResults() != vectorType.getRank())
4129 if (permutationMap.getNumInputs() != shapedType.getRank())
4239 if (vectorType.getRank() != permMap.getNumResults()) {
4269 if (static_cast<int64_t>(getIndices().size()) != shapedType.getRank())
4270 return emitOpError("requires ") << shapedType.getRank() << " indices";
4578 llvm::cast<VectorType>(vector.getType()).getRank(), false));
4646 if (vectorType.getRank() != permMap.getNumResults()) {
4681 if (llvm::size(getIndices()) != shapedType.getRank())
4682 return emitOpError("requires ") << shapedType.getRank() << " indices";
4940 if (insertOp.getSourceType().getRank() != transferOp.getTransferRank()) {
5019 (vecTy.getRank() == 0 || vecTy.getNumElements() == 1))
5044 if (llvm::size(getIndices()) != memRefTy.getRank())
5045 return emitOpError("requires ") << memRefTy.getRank() << " indices";
5077 if (llvm::size(getIndices()) != memRefTy.getRank())
5078 return emitOpError("requires ") << memRefTy.getRank() << " indices";
5099 if (llvm::size(getIndices()) != memType.getRank())
5100 return emitOpError("requires ") << memType.getRank() << " indices";
5152 if (llvm::size(getIndices()) != memType.getRank())
5153 return emitOpError("requires ") << memType.getRank() << " indices";
5206 if (llvm::size(getIndices()) != baseType.getRank())
5207 return emitOpError("requires ") << baseType.getRank() << " indices";
5235 if (!vecType || vecType.getRank() != 1 || vecType.isScalable())
5303 if (llvm::size(getIndices()) != memType.getRank())
5304 return emitOpError("requires ") << memType.getRank() << " indices";
5365 if (llvm::size(getIndices()) != memType.getRank())
5366 return emitOpError("requires ") << memType.getRank() << " indices";
5412 if (llvm::size(getIndices()) != memType.getRank())
5413 return emitOpError("requires ") << memType.getRank() << " indices";
5510 unsigned sourceRank = sourceVectorType.getRank();
5511 unsigned resultRank = resultVectorType.getRank();
5558 if (srcType.getRank() < resultType.getRank()) {
5561 } else if (srcType.getRank() > resultType.getRank()) {
5775 for (int64_t i = 0, e = sourceVectorType.getRank() - 1; i < e; i++) {
5786 if (sourceVectorType.getRank() == 0) {
5917 SmallVector<int64_t, 4> transposedShape(vt.getRank());
5918 SmallVector<bool, 4> transposedScalableDims(vt.getRank());
5955 int64_t rank = resultType.getRank();
5956 if (vectorType.getRank() != rank)
6109 : SmallVector<int64_t>(type.getRank(), 0));
6115 if (resultType.getRank() == 0) {
6125 if (static_cast<int64_t>(getMaskDimSizes().size()) != resultType.getRank())
6155 if (resultType.getRank() == 0) {
6182 if (vectorType.getRank() == 0) {
6187 llvm::cast<VectorType>(getResult().getType()).getRank()) {
6232 if (maskType.getRank() == 0) {
6546 int64_t srcRank = srcType.getRank();
6553 int64_t initialValueRank = initialType.getRank();