Lines Matching refs:numElts

237       auto numElts = split.second;  in addLegalTypedData()  local
239 auto eltSize = (end - begin) / numElts; in addLegalTypedData()
241 for (size_t i = 0, e = numElts; i != e; ++i) { in addLegalTypedData()
386 auto numElts = split.second; in splitVectorEntry() local
387 Entries.insert(&Entries[index + 1], numElts - 1, StorageEntry()); in splitVectorEntry()
390 for (unsigned i = 0; i != numElts; ++i) { in splitVectorEntry()
639 llvm::Type *eltTy, unsigned numElts) { in isLegalVectorType() argument
640 assert(numElts > 1 && "illegal vector length"); in isLegalVectorType()
642 .isLegalVectorTypeForSwift(vectorSize, eltTy, numElts); in isLegalVectorType()
648 auto numElts = vectorTy->getNumElements(); in splitLegalVectorType() local
652 if (numElts >= 4 && isPowerOf2(numElts)) { in splitLegalVectorType()
653 if (isLegalVectorType(CGM, vectorSize / 2, eltTy, numElts / 2)) in splitLegalVectorType()
654 return {llvm::VectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
657 return {eltTy, numElts}; in splitLegalVectorType()
670 auto numElts = origVectorTy->getNumElements(); in legalizeVectorType() local
672 assert(numElts != 1); in legalizeVectorType()
676 unsigned logCandidateNumElts = llvm::findLastSet(numElts, llvm::ZB_Undefined); in legalizeVectorType()
678 assert(candidateNumElts <= numElts && candidateNumElts * 2 > numElts); in legalizeVectorType()
681 if (candidateNumElts == numElts) { in legalizeVectorType()
686 CharUnits eltSize = (origVectorSize / numElts); in legalizeVectorType()
694 assert(candidateNumElts <= numElts); in legalizeVectorType()
706 auto numVecs = numElts >> logCandidateNumElts; in legalizeVectorType()
708 numElts -= (numVecs << logCandidateNumElts); in legalizeVectorType()
710 if (numElts == 0) return; in legalizeVectorType()
715 if (numElts > 2 && !isPowerOf2(numElts) && in legalizeVectorType()
716 isLegalVectorType(CGM, eltSize * numElts, eltTy, numElts)) { in legalizeVectorType()
717 components.push_back(llvm::VectorType::get(eltTy, numElts)); in legalizeVectorType()
726 } while (candidateNumElts > numElts); in legalizeVectorType()
730 components.append(numElts, eltTy); in legalizeVectorType()