Lines Matching defs:DestTy

2755                           Type *DestTy,
2757 assert(castIsValid(Opcode, SrcTy, DestTy) && "method precondition");
2776 DestTy->getScalarSizeInBits();
2778 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() ==
2879 // No-op cast in second op implies firstOp as long as the DestTy
2886 // No-op cast in second op implies firstOp as long as the DestTy
3121 bool CastInst::isBitCastable(Type *SrcTy, Type *DestTy) {
3122 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType())
3125 if (SrcTy == DestTy)
3129 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) {
3133 DestTy = DestVecTy->getElementType();
3138 if (PointerType *DestPtrTy = dyn_cast<PointerType>(DestTy)) {
3145 TypeSize DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr
3158 bool CastInst::isBitOrNoopPointerCastable(Type *SrcTy, Type *DestTy,
3162 if (auto *IntTy = dyn_cast<IntegerType>(DestTy))
3165 if (auto *PtrTy = dyn_cast<PointerType>(DestTy))
3170 return isBitCastable(SrcTy, DestTy);
3181 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) {
3184 assert(SrcTy->isFirstClassType() && DestTy->isFirstClassType() &&
3187 if (SrcTy == DestTy)
3192 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
3197 DestTy = DestVecTy->getElementType();
3202 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr
3205 if (DestTy->isIntegerTy()) { // Casting to integral
3231 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt
3251 } else if (DestTy->isVectorTy()) {
3255 } else if (DestTy->isPointerTy()) {
3257 if (DestTy->getPointerAddressSpace() != SrcTy->getPointerAddressSpace())