Lines Matching defs:SrcTy
657 // Return the number of instructions needed to truncate SrcTy to DstTy.
659 getVectorTruncCost(Type *SrcTy, Type *DstTy) {
660 assert (SrcTy->isVectorTy() && DstTy->isVectorTy());
661 assert(SrcTy->getPrimitiveSizeInBits().getFixedValue() >
664 assert(cast<FixedVectorType>(SrcTy)->getNumElements() ==
670 unsigned NumParts = getNumVectorRegs(SrcTy);
680 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
681 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements();
691 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 &&
699 // (SrcTy), to the type of the select or extend instruction (DstTy).
701 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) {
702 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() &&
706 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits();
708 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
711 PackCost = getVectorTruncCost(SrcTy, DstTy);