Lines Matching refs:numElts
255 auto numElts = split.second; in addLegalTypedData() local
257 auto eltSize = (end - begin) / numElts; in addLegalTypedData()
259 for (size_t i = 0, e = numElts; i != e; ++i) { in addLegalTypedData()
407 auto numElts = split.second; in splitVectorEntry() local
408 Entries.insert(Entries.begin() + index + 1, numElts - 1, StorageEntry()); in splitVectorEntry()
411 for (unsigned i = 0; i != numElts; ++i) { in splitVectorEntry()
696 llvm::Type *eltTy, unsigned numElts) { in isLegalVectorType() argument
697 assert(numElts > 1 && "illegal vector length"); in isLegalVectorType()
698 return getSwiftABIInfo(CGM).isLegalVectorType(vectorSize, eltTy, numElts); in isLegalVectorType()
704 auto numElts = cast<llvm::FixedVectorType>(vectorTy)->getNumElements(); in splitLegalVectorType() local
708 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType()
709 if (isLegalVectorType(CGM, vectorSize / 2, eltTy, numElts / 2)) in splitLegalVectorType()
710 return {llvm::FixedVectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
713 return {eltTy, numElts}; in splitLegalVectorType()
726 auto numElts = cast<llvm::FixedVectorType>(origVectorTy)->getNumElements(); in legalizeVectorType() local
728 assert(numElts != 1); in legalizeVectorType()
732 unsigned logCandidateNumElts = llvm::Log2_32(numElts); in legalizeVectorType()
734 assert(candidateNumElts <= numElts && candidateNumElts * 2 > numElts); in legalizeVectorType()
737 if (candidateNumElts == numElts) { in legalizeVectorType()
742 CharUnits eltSize = (origVectorSize / numElts); in legalizeVectorType()
750 assert(candidateNumElts <= numElts); in legalizeVectorType()
762 auto numVecs = numElts >> logCandidateNumElts; in legalizeVectorType()
765 numElts -= (numVecs << logCandidateNumElts); in legalizeVectorType()
767 if (numElts == 0) return; in legalizeVectorType()
772 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
773 isLegalVectorType(CGM, eltSize * numElts, eltTy, numElts)) { in legalizeVectorType()
774 components.push_back(llvm::FixedVectorType::get(eltTy, numElts)); in legalizeVectorType()
783 } while (candidateNumElts > numElts); in legalizeVectorType()
787 components.append(numElts, eltTy); in legalizeVectorType()