Lines Matching defs:DstTy
657 // Return the number of instructions needed to truncate SrcTy to DstTy.
659 getVectorTruncCost(Type *SrcTy, Type *DstTy) {
660 assert (SrcTy->isVectorTy() && DstTy->isVectorTy());
662 DstTy->getPrimitiveSizeInBits().getFixedValue() &&
665 cast<FixedVectorType>(DstTy)->getNumElements() &&
680 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
692 DstTy->getScalarSizeInBits() == 8)
699 // (SrcTy), to the type of the select or extend instruction (DstTy).
701 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) {
702 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() &&
707 unsigned DstScalarBits = DstTy->getScalarSizeInBits();
708 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy);
711 PackCost = getVectorTruncCost(SrcTy, DstTy);
713 unsigned DstNumParts = getNumVectorRegs(DstTy);