Lines Matching refs:numElts

253       auto numElts = split.second;  in addLegalTypedData()  local
255 auto eltSize = (end - begin) / numElts; in addLegalTypedData()
257 for (size_t i = 0, e = numElts; i != e; ++i) { in addLegalTypedData()
405 auto numElts = split.second; in splitVectorEntry() local
406 Entries.insert(Entries.begin() + index + 1, numElts - 1, StorageEntry()); in splitVectorEntry()
409 for (unsigned i = 0; i != numElts; ++i) { in splitVectorEntry()
699 llvm::Type *eltTy, unsigned numElts) { in isLegalVectorType() argument
700 assert(numElts > 1 && "illegal vector length"); in isLegalVectorType()
702 .isLegalVectorTypeForSwift(vectorSize, eltTy, numElts); in isLegalVectorType()
708 auto numElts = cast<llvm::FixedVectorType>(vectorTy)->getNumElements(); in splitLegalVectorType() local
712 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType()
713 if (isLegalVectorType(CGM, vectorSize / 2, eltTy, numElts / 2)) in splitLegalVectorType()
714 return {llvm::FixedVectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
717 return {eltTy, numElts}; in splitLegalVectorType()
730 auto numElts = cast<llvm::FixedVectorType>(origVectorTy)->getNumElements(); in legalizeVectorType() local
732 assert(numElts != 1); in legalizeVectorType()
736 unsigned logCandidateNumElts = llvm::findLastSet(numElts, llvm::ZB_Undefined); in legalizeVectorType()
738 assert(candidateNumElts <= numElts && candidateNumElts * 2 > numElts); in legalizeVectorType()
741 if (candidateNumElts == numElts) { in legalizeVectorType()
746 CharUnits eltSize = (origVectorSize / numElts); in legalizeVectorType()
754 assert(candidateNumElts <= numElts); in legalizeVectorType()
766 auto numVecs = numElts >> logCandidateNumElts; in legalizeVectorType()
769 numElts -= (numVecs << logCandidateNumElts); in legalizeVectorType()
771 if (numElts == 0) return; in legalizeVectorType()
776 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
777 isLegalVectorType(CGM, eltSize * numElts, eltTy, numElts)) { in legalizeVectorType()
778 components.push_back(llvm::FixedVectorType::get(eltTy, numElts)); in legalizeVectorType()
787 } while (candidateNumElts > numElts); in legalizeVectorType()
791 components.append(numElts, eltTy); in legalizeVectorType()