Home | History | Annotate | Download | only in IR

Lines Matching defs:DstTy

2065   Type* DstTy = getType();
2066 if (SrcTy == DstTy)
2071 return DstTy->isPointerTy();
2119 /// * %S = secondOpcode MidTy %F to DstTy
2121 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2125 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2182 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2186 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2206 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2212 if (DstTy->isFloatingPointTy())
2238 // ext, trunc -> bitcast, if the SrcTy and DstTy are same size
2239 // ext, trunc -> ext, if sizeof(SrcTy) < sizeof(DstTy)
2240 // ext, trunc -> trunc, if sizeof(SrcTy) > sizeof(DstTy)
2242 unsigned DstSize = DstTy->getScalarSizeInBits();
2254 if (SrcTy == DstTy)
2265 if (MidTy->isPointerTy() && DstTy->isPointerTy())
2274 unsigned DstSize = DstTy->getScalarSizeInBits();
2628 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2634 if (SrcTy == DstTy)
2637 if (!SrcTy->isFirstClassType() || !DstTy->isFirstClassType() ||
2638 SrcTy->isAggregateType() || DstTy->isAggregateType())
2643 unsigned DstBitSize = DstTy->getScalarSizeInBits();
2650 unsigned DstLength = DstTy->isVectorTy() ?
2651 cast<VectorType>(DstTy)->getNumElements() : 0;
2657 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2660 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2663 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2666 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2669 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2673 return SrcTy->isIntOrIntVectorTy() && DstTy->isFPOrFPVectorTy() &&
2677 return SrcTy->isFPOrFPVectorTy() && DstTy->isIntOrIntVectorTy() &&
2680 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2683 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2686 DstTy->getScalarType()->isIntegerTy();
2688 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2691 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2694 DstTy->getScalarType()->isPointerTy();
2698 if (SrcTy->isPointerTy() != DstTy->isPointerTy())
2704 return SrcTy->getPrimitiveSizeInBits() == DstTy->getPrimitiveSizeInBits();