/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUTargetTransformInfo.cpp | 538 unsigned NElts = LT.second.isVector() ? in getArithmeticInstrCost() local 548 return get64BitInstrCost(CostKind) * LT.first * NElts; in getArithmeticInstrCost() 551 NElts = (NElts + 1) / 2; in getArithmeticInstrCost() 554 return getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost() 562 return 2 * getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost() 566 NElts = (NElts + 1) / 2; in getArithmeticInstrCost() 568 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost() 573 return (4 * QuarterRateCost + (2 * 2) * FullRateCost) * LT.first * NElts; in getArithmeticInstrCost() 577 NElts = (NElts + 1) / 2; in getArithmeticInstrCost() 580 return QuarterRateCost * NElts * LT.first; in getArithmeticInstrCost() [all …]
|
H A D | R600ISelLowering.cpp | 1789 unsigned NElts = VT.getVectorNumElements(); in PerformDAGCombine() local 1790 Ops.append(NElts, DAG.getUNDEF(InVal.getValueType())); in PerformDAGCombine()
|
H A D | AMDGPUISelLowering.cpp | 3676 unsigned NElts = VT.getVectorNumElements(); in LowerSIGN_EXTEND_INREG() local 3678 DAG.ExtractVectorElements(Src, Args, 0, NElts); in LowerSIGN_EXTEND_INREG() 3681 for (unsigned I = 0; I < NElts; ++I) in LowerSIGN_EXTEND_INREG() 5066 unsigned NElts = DestVT.getVectorNumElements(); in PerformDAGCombine() local 5068 if (SrcVT.getVectorNumElements() == NElts) { in PerformDAGCombine()
|
H A D | SIInstrInfo.cpp | 3321 int NElts = DstSize / 32; in insertSelect() local 3326 if (NElts % 2) { in insertSelect() 3333 NElts /= 2; in insertSelect() 3343 for (int Idx = 0; Idx != NElts; ++Idx) { in insertSelect()
|
H A D | AMDGPULegalizerInfo.cpp | 57 unsigned NElts = Ty.getNumElements(); in getPow2VectorType() local 58 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 456 unsigned NElts = getVectorMinNumElements(); in isPow2VectorType() local 457 return !(NElts & (NElts - 1)); in isPow2VectorType() 464 ElementCount NElts = getVectorElementCount(); in getPow2VectorType() local 465 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType() 466 NElts = ElementCount::get(NewMinCount, NElts.isScalable()); in getPow2VectorType() 467 return EVT::getVectorVT(Context, getVectorElementType(), NElts); in getPow2VectorType()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/ |
H A D | MachineValueType.h | 233 unsigned NElts = getVectorMinNumElements(); in isPow2VectorType() local 234 return !(NElts & (NElts - 1)); in isPow2VectorType() 243 ElementCount NElts = getVectorElementCount(); in getPow2VectorType() local 244 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType() 245 NElts = ElementCount::get(NewMinCount, NElts.isScalable()); in getPow2VectorType() 246 return MVT::getVectorVT(getVectorElementType(), NElts); in getPow2VectorType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86ShuffleDecode.cpp | 60 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVHLPSMask() argument 61 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask() 62 ShuffleMask.push_back(NElts + i); in DecodeMOVHLPSMask() 64 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask() 69 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVLHPSMask() argument 70 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask() 73 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask() 74 ShuffleMask.push_back(NElts + i); in DecodeMOVLHPSMask()
|
H A D | X86ShuffleDecode.h | 40 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask); 44 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCVSXSwapRemoval.cpp | 850 unsigned NElts; in handleSpecialSwappables() local 858 case PPC::VSPLTB: NElts = 16; break; in handleSpecialSwappables() 859 case PPC::VSPLTH: NElts = 8; break; in handleSpecialSwappables() 861 case PPC::XXSPLTW: NElts = 4; break; in handleSpecialSwappables() 870 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | STLExtras.h | 1610 auto NElts = End - Start; 1611 if (NElts <= 1) return; 1615 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start)); 1626 auto NElts = End - Start; 1627 if (NElts <= 1) return; 1631 qsort(&*Start, NElts, sizeof(*Start),
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 7167 unsigned NElts = VTy->getNumElements(); in visitVector() local 7171 if ((NElts * EltSize) % Info.Ctx.getCharWidth() != 0) { in visitVector() 7178 << Ty.getCanonicalType() << EltSize << NElts in visitVector() 7205 llvm::APInt Res = llvm::APInt::getZero(NElts); in visitVector() 7206 for (unsigned I = 0; I < NElts; ++I) { in visitVector() 7211 Res.insertBits(EltAsInt, BigEndian ? (NElts - I - 1) : I); in visitVector() 7214 SmallVector<uint8_t, 8> Bytes(NElts / 8); in visitVector() 7215 llvm::StoreIntToMemory(Res, &*Bytes.begin(), NElts / 8); in visitVector() 7221 for (unsigned I = 0; I < NElts; ++I) { in visitVector() 7438 unsigned NElts = VTy->getNumElements(); in visit() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 2098 int NElts = Mask.size(); in getVectorShuffle() local 2100 [&](int M) { return M < (NElts * 2) && M >= -1; }) && in getVectorShuffle() 2109 for (int i = 0; i != NElts; ++i) in getVectorShuffle() 2110 if (MaskVec[i] >= NElts) MaskVec[i] -= NElts; in getVectorShuffle() 2126 for (int i = 0; i < NElts; ++i) { in getVectorShuffle() 2127 if (MaskVec[i] < Offset || MaskVec[i] >= (Offset + NElts)) in getVectorShuffle() 2144 BlendSplat(N2BV, NElts); in getVectorShuffle() 2151 for (int i = 0; i != NElts; ++i) { in getVectorShuffle() 2152 if (MaskVec[i] >= NElts) { in getVectorShuffle() 2177 for (int i = 0; i != NElts; ++i) { in getVectorShuffle() [all …]
|
H A D | TargetLowering.cpp | 10113 unsigned NElts = VecVT.getVectorMinNumElements(); in clampDynamicVectorIndex() local 10122 if (IdxCst->getZExtValue() + (NumSubElts - 1) < NElts) in clampDynamicVectorIndex() 10125 DAG.getVScale(dl, IdxVT, APInt(IdxVT.getFixedSizeInBits(), NElts)); in clampDynamicVectorIndex() 10126 unsigned SubOpcode = NumSubElts <= NElts ? ISD::SUB : ISD::USUBSAT; in clampDynamicVectorIndex() 10131 if (isPowerOf2_32(NElts) && NumSubElts == 1) { in clampDynamicVectorIndex() 10132 APInt Imm = APInt::getLowBitsSet(IdxVT.getSizeInBits(), Log2_32(NElts)); in clampDynamicVectorIndex() 10136 unsigned MaxIndex = NumSubElts < NElts ? NElts - NumSubElts : 0; in clampDynamicVectorIndex()
|
H A D | LegalizeIntegerTypes.cpp | 5743 unsigned NElts = NInVT.getVectorMinNumElements(); in PromoteIntRes_EXTRACT_SUBVECTOR() local 5747 DAG.getConstant(alignDown(IdxVal, NElts), dl, in PromoteIntRes_EXTRACT_SUBVECTOR() 5751 DAG.getConstant(IdxVal % NElts, dl, BaseIdx.getValueType())); in PromoteIntRes_EXTRACT_SUBVECTOR()
|
H A D | LegalizeDAG.cpp | 5737 for (unsigned I = 1, NElts = OVT.getVectorNumElements(); I != NElts; ++I) in PromoteNode() local
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 2570 unsigned NElts = Mask.size(); in getShuffleVector() local 2574 Type *ShufTy = VectorType::get(EltTy, NElts, TypeIsScalable); in getShuffleVector()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerHelper.cpp | 4144 unsigned NElts = VecTy.getNumElements(); in clampVectorIndex() local 4153 if (isPowerOf2_32(NElts)) { in clampVectorIndex() 4154 APInt Imm = APInt::getLowBitsSet(IdxTy.getSizeInBits(), Log2_32(NElts)); in clampVectorIndex() 4158 return B.buildUMin(IdxTy, IdxReg, B.buildConstant(IdxTy, NElts - 1)) in clampVectorIndex()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 7518 unsigned NElts; in canReuseExtract() local 7520 NElts = canMapToVector(Vec->getType()); in canReuseExtract() 7521 if (!NElts) in canReuseExtract() 7528 NElts = cast<FixedVectorType>(Vec->getType())->getNumElements(); in canReuseExtract() 7532 if (!ResizeAllowed && NElts != E) in canReuseExtract() 7535 unsigned MinIdx = NElts, MaxIdx = 0; in canReuseExtract() 7549 if (ExtIdx >= NElts) in canReuseExtract()
|