Home
last modified time | relevance | path

Searched refs:getVectorNumElements (Results 1 – 25 of 57) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVISelLowering.cpp26 if (VT.isVector() && VT.getVectorNumElements() == 3 && in getNumRegistersForCallingConv()
39 if (VT.isVector() && VT.getVectorNumElements() == 3) { in getRegisterTypeForCallingConv()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp236 VT.getVectorNumElements() / 2); in scaleVectorType()
266 unsigned NumOfElm = VT.getVectorNumElements(); in genShuffleBland()
443 int VF = VT.getVectorNumElements(); in createShuffleStride()
456 int VF = VT.getVectorNumElements() / std::max(VectorSize / 128, 1); in setGroupSize()
480 unsigned NumElts = VT.getVectorNumElements(); in DecodePALIGNRMask()
615 int VF = VT.getVectorNumElements(); in group2Shuffle()
683 unsigned NumOfElm = VT.getVectorNumElements(); in interleave8bitStride3()
H A DX86ISelLowering.cpp2464 if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 && in getPreferredVectorAction()
2468 if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 && in getPreferredVectorAction()
2514 unsigned NumElts = VT.getVectorNumElements(); in getRegisterTypeForCallingConv()
2524 if (VT.getVectorElementType() == MVT::f16 && VT.getVectorNumElements() < 8) in getRegisterTypeForCallingConv()
2545 unsigned NumElts = VT.getVectorNumElements(); in getNumRegistersForCallingConv()
2555 if (VT.getVectorElementType() == MVT::f16 && VT.getVectorNumElements() < 8) in getNumRegistersForCallingConv()
2581 (!isPowerOf2_32(VT.getVectorNumElements()) || in getVectorTypeBreakdownForCallingConv()
2582 (VT.getVectorNumElements() == 64 && !Subtarget.hasBWI()) || in getVectorTypeBreakdownForCallingConv()
2583 VT.getVectorNumElements() > 64)) { in getVectorTypeBreakdownForCallingConv()
2586 NumIntermediates = VT.getVectorNumElements(); in getVectorTypeBreakdownForCallingConv()
[all …]
H A DX86TargetTransformInfo.cpp273 MVT::getVectorVT(MVT::i16, 2 * LT.second.getVectorNumElements()); in getArithmeticInstrCost()
1413 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()
1462 int NumElts = LT.second.getVectorNumElements(); in getShuffleCost()
1467 int NumSubElts = SubLT.second.getVectorNumElements(); in getShuffleCost()
1486 LT.second.getVectorNumElements()); in getShuffleCost()
1488 SubLT.second.getVectorNumElements()); in getShuffleCost()
1511 int NumElts = LT.second.getVectorNumElements(); in getShuffleCost()
1514 int NumSubElts = SubLT.second.getVectorNumElements(); in getShuffleCost()
1572 LegalVT.getVectorNumElements() < in getShuffleCost()
1583 LegalVT.getVectorNumElements()); in getShuffleCost()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.cpp374 MVT BoolW = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
385 MVT BoolV = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
444 unsigned VecLen = VecTy.getVectorNumElements(); in getPreferredHvxVectorAction()
510 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() + in typeJoin()
511 Tys.second.getVectorNumElements()); in typeJoin()
517 unsigned NumElem = VecTy.getVectorNumElements(); in typeSplit()
527 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeExtElem()
534 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeTruncElem()
773 assert(ResTy.getVectorNumElements() == ByteMask.size()); in getByteShuffle()
891 unsigned ExtLen = ExtTy.getVectorNumElements(); in buildHvxVectorReg()
[all …]
H A DHexagonISelLowering.cpp1040 OpTy.getVectorNumElements()); in LowerSETCC()
1098 OpTy.getVectorNumElements()); in LowerVSELECT()
2165 return SrcTy.getVectorNumElements() <= 8; in isExtractSubvectorCheap()
2420 MVT ExtTy = MVT::getVectorVT(MVT::i16, Ty.getVectorNumElements()); in LowerVECTOR_SHIFT()
2497 assert(VecTy.getVectorNumElements() == Elem.size()); in buildVector32()
2588 assert(VecTy.getVectorNumElements() == Elem.size()); in buildVector64()
2706 assert(VecWidth == VecTy.getVectorNumElements() && in extractVectorPred()
2799 unsigned VecLen = VecTy.getVectorNumElements(); in insertVectorPred()
2816 unsigned Scale = VecLen / ValTy.getVectorNumElements(); in insertVectorPred()
2880 unsigned ValLen = ValTy.getVectorNumElements(); in appendUndef()
[all …]
H A DHexagonSubtarget.cpp197 unsigned NumElems = VecTy.getVectorNumElements(); in isHVXVectorType()
239 unsigned VecLen = PowerOf2Ceil(Ty.getVectorNumElements()); in isTypeForHVX()
H A DHexagonISelLowering.h287 return EVT::getVectorVT(C, MVT::i1, VT.getVectorNumElements()); in getSetCCResultType()
471 SDValue Idx = DAG.getConstant(HalfTy.getVectorNumElements(), dl, MVT::i32); in HiHalf()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp309 && Op.getValueType().getVectorNumElements() == 1 in ScalarizeVecRes_BITCAST()
732 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp()
745 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp_StrictFP()
1349 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR()
1533 unsigned InNumElements = InLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1537 unsigned OutNumElements = OutLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1612 unsigned NE = VT.getVectorNumElements(); in UnrollVectorOp_StrictFP()
2363 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE()
3620 for (unsigned i = 0, e = Op.getValueType().getVectorNumElements(); in SplitVecOp_CONCAT_VECTORS()
3820 return DAG.UnrollVectorOp(N, N->getValueType(0).getVectorNumElements()); in SplitVecOp_FCOPYSIGN()
[all …]
H A DLegalizeTypesGeneric.cpp89 assert(!(InVT.getVectorNumElements() & 1) && "Unsupported BITCAST"); in ExpandRes_BITCAST()
353 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST()
371 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR()
409 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT()
447 unsigned NumElts = VT.getVectorNumElements(); in ExpandOp_SCALAR_TO_VECTOR()
H A DLegalizeVectorOps.cpp613 assert(NVT.getVectorNumElements() == VT.getVectorNumElements() && in PromoteINT_TO_FP()
652 assert(NVT.getVectorNumElements() == VT.getVectorNumElements() && in PromoteFP_TO_INT()
1044 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG()
1047 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG()
1103 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG()
1106 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG()
1138 for (int I = 0, E = VT.getVectorNumElements(); I != E; ++I) in createBSWAPShuffleMask()
1639 unsigned NumElems = VT.getVectorNumElements(); in UnrollStrictFPOp()
1697 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC()
H A DSelectionDAG.cpp877 for (unsigned i = 0, e = N->getValueType(0).getVectorNumElements(); in AddNodeIDCustom()
1092 assert(N->getNumOperands() == N->getValueType(0).getVectorNumElements() && in VerifySDNode()
1583 for (unsigned i = 0; i < ViaVecNumElts / VT.getVectorNumElements(); ++i) in getConstant()
1601 for (unsigned i = 0, e = VT.getVectorNumElements(); i != e; ++i) in getConstant()
1926 for (uint64_t i = 0; i < ResVT.getVectorNumElements(); i++) in getStepVector()
1941 assert(VT.getVectorNumElements() == Mask.size() && in getVectorShuffle()
2056 V.getValueType().getVectorNumElements() == VT.getVectorNumElements(); in getVectorShuffle()
2567 unsigned NumElts = VT.getVectorNumElements(); in computeVectorKnownZeroElements()
2641 unsigned NumElts = VT.getVectorNumElements(); in isSplatValue()
2707 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in isSplatValue()
[all …]
H A DDAGCombiner.cpp349 unsigned NumElts = Op.getValueType().getVectorNumElements(); in SimplifyDemandedVectorElts()
4197 unsigned NumElts = VT.getVectorNumElements(); in visitMUL()
7157 int NumElts = VT.getVectorNumElements(); in visitOR()
10907 int NumElems = VT.getVectorNumElements(); in ConvertSelectToConcatVector()
11253 unsigned Elts = VT.getVectorNumElements(); in foldVSelectOfConstants()
11837 unsigned NumElts = VT.getVectorNumElements(); in tryToFoldExtendOfConstant()
11995 SplitSrcVT.getVectorNumElements() > 1) { in CombineExtLoad()
12007 DstVT.getVectorNumElements() / SplitDstVT.getVectorNumElements(); in CombineExtLoad()
13896 unsigned TruncVecNumElts = VT.getVectorNumElements(); in visitTRUNCATE()
13986 unsigned Idx = isLE ? 0 : VecSrcVT.getVectorNumElements() - 1; in visitTRUNCATE()
[all …]
H A DTargetLowering.cpp546 ? APInt::getAllOnes(VT.getVectorNumElements()) in ShrinkDemandedConstant()
641 ? APInt::getAllOnes(VT.getVectorNumElements()) in SimplifyDemandedBits()
689 unsigned NumSrcElts = SrcVT.getVectorNumElements(); in SimplifyMultipleUseDemandedBits()
712 unsigned NumSrcElts = SrcVT.isVector() ? SrcVT.getVectorNumElements() : 1; in SimplifyMultipleUseDemandedBits()
842 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements()) && in SimplifyMultipleUseDemandedBits()
854 unsigned NumSubElts = Sub.getValueType().getVectorNumElements(); in SimplifyMultipleUseDemandedBits()
917 ? APInt::getAllOnes(VT.getVectorNumElements()) in SimplifyMultipleUseDemandedBits()
1078 assert((!VT.isFixedLengthVector() || NumElts == VT.getVectorNumElements()) && in SimplifyDemandedBits()
1178 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements())) { in SimplifyDemandedBits()
1213 unsigned NumSubElts = Sub.getValueType().getVectorNumElements(); in SimplifyDemandedBits()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVVPISelLowering.cpp25 CDAG.getConstant(Op.getValueType().getVectorNumElements(), MVT::i32); in splitMaskArithmetic()
78 AVL = CDAG.getConstant(OpVecVT.getVectorNumElements(), MVT::i32); in lowerToVVP()
145 AVL = CDAG.getConstant(DataVT.getVectorNumElements(), MVT::i32); in lowerVVP_LOAD_STORE()
285 AVL = CDAG.getConstant(DataVT.getVectorNumElements(), MVT::i32); in lowerVVP_GATHER_SCATTER()
H A DVECustomDAG.cpp25 return SomeVT.getVectorNumElements() > StandardVectorWidth; in isPackedVectorType()
414 auto AVL = getConstant(MaskVT.getVectorNumElements(), MVT::i32); in getConstantMask()
435 unsigned ElemCount = ResultVT.getVectorNumElements(); in getMaskBroadcast()
H A DVEISelDAGToDAG.cpp280 if (SplatResTy.getVectorNumElements() == StandardVectorWidth) { in Select()
283 } else if (SplatResTy.getVectorNumElements() == PackedVectorWidth) { in Select()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DValueTypes.h308 unsigned getVectorNumElements() const { in getVectorNumElements() function
317 return isSimple() ? V.getVectorNumElements() in getVectorNumElements()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp890 unsigned PossibleBits = VT.getVectorNumElements(); in computeKnownBitsForTargetNode()
1867 ExtractedVecT.getVectorNumElements() / VecT.getVectorNumElements(); in LowerSIGN_EXTEND_INREG()
2002 if (Lane->getOperand(0).getValueType().getVectorNumElements() > in LowerBUILD_VECTOR()
2003 VecT.getVectorNumElements()) in LowerBUILD_VECTOR()
2098 size_t DestLaneCount = VecT.getVectorNumElements(); in LowerBUILD_VECTOR()
2262 size_t NumLanes = Op.getSimpleValueType().getVectorNumElements(); in unrollVectorShift()
2352 SrcType.getVectorNumElements() != DstType.getVectorNumElements()) in performVECTOR_SHUFFLECombine()
2558 VT.getVectorNumElements() / Factor); in extractSubVector()
2590 unsigned NumElems = SrcVT.getVectorNumElements(); in truncateVectorWithNARROW()
2593 assert(DstVT.getVectorNumElements() == NumElems && "Illegal truncation"); in truncateVectorWithNARROW()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1076 assert(ArgVT.getVectorNumElements() > RegisterVT.getVectorNumElements()); in analyzeFormalArgumentsCompute()
1082 ArgVT.getVectorNumElements() == NumRegs) { in analyzeFormalArgumentsCompute()
1096 unsigned NumElements = RegisterVT.getVectorNumElements(); in analyzeFormalArgumentsCompute()
1109 if (MemVT.isVector() && MemVT.getVectorNumElements() == 1) in analyzeFormalArgumentsCompute()
1114 assert(MemVT.getVectorNumElements() == 3 || in analyzeFormalArgumentsCompute()
1115 MemVT.getVectorNumElements() == 5 || in analyzeFormalArgumentsCompute()
1116 (MemVT.getVectorNumElements() >= 9 && in analyzeFormalArgumentsCompute()
1117 MemVT.getVectorNumElements() <= 12)); in analyzeFormalArgumentsCompute()
1404 VT.getVectorNumElements()); in LowerEXTRACT_SUBVECTOR()
1521 unsigned NumElts = VT.getVectorNumElements(); in getSplitDestVTs()
[all …]
H A DR600ISelDAGToDAG.cpp103 unsigned NumVectorElts = VT.getVectorNumElements(); in Select()
H A DSIISelLowering.cpp877 unsigned NumElts = VT.getVectorNumElements(); in getNumRegistersForCallingConv()
901 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownForCallingConv()
1629 if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 && in getPreferredVectorAction()
1728 VT.getVectorNumElements() != MemVT.getVectorNumElements()) { in convertArgType()
1731 VT.getVectorNumElements()); in convertArgType()
4502 return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements()); in getSetCCResultType()
4808 if ((LoadVT.getVectorNumElements() % 2) == 1) { in adjustLoadValueTypeImpl()
4811 LoadVT.getVectorNumElements() + 1); in adjustLoadValueTypeImpl()
4826 if ((LoadVT.getVectorNumElements() % 2) == 1) in adjustLoadValueTypeImpl()
4853 LoadVT.getVectorNumElements()); in adjustLoadValueType()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp6192 unsigned DstNumElt = DstVT.getVectorNumElements(); in CombineVMOVDRRCandidateWithVecOp()
6208 ExtractSrc.getValueType().getVectorNumElements() * DstNumElt); in CombineVMOVDRRCandidateWithVecOp()
6263 SrcVT.getVectorNumElements() > 1) in ExpandBITCAST()
6742 unsigned CmpElements = CmpVT.getVectorNumElements() * 2; in LowerVSETCC()
7181 unsigned NumElts = VT.getVectorNumElements(); in isSingletonVEXTMask()
7210 unsigned NumElts = VT.getVectorNumElements(); in isVEXTMask()
7284 unsigned NumElts = VT.getVectorNumElements(); in isVTRNMask()
7316 unsigned NumElts = VT.getVectorNumElements(); in isVTRN_v_undef_Mask()
7348 unsigned NumElts = VT.getVectorNumElements(); in isVUZPMask()
7378 unsigned NumElts = VT.getVectorNumElements(); in isVUZP_v_undef_Mask()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3907 unsigned NumElts = InVT.getVectorNumElements(); in LowerVectorFP_TO_INT()
3946 VT.getVectorNumElements()); in LowerVectorFP_TO_INT()
4033 MVT F32VT = MVT::getVectorVT(MVT::f32, SrcVT.getVectorNumElements()); in LowerVectorFP_TO_INT_SAT()
4169 InVT.getVectorNumElements()); in LowerVectorINT_TO_FP()
4193 if (VT.getVectorNumElements() == 1) { in LowerVectorINT_TO_FP()
4368 if (!VT.isFixedLengthVector() || VT.getVectorNumElements() != 2 || !C) in getConstantLaneNumOfExtractHalfOperand()
4412 unsigned NumElts = VT.getVectorNumElements(); in skipExtensionForVectorMULL()
10272 unsigned NarrowSize = VT.getVectorNumElements(); in WidenVector()
10292 unsigned WideSize = VT.getVectorNumElements(); in NarrowVector()
10310 unsigned NumElts = VT.getVectorNumElements(); in ReconstructShuffle()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.h489 return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements()); in getSetCCResultType()

123