Lines Matching defs:DstTy

2049   Type* DstTy = getType();
2050 if (SrcTy == DstTy)
2055 return DstTy->isPointerTy();
2103 /// * %S = secondOpcode MidTy %F to DstTy
2105 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2109 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2165 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2169 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2189 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2195 if (DstTy->isFloatingPointTy())
2221 // ext, trunc -> bitcast, if the SrcTy and DstTy are same size
2222 // ext, trunc -> ext, if sizeof(SrcTy) < sizeof(DstTy)
2223 // ext, trunc -> trunc, if sizeof(SrcTy) > sizeof(DstTy)
2225 unsigned DstSize = DstTy->getScalarSizeInBits();
2237 if (SrcTy == DstTy)
2248 if (MidTy->isPointerTy() && DstTy->isPointerTy())
2257 unsigned DstSize = DstTy->getScalarSizeInBits();
2611 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2615 if (!SrcTy->isFirstClassType() || !DstTy->isFirstClassType() ||
2616 SrcTy->isAggregateType() || DstTy->isAggregateType())
2621 unsigned DstBitSize = DstTy->getScalarSizeInBits();
2628 unsigned DstLength = DstTy->isVectorTy() ?
2629 cast<VectorType>(DstTy)->getNumElements() : 0;
2635 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2638 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2641 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2644 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2647 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2651 return SrcTy->isIntOrIntVectorTy() && DstTy->isFPOrFPVectorTy() &&
2655 return SrcTy->isFPOrFPVectorTy() && DstTy->isIntOrIntVectorTy() &&
2658 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2661 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2664 DstTy->getScalarType()->isIntegerTy();
2666 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2669 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2672 DstTy->getScalarType()->isPointerTy();
2676 if (SrcTy->isPointerTy() != DstTy->isPointerTy())
2682 return SrcTy->getPrimitiveSizeInBits() == DstTy->getPrimitiveSizeInBits();