Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:numElts

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