Lines Matching defs:SrcTy
764 // Return the number of instructions needed to truncate SrcTy to DstTy.
766 getVectorTruncCost(Type *SrcTy, Type *DstTy) {
767 assert (SrcTy->isVectorTy() && DstTy->isVectorTy());
768 assert(SrcTy->getPrimitiveSizeInBits().getFixedValue() >
771 assert(cast<FixedVectorType>(SrcTy)->getNumElements() ==
777 unsigned NumParts = getNumVectorRegs(SrcTy);
787 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
788 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements();
798 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 &&
806 // (SrcTy), to the type of the select or extend instruction (DstTy).
808 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) {
809 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() &&
813 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits();
815 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
818 PackCost = getVectorTruncCost(SrcTy, DstTy);