Lines Matching refs:numElts
254 auto numElts = split.second; in addLegalTypedData() local
256 auto eltSize = (end - begin) / numElts; in addLegalTypedData()
258 for (size_t i = 0, e = numElts; i != e; ++i) { in addLegalTypedData()
406 auto numElts = split.second; in splitVectorEntry() local
407 Entries.insert(Entries.begin() + index + 1, numElts - 1, StorageEntry()); in splitVectorEntry()
410 for (unsigned i = 0; i != numElts; ++i) { in splitVectorEntry()
700 llvm::Type *eltTy, unsigned numElts) { in isLegalVectorType() argument
701 assert(numElts > 1 && "illegal vector length"); in isLegalVectorType()
703 .isLegalVectorTypeForSwift(vectorSize, eltTy, numElts); in isLegalVectorType()
709 auto numElts = cast<llvm::FixedVectorType>(vectorTy)->getNumElements(); in splitLegalVectorType() local
713 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType()
714 if (isLegalVectorType(CGM, vectorSize / 2, eltTy, numElts / 2)) in splitLegalVectorType()
715 return {llvm::FixedVectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
718 return {eltTy, numElts}; in splitLegalVectorType()
731 auto numElts = cast<llvm::FixedVectorType>(origVectorTy)->getNumElements(); in legalizeVectorType() local
733 assert(numElts != 1); in legalizeVectorType()
737 unsigned logCandidateNumElts = llvm::findLastSet(numElts, llvm::ZB_Undefined); in legalizeVectorType()
739 assert(candidateNumElts <= numElts && candidateNumElts * 2 > numElts); in legalizeVectorType()
742 if (candidateNumElts == numElts) { in legalizeVectorType()
747 CharUnits eltSize = (origVectorSize / numElts); in legalizeVectorType()
755 assert(candidateNumElts <= numElts); in legalizeVectorType()
767 auto numVecs = numElts >> logCandidateNumElts; in legalizeVectorType()
770 numElts -= (numVecs << logCandidateNumElts); in legalizeVectorType()
772 if (numElts == 0) return; in legalizeVectorType()
777 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
778 isLegalVectorType(CGM, eltSize * numElts, eltTy, numElts)) { in legalizeVectorType()
779 components.push_back(llvm::FixedVectorType::get(eltTy, numElts)); in legalizeVectorType()
788 } while (candidateNumElts > numElts); in legalizeVectorType()
792 components.append(numElts, eltTy); in legalizeVectorType()