Lines Matching refs:DestTy
3074 Type *DestTy, in isNoopCast() argument
3076 assert(castIsValid(Opcode, SrcTy, DestTy) && "method precondition"); in isNoopCast()
3095 DestTy->getScalarSizeInBits(); in isNoopCast()
3097 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() == in isNoopCast()
3553 bool CastInst::isBitCastable(Type *SrcTy, Type *DestTy) { in isBitCastable() argument
3554 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType()) in isBitCastable()
3557 if (SrcTy == DestTy) in isBitCastable()
3561 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) { in isBitCastable()
3565 DestTy = DestVecTy->getElementType(); in isBitCastable()
3570 if (PointerType *DestPtrTy = dyn_cast<PointerType>(DestTy)) { in isBitCastable()
3577 TypeSize DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isBitCastable()
3587 if (DestTy->isX86_MMXTy() || SrcTy->isX86_MMXTy()) in isBitCastable()
3593 bool CastInst::isBitOrNoopPointerCastable(Type *SrcTy, Type *DestTy, in isBitOrNoopPointerCastable() argument
3597 if (auto *IntTy = dyn_cast<IntegerType>(DestTy)) in isBitOrNoopPointerCastable()
3600 if (auto *PtrTy = dyn_cast<PointerType>(DestTy)) in isBitOrNoopPointerCastable()
3605 return isBitCastable(SrcTy, DestTy); in isBitOrNoopPointerCastable()
3616 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) { in getCastOpcode() argument
3619 assert(SrcTy->isFirstClassType() && DestTy->isFirstClassType() && in getCastOpcode()
3622 if (SrcTy == DestTy) in getCastOpcode()
3627 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) in getCastOpcode()
3632 DestTy = DestVecTy->getElementType(); in getCastOpcode()
3637 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in getCastOpcode()
3640 if (DestTy->isIntegerTy()) { // Casting to integral in getCastOpcode()
3666 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt in getCastOpcode()
3686 } else if (DestTy->isVectorTy()) { in getCastOpcode()
3690 } else if (DestTy->isPointerTy()) { in getCastOpcode()
3692 if (DestTy->getPointerAddressSpace() != SrcTy->getPointerAddressSpace()) in getCastOpcode()
3699 } else if (DestTy->isX86_MMXTy()) { in getCastOpcode()