Home | History | Annotate | Download | only in IR

Lines Matching refs:DstTy

2077   Type* DstTy = getType();
2078 if (SrcTy == DstTy)
2083 return DstTy->isPointerTy();
2152 /// * %S = secondOpcode MidTy %F to DstTy
2154 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2158 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2217 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2221 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2241 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2247 if (DstTy->isFloatingPointTy())
2264 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace())
2284 // ext, trunc -> bitcast, if the SrcTy and DstTy are same size
2285 // ext, trunc -> ext, if sizeof(SrcTy) < sizeof(DstTy)
2286 // ext, trunc -> trunc, if sizeof(SrcTy) > sizeof(DstTy)
2288 unsigned DstSize = DstTy->getScalarSizeInBits();
2301 if (SrcTy == DstTy)
2310 unsigned DstSize = DstTy->getScalarSizeInBits();
2318 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace())
2329 DstTy->isPtrOrPtrVectorTy() &&
2331 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() &&
2338 if (SrcTy->getPointerElementType() == DstTy->getPointerElementType())
2349 DstTy->isPtrOrPtrVectorTy() &&
2350 MidTy->getPointerAddressSpace() == DstTy->getPointerAddressSpace() &&
2361 DstTy->isIntOrIntVectorTy() &&
2778 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2784 if (SrcTy == DstTy)
2787 if (!SrcTy->isFirstClassType() || !DstTy->isFirstClassType() ||
2788 SrcTy->isAggregateType() || DstTy->isAggregateType())
2793 unsigned DstBitSize = DstTy->getScalarSizeInBits();
2800 unsigned DstLength = DstTy->isVectorTy() ?
2801 cast<VectorType>(DstTy)->getNumElements() : 0;
2807 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2810 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2813 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2816 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2819 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2823 return SrcTy->isIntOrIntVectorTy() && DstTy->isFPOrFPVectorTy() &&
2827 return SrcTy->isFPOrFPVectorTy() && DstTy->isIntOrIntVectorTy() &&
2830 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2833 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2836 DstTy->getScalarType()->isIntegerTy();
2838 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2841 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2844 DstTy->getScalarType()->isPointerTy();
2847 PointerType *DstPtrTy = dyn_cast<PointerType>(DstTy->getScalarType());
2857 return SrcTy->getPrimitiveSizeInBits() == DstTy->getPrimitiveSizeInBits();
2865 if (VectorType *DstVecTy = dyn_cast<VectorType>(DstTy))
2878 PointerType *DstPtrTy = dyn_cast<PointerType>(DstTy->getScalarType());
2886 if (VectorType *DstVecTy = dyn_cast<VectorType>(DstTy))