Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp67 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSLDUPMask()
75 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSHDUPMask()
85 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVDDUPMask()
127 unsigned NumElts = VT.getVectorNumElements(); in DecodePALIGNRMask()
147 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFMask()
165 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFHWMask()
181 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFLWMask()
196 unsigned NumElts = VT.getVectorNumElements(); in DecodePSWAPMask()
209 unsigned NumElts = VT.getVectorNumElements(); in DecodeSHUFPMask()
231 unsigned NumElts = VT.getVectorNumElements(); in DecodeUNPCKHMask()
[all …]
/external/llvm/include/llvm/CodeGen/
DValueTypes.h86 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements()); in changeVectorElementTypeToInteger()
243 unsigned getVectorNumElements() const { in getVectorNumElements() function
246 return V.getVectorNumElements(); in getVectorNumElements()
305 return EVT::getVectorVT(Context, EltVT, getVectorNumElements()); in widenIntegerVectorElementType()
310 unsigned NElts = getVectorNumElements(); in isPow2VectorType()
318 unsigned NElts = getVectorNumElements(); in getPow2VectorType()
DBasicTTIImpl.h51 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead()
74 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getAltShuffleOverhead()
317 unsigned Num = Ty->getVectorNumElements();
408 unsigned Num = Dst->getVectorNumElements(); in getCastInstrCost()
458 unsigned Num = ValTy->getVectorNumElements(); in getCmpSelInstrCost()
594 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements()); in getIntrinsicInstrCost()
602 ScalarCalls = std::max(ScalarCalls, Ty->getVectorNumElements()); in getIntrinsicInstrCost()
724 unsigned ScalarCalls = RetTy->getVectorNumElements(); in getIntrinsicInstrCost()
737 ScalarCalls = std::max(ScalarCalls, Tys[i]->getVectorNumElements()); in getIntrinsicInstrCost()
772 unsigned NumVecElts = Ty->getVectorNumElements(); in getReductionCost()
DMachineValueType.h285 unsigned NElts = getVectorNumElements(); in isPow2VectorType()
295 unsigned NElts = getVectorNumElements(); in getPow2VectorType()
364 unsigned getVectorNumElements() const { in getVectorNumElements() function
DSelectionDAGNodes.h1381 return makeArrayRef(Mask, VT.getVectorNumElements());
1384 assert(Idx < getValueType(0).getVectorNumElements() && "Idx out of range!");
1392 for (unsigned i = 0, e = VT.getVectorNumElements(); i != e; ++i) {
2126 assert(getMask().getValueType().getVectorNumElements() ==
2127 getValueType(0).getVectorNumElements() &&
2129 assert(getIndex().getValueType().getVectorNumElements() ==
2130 getValueType(0).getVectorNumElements() &&
2149 assert(getMask().getValueType().getVectorNumElements() ==
2150 getValue().getValueType().getVectorNumElements() &&
2152 assert(getIndex().getValueType().getVectorNumElements() ==
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp490 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp()
795 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR()
836 DAG.getConstant(IdxVal + LoVT.getVectorNumElements(), dl, in SplitVecRes_EXTRACT_SUBVECTOR()
930 unsigned LoNumElts = Lo.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_VECTOR_ELT()
1232 unsigned NumElements = SrcVT.getVectorNumElements(); in SplitVecRes_ExtendOp()
1271 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE()
1512 InVT.getVectorNumElements()); in SplitVecOp_UnaryOp()
1544 uint64_t LoElts = Lo.getValueType().getVectorNumElements(); in SplitVecOp_EXTRACT_SUBVECTOR()
1548 assert(IdxVal + SubVT.getVectorNumElements() <= LoElts && in SplitVecOp_EXTRACT_SUBVECTOR()
1565 assert(IdxVal < VecVT.getVectorNumElements() && "Invalid vector index!"); in SplitVecOp_EXTRACT_VECTOR_ELT()
[all …]
DLegalizeVectorOps.cpp504 unsigned NumElem = SrcVT.getVectorNumElements(); in ExpandLoad()
509 if (SrcVT.getVectorNumElements() > 1 && !SrcEltVT.isByteSized()) { in ExpandLoad()
658 unsigned NumElem = StVT.getVectorNumElements(); in ExpandStore()
741 unsigned NumElem = VT.getVectorNumElements(); in ExpandSELECT()
810 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG()
813 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG()
857 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG()
860 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG()
890 for (int I = 0, E = VT.getVectorNumElements(); I != E; ++I) in ExpandBSWAP()
1027 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC()
DLegalizeTypesGeneric.cpp93 assert(!(InVT.getVectorNumElements() & 1) && "Unsupported BITCAST"); in ExpandRes_BITCAST()
218 unsigned OldElts = OldVec.getValueType().getVectorNumElements(); in ExpandRes_EXTRACT_VECTOR_ELT()
364 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST()
383 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR()
423 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT()
461 unsigned NumElts = VT.getVectorNumElements(); in ExpandOp_SCALAR_TO_VECTOR()
DSelectionDAG.cpp516 for (unsigned i = 0, e = N->getValueType(0).getVectorNumElements(); in AddNodeIDCustom()
721 assert(N->getNumOperands() == N->getValueType(0).getVectorNumElements() && in VerifySDNode()
1055 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getAnyExtendVectorInReg()
1065 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getSignExtendVectorInReg()
1075 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getZeroExtendVectorInReg()
1158 for (unsigned i = 0; i < ViaVecNumElts / VT.getVectorNumElements(); ++i) { in getConstant()
1177 for (unsigned i = 0; i < VT.getVectorNumElements(); ++i) in getConstant()
1209 Ops.assign(VT.getVectorNumElements(), Result); in getConstant()
1253 Ops.assign(VT.getVectorNumElements(), Result); in getConstantFP()
1507 unsigned NElts = VT.getVectorNumElements(); in getVectorShuffle()
[all …]
DLegalizeTypes.cpp877 2*Lo.getValueType().getVectorNumElements() == in SetSplitVector()
878 Op.getValueType().getVectorNumElements() && in SetSplitVector()
921 unsigned NumElts = Op.getValueType().getVectorNumElements(); in BitConvertVectorToIntegerVector()
1138 assert(ValVT.getVectorNumElements() > BoolVT.getVectorNumElements() && in WidenTargetBoolean()
1142 ValVT.getVectorNumElements()); in WidenTargetBoolean()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp34 for (unsigned i = 1, e = V->getType()->getVectorNumElements(); i != e; in cheapToScalarize()
216 SVI->getOperand(0)->getType()->getVectorNumElements(); in visitExtractElementInst()
285 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements()
327 unsigned NumLHSElts = LHS->getType()->getVectorNumElements(); in collectSingleShuffleElements()
410 unsigned NumLHSElts = RHS->getType()->getVectorNumElements(); in collectShuffleElements()
421 EI->getOperand(0)->getType()->getVectorNumElements(); in collectShuffleElements()
495 EI->getOperand(0)->getType()->getVectorNumElements(); in visitInsertElementInst()
679 NewOps[0]->getType()->getVectorNumElements()); in buildNew()
756 bool NeedsRebuild = (Mask.size() != I->getType()->getVectorNumElements()); in EvaluateInDifferentElementOrder()
DInstCombineCalls.cpp1005 II->getType()->getVectorNumElements()); in visitCallInst()
1026 II->getArgOperand(0)->getType()->getVectorNumElements()); in visitCallInst()
1112 unsigned VWidth = Arg->getType()->getVectorNumElements(); in visitCallInst()
1167 unsigned VWidth = Arg1->getType()->getVectorNumElements(); in visitCallInst()
1210 unsigned VWidth0 = Op0->getType()->getVectorNumElements(); in visitCallInst()
1211 unsigned VWidth1 = Op1->getType()->getVectorNumElements(); in visitCallInst()
1246 unsigned VWidth = Op0->getType()->getVectorNumElements(); in visitCallInst()
1270 unsigned VWidth = Op0->getType()->getVectorNumElements(); in visitCallInst()
1273 Op1->getType()->getVectorNumElements() == 2 && in visitCallInst()
1306 unsigned VWidth0 = Op0->getType()->getVectorNumElements(); in visitCallInst()
[all …]
/external/llvm/lib/Analysis/
DCostModel.cpp147 SmallVector<int, 32> Mask(SI->getType()->getVectorNumElements(), -1); in matchPairwiseShuffleMask()
257 unsigned NumVecElems = VecTy->getVectorNumElements(); in matchPairwiseReduction()
321 unsigned NumVecElems = VecTy->getVectorNumElements(); in matchVectorSplittingReduction()
487 unsigned NumVecElems = VecTypOp0->getVectorNumElements(); in getInstructionCost()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp307 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost()
428 Src->getVectorNumElements() < 8) { in getMemoryOpCost()
431 unsigned NumVecElts = Src->getVectorNumElements(); in getMemoryOpCost()
449 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost()
467 if (I->getScalarSizeInBits() * I->getVectorNumElements() == 128) in getCostOfKeepingLiveOverCall()
DAArch64ISelLowering.cpp1851 unsigned NumElts = InVT.getVectorNumElements(); in LowerVectorFP_TO_INT()
1874 VT.getVectorNumElements()); in LowerVectorFP_TO_INT()
1923 InVT.getVectorNumElements()); in LowerVectorINT_TO_FP()
2089 unsigned NumElts = VT.getVectorNumElements(); in skipExtensionForVectorMULL()
4802 unsigned NarrowSize = VT.getVectorNumElements(); in WidenVector()
4822 unsigned WideSize = VT.getVectorNumElements(); in NarrowVector()
4837 unsigned NumElts = VT.getVectorNumElements(); in ReconstructShuffle()
4984 SmallVector<int, 8> Mask(ShuffleVT.getVectorNumElements(), -1); in ReconstructShuffle()
4986 for (unsigned i = 0; i < VT.getVectorNumElements(); ++i) { in ReconstructShuffle()
5028 unsigned NumElts = VT.getVectorNumElements(); in isSingletonEXTMask()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dvector-type.ll2 ; Type::getVectorNumElements without checking first if the type was a vector.
/external/llvm/lib/IR/
DConstantFold.cpp55 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector()
569 DestTy->getVectorNumElements() == V->getType()->getVectorNumElements()) { in ConstantFoldCastInstruction()
574 for (unsigned i = 0, e = V->getType()->getVectorNumElements(); i != e; ++i) { in ConstantFoldCastInstruction()
736 for (unsigned i = 0, e = V1->getType()->getVectorNumElements(); i != e;++i){ in ConstantFoldSelectInstruction()
755 if (Result.size() == V1->getType()->getVectorNumElements()) in ConstantFoldSelectInstruction()
793 if (CIdx->uge(Val->getType()->getVectorNumElements())) in ConstantFoldExtractElementInstruction()
809 unsigned NumElts = Val->getType()->getVectorNumElements(); in ConstantFoldInsertElementInstruction()
833 unsigned MaskNumElts = Mask->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction()
843 unsigned SrcNumElts = V1->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction()
896 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction()
[all …]
DValueTypes.cpp30 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
119 return "v" + utostr(getVectorNumElements()) + in getEVTString()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp1856 VT.getVectorNumElements() != 1 && in getPreferredVectorAction()
1870 const unsigned NumElts = VVT.getVectorNumElements(); in getSetCCResultType()
3040 unsigned NumElems = VT.getVectorNumElements(); in getMOVL()
4195 return (Index == 0 || Index == ResVT.getVectorNumElements()); in isExtractSubvectorCheap()
4361 unsigned NumElts = VT.getVectorNumElements(); in getConstVector()
4419 assert((Subtarget->hasBWI() || VT.getVectorNumElements() <= 16) in getZeroVector()
4421 assert((Subtarget->hasVLX() || VT.getVectorNumElements() >= 8) in getZeroVector()
4424 SmallVector<SDValue, 64> Ops(VT.getVectorNumElements(), Cst); in getZeroVector()
4441 VT.getVectorNumElements()/Factor); in ExtractSubVector()
4586 unsigned NumElems = OpVT.getVectorNumElements(); in Insert1BitVector()
[all …]
DX86TargetTransformInfo.cpp926 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost()
941 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead()
955 unsigned NumElem = VTy->getVectorNumElements(); in getMemoryOpCost()
1002 unsigned NumElem = SrcVTy->getVectorNumElements(); in getMaskedMemoryOpCost()
1028 LT.second.getVectorNumElements() == NumElem) in getMaskedMemoryOpCost()
1033 else if (LT.second.getVectorNumElements() > NumElem) { in getMaskedMemoryOpCost()
1035 LT.second.getVectorNumElements()); in getMaskedMemoryOpCost()
1323 if (isa<VectorType>(DataTy) && !isPowerOf2_32(DataTy->getVectorNumElements())) in isLegalMaskedGather()
DX86TargetObjectFile.cpp146 NumElements = Ty->getVectorNumElements(); in scalarConstantToHexString()
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp916 SVT.getVectorNumElements() / 2)); in getTypeConversion()
943 unsigned NumElts = VT.getVectorNumElements(); in getTypeConversion()
1029 EVT NVT = EVT::getVectorVT(Context, EltVT, VT.getVectorNumElements() / 2); in getTypeConversion()
1038 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownMVT()
1278 unsigned NElts = VT.getVectorNumElements(); in computeRegisterProperties()
1290 && SVT.getVectorNumElements() == NElts && isTypeLegal(SVT) in computeRegisterProperties()
1308 && SVT.getVectorNumElements() > NElts && isTypeLegal(SVT)) { in computeRegisterProperties()
1389 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdown()
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp110 Arg->getType()->getVectorNumElements() == 1 && in visitCallInst()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp1961 if (VTy->getVectorNumElements() == 2) { in findBestDAGFor()
2041 Ty1->isVectorTy() ? Ty1->getVectorNumElements() : 1, Ty2)); in findBestDAGFor()
2119 if (VTy->getVectorNumElements() == 2) in findBestDAGFor()
2143 if (Ty2->getVectorNumElements() > Ty1->getVectorNumElements()) in findBestDAGFor()
2331 unsigned NumElem1 = J->getType()->getVectorNumElements(); in fillNewShuffleMask()
2358 unsigned NumElemI = ArgTypeI->getVectorNumElements(); in getReplacementShuffleMask()
2363 unsigned NumElem = VArgType->getVectorNumElements(); in getReplacementShuffleMask()
2367 unsigned NumInElemI = OpTypeI->getVectorNumElements(); in getReplacementShuffleMask()
2369 unsigned NumInElemJ = OpTypeJ->getVectorNumElements(); in getReplacementShuffleMask()
2515 ->getVectorNumElements(); in getReplacementInput()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILISelLowering.cpp433 EVT IVT = genIntType(32, DVT.isVector() ? DVT.getVectorNumElements() : 1); in LowerSIGN_EXTEND_INREG()
500 } else if (OVT.getVectorNumElements() == 2) { in LowerSDIV24()
503 } else if (OVT.getVectorNumElements() == 4) { in LowerSDIV24()

1234