Home
last modified time | relevance | path

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

1234567891011

/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp50 unsigned NumElts = VT.getVectorNumElements(); in DecodeInsertElementMask()
78 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSLDUPMask()
86 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSHDUPMask()
96 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVDDUPMask()
138 unsigned NumElts = VT.getVectorNumElements(); in DecodePALIGNRMask()
158 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFMask()
176 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFHWMask()
192 unsigned NumElts = VT.getVectorNumElements(); in DecodePSHUFLWMask()
207 unsigned NumElts = VT.getVectorNumElements(); in DecodePSWAPMask()
220 unsigned NumElts = VT.getVectorNumElements(); in DecodeSHUFPMask()
[all …]
/external/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp45 int NumElts = MaskTy->getVectorNumElements(); in DecodePSHUFBMask()
251 int NumElts = MaskTy->getVectorNumElements(); in DecodeVPPERMMask()
304 unsigned NumElements = MaskTy->getVectorNumElements(); in DecodeVPERMVMask()
305 if (NumElements == VT.getVectorNumElements()) { in DecodeVPERMVMask()
328 int NumElements = VT.getVectorNumElements(); in DecodeVPERMVMask()
337 unsigned NumElements = MaskTy->getVectorNumElements(); in DecodeVPERMV3Mask()
338 if (NumElements == VT.getVectorNumElements()) { in DecodeVPERMV3Mask()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp177 unsigned NumSrcElts = SrcTy->getVectorNumElements(); in foldBitcastExtElt()
258 unsigned VWidth = V->getType()->getVectorNumElements(); in findDemandedEltsBySingleUser()
275 unsigned MaskNumElts = UserInstr->getType()->getVectorNumElements(); in findDemandedEltsBySingleUser()
301 unsigned VWidth = V->getType()->getVectorNumElements(); in findDemandedEltsByAllUsers()
414 SVI->getOperand(0)->getType()->getVectorNumElements(); in visitExtractElementInst()
449 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements()
491 unsigned NumLHSElts = LHS->getType()->getVectorNumElements(); in collectSingleShuffleElements()
527 unsigned NumInsElts = InsVecType->getVectorNumElements(); in replaceExtractElements()
528 unsigned NumExtElts = ExtVecType->getVectorNumElements(); in replaceExtractElements()
611 unsigned NumElts = V->getType()->getVectorNumElements(); in collectShuffleElements()
[all …]
/external/llvm/include/llvm/CodeGen/
DValueTypes.h86 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements()); in changeVectorElementTypeToInteger()
248 unsigned getVectorNumElements() const { in getVectorNumElements() function
251 return V.getVectorNumElements(); in getVectorNumElements()
310 return EVT::getVectorVT(Context, EltVT, getVectorNumElements()); in widenIntegerVectorElementType()
315 unsigned NElts = getVectorNumElements(); in isPow2VectorType()
323 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()
331 unsigned Num = Ty->getVectorNumElements();
433 Dst->getVectorNumElements() / 2); in getCastInstrCost()
435 Src->getVectorNumElements() / 2); in getCastInstrCost()
443 unsigned Num = Dst->getVectorNumElements(); in getCastInstrCost()
503 unsigned Num = ValTy->getVectorNumElements(); in getCmpSelInstrCost()
718 ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements()); in getIntrinsicInstrCost()
726 ScalarCalls = std::max(ScalarCalls, Ty->getVectorNumElements()); in getIntrinsicInstrCost()
874 unsigned ScalarCalls = RetTy->getVectorNumElements(); in getIntrinsicInstrCost()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp490 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp()
800 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR()
841 DAG.getConstant(IdxVal + LoVT.getVectorNumElements(), dl, in SplitVecRes_EXTRACT_SUBVECTOR()
855 unsigned VecElems = VecVT.getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
856 unsigned SubElems = SubVec.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
953 unsigned InNumElements = InLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
957 unsigned OutNumElements = OutLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
987 unsigned LoNumElts = Lo.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_VECTOR_ELT()
1289 unsigned NumElements = SrcVT.getVectorNumElements(); in SplitVecRes_ExtendOp()
1328 unsigned NewElts = NewVT.getVectorNumElements(); in SplitVecRes_VECTOR_SHUFFLE()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp278 && Op.getValueType().getVectorNumElements() == 1 in ScalarizeVecRes_BITCAST()
648 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp()
661 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp_StrictFP()
1079 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR()
1120 DAG.getConstant(IdxVal + LoVT.getVectorNumElements(), dl, in SplitVecRes_EXTRACT_SUBVECTOR()
1133 unsigned VecElems = VecVT.getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
1134 unsigned SubElems = SubVec.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
1233 unsigned InNumElements = InLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1237 unsigned OutNumElements = OutLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1310 unsigned NE = VT.getVectorNumElements(); in UnrollVectorOp_StrictFP()
[all …]
DSelectionDAG.cpp633 for (unsigned i = 0, e = N->getValueType(0).getVectorNumElements(); in AddNodeIDCustom()
827 assert(N->getNumOperands() == N->getValueType(0).getVectorNumElements() && in VerifySDNode()
1273 for (unsigned i = 0; i < ViaVecNumElts / VT.getVectorNumElements(); ++i) { in getConstant()
1292 for (unsigned i = 0, e = VT.getVectorNumElements(); i != e; ++i) in getConstant()
1609 assert(VT.getVectorNumElements() == Mask.size() && in getVectorShuffle()
1724 V.getValueType().getVectorNumElements() == VT.getVectorNumElements(); in getVectorShuffle()
2168 ? APInt::getAllOnesValue(VT.getVectorNumElements()) in GetDemandedBits()
2258 ? APInt::getAllOnesValue(VT.getVectorNumElements()) in MaskedValueIsZero()
2291 unsigned NumElts = VT.getVectorNumElements(); in isSplatValue()
2334 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in isSplatValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h92 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead()
111 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getPermuteShuffleOverhead()
125 int NumSubElts = SubTy->getVectorNumElements(); in getExtractSubvectorOverhead()
126 assert((Index + NumSubElts) <= (int)Ty->getVectorNumElements() && in getExtractSubvectorOverhead()
147 int NumSubElts = SubTy->getVectorNumElements(); in getInsertSubvectorOverhead()
148 assert((Index + NumSubElts) <= (int)Ty->getVectorNumElements() && in getInsertSubvectorOverhead()
573 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead()
598 assert((VF == 1 || VF == VecTy->getVectorNumElements()) && in getOperandsScalarizationOverhead()
619 VecTy->getVectorNumElements()); in getScalarizationOverhead()
666 unsigned Num = Ty->getVectorNumElements();
[all …]
DValueTypes.h105 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements(), in changeVectorElementTypeToInteger()
275 unsigned getVectorNumElements() const { in getVectorNumElements() function
278 return V.getVectorNumElements(); in getVectorNumElements()
375 unsigned NElts = getVectorNumElements(); in isPow2VectorType()
383 unsigned NElts = getVectorNumElements(); in getPow2VectorType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InterleavedAccess.cpp190 SubVecTy->getVectorNumElements(), 0)))); in decompose()
229 VT.getVectorNumElements() / 2); in scaleVectorType()
259 unsigned NumOfElm = VT.getVectorNumElements(); in genShuffleBland()
438 int VF = VT.getVectorNumElements(); in createShuffleStride()
451 int VF = VT.getVectorNumElements() / std::max(VectorSize / 128, 1); in setGroupSize()
475 unsigned NumElts = VT.getVectorNumElements(); in DecodePALIGNRMask()
613 int VF = VT.getVectorNumElements(); in group2Shuffle()
683 unsigned NumOfElm = VT.getVectorNumElements(); in interleave8bitStride3()
731 unsigned NumSubVecElems = ShuffleEltTy->getVectorNumElements() / Factor; in lowerIntoOptimizedSequence()
760 unsigned NumSubVecElems = ShuffleTy->getVectorNumElements() / Factor; in lowerIntoOptimizedSequence()
[all …]
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp291 && Op.getValueType().getVectorNumElements() == 1 in ScalarizeVecRes_BITCAST()
663 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp()
676 assert(N->getValueType(0).getVectorNumElements() == 1 && in ScalarizeVecOp_UnaryOp_StrictFP()
1177 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR()
1219 DAG.getVectorIdxConstant(IdxVal + LoVT.getVectorNumElements(), dl)); in SplitVecRes_EXTRACT_SUBVECTOR()
1231 unsigned VecElems = VecVT.getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
1232 unsigned SubElems = SubVec.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_SUBVECTOR()
1337 unsigned InNumElements = InLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1341 unsigned OutNumElements = OutLoVT.getVectorNumElements(); in SplitVecRes_ExtVecInRegOp()
1416 unsigned NE = VT.getVectorNumElements(); in UnrollVectorOp_StrictFP()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DLowLevelType.cpp20 init(/*IsPointer=*/false, VT.getVectorNumElements() > 1, in LLT()
21 VT.getVectorNumElements(), VT.getVectorElementType().getSizeInBits(), in LLT()
/external/llvm-project/llvm/lib/Support/
DLowLevelType.cpp20 init(/*IsPointer=*/false, VT.getVectorNumElements() > 1, in LLT()
21 VT.getVectorNumElements(), VT.getVectorElementType().getSizeInBits(), in LLT()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp177 MVT BoolW = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
185 MVT BoolV = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
222 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() + in typeJoin()
223 Tys.second.getVectorNumElements()); in typeJoin()
229 unsigned NumElem = VecTy.getVectorNumElements(); in typeSplit()
239 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeExtElem()
246 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeTruncElem()
344 assert(ResTy.getVectorNumElements() == ByteMask.size()); in getByteShuffle()
448 unsigned ExtLen = ExtTy.getVectorNumElements(); in buildHvxVectorReg()
520 unsigned Scale = HwLen / (PredTy.getVectorNumElements() * BitBytes); in createHvxPrefixPred()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp168 if (BCTy->getVectorNumElements() == BCSrcTy->getVectorNumElements()) { in lookThroughBitcast()
188 if (!isLegalTypeAndAlignment(Ty->getVectorNumElements(), in lowerGather()
220 if (Ty->getVectorNumElements() != 4) in tryCreateMaskedGatherBase()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp211 MVT BoolW = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
222 MVT BoolV = MVT::getVectorVT(MVT::i1, T.getVectorNumElements()); in initializeHVXLowering()
272 unsigned VecLen = VecTy.getVectorNumElements(); in getPreferredHvxVectorAction()
315 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() + in typeJoin()
316 Tys.second.getVectorNumElements()); in typeJoin()
322 unsigned NumElem = VecTy.getVectorNumElements(); in typeSplit()
332 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeExtElem()
339 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements()); in typeTruncElem()
468 assert(ResTy.getVectorNumElements() == ByteMask.size()); in getByteShuffle()
575 unsigned ExtLen = ExtTy.getVectorNumElements(); in buildHvxVectorReg()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/
Dlower_x86.cpp326 uint32_t numElem = vi1Mask->getType()->getVectorNumElements(); in VectorMask()
515 uint32_t numElem = v32A->getType()->getVectorNumElements(); in VPERM_EMU()
543 uint32_t numElem = vSrc->getType()->getVectorNumElements(); in VGATHER_EMU()
622 uint32_t numElem = v64Mask->getType()->getVectorNumElements(); in VGATHER_EMU()
642 uint32_t numElemSrc0 = src0->getType()->getVectorNumElements(); in VGATHER_EMU()
643 uint32_t numElemMask0 = mask0->getType()->getVectorNumElements(); in VGATHER_EMU()
644 uint32_t numElemSrc1 = src1->getType()->getVectorNumElements(); in VGATHER_EMU()
645 uint32_t numElemMask1 = mask1->getType()->getVectorNumElements(); in VGATHER_EMU()
898 uint32_t vecWidth = argType->getVectorNumElements(); in DOUBLE_EMU()
920 vecWidth = result[0]->getType()->getVectorNumElements() + in DOUBLE_EMU()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/Utils/
DLocal.h66 OpC = ConstantVector::getSplat(IntIdxTy->getVectorNumElements(), OpC);
79 Op = Builder->CreateVectorSplat(IntIdxTy->getVectorNumElements(), Op);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp212 DstTy->getVectorNumElements()); in isWideningInstruction()
261 unsigned NumDstEls = DstTyL.first * DstTyL.second.getVectorNumElements(); in isWideningInstruction()
262 unsigned NumSrcEls = SrcTyL.first * SrcTyL.second.getVectorNumElements(); in isWideningInstruction()
473 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost()
669 if (Ty->getVectorNumElements() < ProfitableNumElements) { in getMemoryOpCost()
670 unsigned NumVecElts = Ty->getVectorNumElements(); in getMemoryOpCost()
692 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost()
713 if (I->getScalarSizeInBits() * I->getVectorNumElements() == 128) in getCostOfKeepingLiveOverCall()
916 return ScalarBits * Ty->getVectorNumElements() >= 128; in useReductionIntrinsic()
919 (ScalarBits * Ty->getVectorNumElements() >= 128); in useReductionIntrinsic()
/external/llvm-project/llvm/lib/Target/X86/
DX86InterleavedAccess.cpp236 VT.getVectorNumElements() / 2); in scaleVectorType()
266 unsigned NumOfElm = VT.getVectorNumElements(); in genShuffleBland()
444 int VF = VT.getVectorNumElements(); in createShuffleStride()
457 int VF = VT.getVectorNumElements() / std::max(VectorSize / 128, 1); in setGroupSize()
481 unsigned NumElts = VT.getVectorNumElements(); in DecodePALIGNRMask()
619 int VF = VT.getVectorNumElements(); in group2Shuffle()
689 unsigned NumOfElm = VT.getVectorNumElements(); in interleave8bitStride3()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp345 unsigned WideBits = getScalarSizeInBits(Ty) * Ty->getVectorNumElements(); in getNumVectorRegs()
397 unsigned VF = Ty->getVectorNumElements(); in getArithmeticInstrCost()
567 assert (SrcTy->getVectorNumElements() == DstTy->getVectorNumElements() && in getVectorTruncCost()
583 unsigned VF = SrcTy->getVectorNumElements(); in getVectorTruncCost()
657 unsigned VF = Dst->getVectorNumElements(); in getBoolVecToIntConversionCost()
678 unsigned VF = Src->getVectorNumElements(); in getCastInstrCost()
811 unsigned VF = ValTy->getVectorNumElements(); in getCmpSelInstrCost()
1078 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp34 for (unsigned i = 1, e = V->getType()->getVectorNumElements(); i != e; in cheapToScalarize()
232 SVI->getOperand(0)->getType()->getVectorNumElements(); in visitExtractElementInst()
301 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements()
343 unsigned NumLHSElts = LHS->getType()->getVectorNumElements(); in collectSingleShuffleElements()
379 unsigned NumInsElts = InsVecType->getVectorNumElements(); in replaceExtractElements()
380 unsigned NumExtElts = ExtVecType->getVectorNumElements(); in replaceExtractElements()
499 unsigned NumLHSElts = RHS->getType()->getVectorNumElements(); in collectShuffleElements()
510 EI->getOperand(0)->getType()->getVectorNumElements(); in collectShuffleElements()
584 EI->getOperand(0)->getType()->getVectorNumElements(); in visitInsertElementInst()
768 NewOps[0]->getType()->getVectorNumElements()); in buildNew()
[all …]
/external/llvm/lib/IR/
DAutoUpgrade.cpp428 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSLLDQIntrinsics()
462 unsigned NumElts = ResultTy->getVectorNumElements() * 8; in UpgradeX86PSRLDQIntrinsics()
518 Mask = getX86MaskVec(Builder, Mask, Op0->getType()->getVectorNumElements()); in EmitX86Select()
527 unsigned NumElts = Op0->getType()->getVectorNumElements(); in UpgradeX86PALIGNRIntrinsics()
576 unsigned NumElts = Data->getType()->getVectorNumElements(); in UpgradeMaskedStore()
596 unsigned NumElts = Passthru->getType()->getVectorNumElements(); in UpgradeMaskedLoad()
612 unsigned NumElts = Op0->getType()->getVectorNumElements(); in upgradeMaskedCompare()
885 unsigned NumElts = CI->getType()->getVectorNumElements(); in UpgradeIntrinsicCall()
901 unsigned EltNum = VecTy->getVectorNumElements(); in UpgradeIntrinsicCall()
944 unsigned NumElts = CI->getType()->getVectorNumElements(); in UpgradeIntrinsicCall()
[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()

1234567891011