/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 50 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/ |
D | X86ShuffleDecodeConstantPool.cpp | 45 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()
|
D | X86TargetTransformInfo.cpp | 1054 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost() 1075 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead() 1089 unsigned NumElem = VTy->getVectorNumElements(); in getMemoryOpCost() 1136 unsigned NumElem = SrcVTy->getVectorNumElements(); in getMaskedMemoryOpCost() 1162 LT.second.getVectorNumElements() == NumElem) in getMaskedMemoryOpCost() 1167 else if (LT.second.getVectorNumElements() > NumElem) { in getMaskedMemoryOpCost() 1169 LT.second.getVectorNumElements()); in getMaskedMemoryOpCost() 1439 unsigned VF = SrcVTy->getVectorNumElements(); in getGSVectorCost() 1506 unsigned VF = SrcVTy->getVectorNumElements(); in getGSScalarCost() 1544 unsigned VF = SrcVTy->getVectorNumElements(); in getGatherScatterOpCost() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorTypes.cpp | 575 unsigned LoNumElts = LoVT.getVectorNumElements(); in SplitVecRes_BUILD_VECTOR() 616 DAG.getIntPtrConstant(IdxVal + LoVT.getVectorNumElements())); in SplitVecRes_EXTRACT_SUBVECTOR() 652 unsigned LoNumElts = Lo.getValueType().getVectorNumElements(); in SplitVecRes_INSERT_VECTOR_ELT() 754 LoVT.getVectorNumElements()); in SplitVecRes_SETCC() 758 DAG.getIntPtrConstant(InNVT.getVectorNumElements())); in SplitVecRes_SETCC() 763 DAG.getIntPtrConstant(InNVT.getVectorNumElements())); in SplitVecRes_SETCC() 782 LoVT.getVectorNumElements()); in SplitVecRes_UnaryOp() 786 DAG.getIntPtrConstant(InNVT.getVectorNumElements())); in SplitVecRes_UnaryOp() 793 LoVT.getVectorNumElements()); in SplitVecRes_UnaryOp() 797 DAG.getIntPtrConstant(InNVT.getVectorNumElements())); in SplitVecRes_UnaryOp() [all …]
|
D | LegalizeTypesGeneric.cpp | 81 assert(!(InVT.getVectorNumElements() & 1) && "Unsupported BITCAST"); in ExpandRes_BITCAST() 84 InVT.getVectorNumElements()/2); in ExpandRes_BITCAST() 88 DAG.getIntPtrConstant(InNVT.getVectorNumElements())); in ExpandRes_BITCAST() 172 unsigned OldElts = OldVec.getValueType().getVectorNumElements(); in ExpandRes_EXTRACT_VECTOR_ELT() 301 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR() 341 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT() 378 unsigned NumElts = VT.getVectorNumElements(); in ExpandOp_SCALAR_TO_VECTOR() 452 unsigned NumElements = Cond.getValueType().getVectorNumElements(); in SplitRes_SELECT()
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 86 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()
|
D | BasicTTIImpl.h | 51 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 …]
|
D | MachineValueType.h | 292 unsigned NElts = getVectorNumElements(); in isPow2VectorType() 302 unsigned NElts = getVectorNumElements(); in getPow2VectorType() 371 unsigned getVectorNumElements() const { in getVectorNumElements() function
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorTypes.cpp | 490 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 …]
|
D | LegalizeVectorOps.cpp | 499 unsigned NumElem = SrcVT.getVectorNumElements(); in ExpandLoad() 504 if (SrcVT.getVectorNumElements() > 1 && !SrcEltVT.isByteSized()) { in ExpandLoad() 660 StVT.getVectorNumElements()); in ExpandStore() 723 unsigned NumElem = VT.getVectorNumElements(); in ExpandSELECT() 792 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG() 795 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG() 839 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG() 842 int NumSrcElements = SrcVT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG() 865 for (int I = 0, E = VT.getVectorNumElements(); I != E; ++I) in createBSWAPShuffleMask() 1044 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC()
|
D | SelectionDAG.cpp | 491 for (unsigned i = 0, e = N->getValueType(0).getVectorNumElements(); in AddNodeIDCustom() 695 assert(N->getNumOperands() == N->getValueType(0).getVectorNumElements() && in VerifySDNode() 1046 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getAnyExtendVectorInReg() 1057 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getSignExtendVectorInReg() 1068 assert(VT.getVectorNumElements() < Op.getValueType().getVectorNumElements() && in getZeroExtendVectorInReg() 1150 for (unsigned i = 0; i < ViaVecNumElts / VT.getVectorNumElements(); ++i) { in getConstant() 1169 for (unsigned i = 0; i < VT.getVectorNumElements(); ++i) in getConstant() 1477 assert(VT.getVectorNumElements() == Mask.size() && in getVectorShuffle() 1589 V.getValueType().getVectorNumElements() == VT.getVectorNumElements(); in getVectorShuffle() 2862 Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT)); in FoldCONCAT_VECTORS() [all …]
|
D | LegalizeTypesGeneric.cpp | 93 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()
|
D | LegalizeTypes.cpp | 875 2*Lo.getValueType().getVectorNumElements() == in SetSplitVector() 876 Op.getValueType().getVectorNumElements() && in SetSplitVector() 918 unsigned NumElts = Op.getValueType().getVectorNumElements(); in BitConvertVectorToIntegerVector() 1134 assert(ValVT.getVectorNumElements() > BoolVT.getVectorNumElements() && in WidenTargetBoolean() 1138 ValVT.getVectorNumElements()); in WidenTargetBoolean()
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | ValueTypes.h | 165 unsigned NElts = getVectorNumElements(); in isPow2VectorType() 175 unsigned NElts = getVectorNumElements(); in getPow2VectorType() 214 unsigned getVectorNumElements() const { in getVectorNumElements() function 450 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements()); in changeVectorElementTypeToInteger() 584 unsigned getVectorNumElements() const { in getVectorNumElements() function 587 return V.getVectorNumElements(); in getVectorNumElements() 639 unsigned NElts = getVectorNumElements(); in isPow2VectorType() 647 unsigned NElts = getVectorNumElements(); in getPow2VectorType()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 34 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 …]
|
D | InstCombineCalls.cpp | 459 for (unsigned I = 0, E = ArgTy->getVectorNumElements(); I != E; ++I) { in simplifyX86movmsk() 1047 for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E; in maskIsAllOneOrUndef() 1520 II->getType()->getVectorNumElements()); in visitCallInst() 1541 II->getArgOperand(0)->getType()->getVectorNumElements()); in visitCallInst() 1614 unsigned VWidth = Arg->getType()->getVectorNumElements(); in visitCallInst() 1663 unsigned VWidth = Arg0->getType()->getVectorNumElements(); in visitCallInst() 1694 unsigned VWidth = Arg1->getType()->getVectorNumElements(); in visitCallInst() 1709 unsigned VWidth = Arg0->getType()->getVectorNumElements(); in visitCallInst() 1770 unsigned VWidth = Arg1->getType()->getVectorNumElements(); in visitCallInst() 1801 unsigned VWidth0 = Op0->getType()->getVectorNumElements(); in visitCallInst() [all …]
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 428 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 …]
|
D | ConstantFold.cpp | 53 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector() 568 DestTy->getVectorNumElements() == V->getType()->getVectorNumElements()) { in ConstantFoldCastInstruction() 573 for (unsigned i = 0, e = V->getType()->getVectorNumElements(); i != e; ++i) { in ConstantFoldCastInstruction() 735 for (unsigned i = 0, e = V1->getType()->getVectorNumElements(); i != e;++i){ in ConstantFoldSelectInstruction() 754 if (Result.size() == V1->getType()->getVectorNumElements()) in ConstantFoldSelectInstruction() 792 if (CIdx->uge(Val->getType()->getVectorNumElements())) in ConstantFoldExtractElementInstruction() 808 unsigned NumElts = Val->getType()->getVectorNumElements(); in ConstantFoldInsertElementInstruction() 832 unsigned MaskNumElts = Mask->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction() 842 unsigned SrcNumElts = V1->getType()->getVectorNumElements(); in ConstantFoldShuffleVectorInstruction() 895 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction() [all …]
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 147 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/ |
D | AArch64TargetTransformInfo.cpp | 362 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCost() 483 Src->getVectorNumElements() < 8) { in getMemoryOpCost() 486 unsigned NumVecElts = Src->getVectorNumElements(); in getMemoryOpCost() 504 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() 522 if (I->getScalarSizeInBits() * I->getVectorNumElements() == 128) in getCostOfKeepingLiveOverCall()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 168 unsigned NumElts = VT.getVectorNumElements(); in DecodeUNPCKLPMask() 225 unsigned HalfSize = VT.getVectorNumElements()/2; in DecodeVPERM2F128Mask()
|
/external/llvm/test/Transforms/InstCombine/ |
D | vector-type.ll | 2 ; Type::getVectorNumElements without checking first if the type was a vector.
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ValueTypes.cpp | 25 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger() 99 return "v" + utostr(getVectorNumElements()) + in getEVTString()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 89 VT.getVectorNumElements()/Factor); in Extract128BitVector() 854 if (!isPowerOf2_32(VT.getVectorNumElements())) in X86TargetLowering() 3197 int i, e = VT.getVectorNumElements(); in isPALIGNRMask() 3233 int NumElems = VT.getVectorNumElements(); in isVSHUFPSYMask() 3291 int NumElems = VT.getVectorNumElements(); in getShuffleVSHUFPSYImmediate() 3317 int NumElems = VT.getVectorNumElements(); in isVSHUFPDYMask() 3357 int NumElems = VT.getVectorNumElements(); in getShuffleVSHUFPDYImmediate() 3378 int NumElems = VT.getVectorNumElements(); in isSHUFPMask() 3408 int NumElems = VT.getVectorNumElements(); in isCommutedSHUFPMask() 3433 unsigned NumElems = VT.getVectorNumElements(); in isMOVHLPSMask() [all …]
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVToOCL20.cpp | 276 … getImageSize->getType()->getVectorNumElements()), in visitCallSPRIVImageQuerySize() 284 const unsigned imgQuerySizeRetEls = CI->getType()->getVectorNumElements(); in visitCallSPRIVImageQuerySize() 326 CI->getType()->getVectorNumElements() - 1), in visitCallSPRIVImageQuerySize()
|