Lines Matching defs:NumElements
2040 uint64_t NumElements = EndIndex - BeginIndex;
2041 Type *SliceTy = (NumElements == 1)
2043 : FixedVectorType::get(Ty->getElementType(), NumElements);
2046 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8);
2531 unsigned NumElements = EndIndex - BeginIndex;
2532 assert(NumElements <= VecTy->getNumElements() && "Too many elements!");
2534 if (NumElements == VecTy->getNumElements())
2537 if (NumElements == 1) {
2977 unsigned NumElements = EndIndex - BeginIndex;
2978 assert(NumElements <= cast<FixedVectorType>(VecTy)->getNumElements() &&
2980 Type *SliceTy = (NumElements == 1)
2982 : FixedVectorType::get(ElementTy, NumElements);
3131 Value *getVectorSplat(Value *V, unsigned NumElements) {
3132 V = IRB.CreateVectorSplat(NumElements, V, "vsplat");
3216 unsigned NumElements = EndIndex - BeginIndex;
3217 assert(NumElements <= cast<FixedVectorType>(VecTy)->getNumElements() &&
3223 if (NumElements > 1)
3224 Splat = getVectorSplat(Splat, NumElements);
3422 unsigned NumElements = EndIndex - BeginIndex;
3430 if (NumElements == 1)
3433 OtherTy = FixedVectorType::get(VecTy->getElementType(), NumElements);
4212 uint64_t NumElements = Size / ElementSize;
4213 if (NumElements * ElementSize != Size)
4215 return ArrayType::get(ElementTy, NumElements);