Lines Matching refs:DestTy
2719 Type *DestTy, in isNoopCast() argument
2721 assert(castIsValid(Opcode, SrcTy, DestTy) && "method precondition"); in isNoopCast()
2740 DestTy->getScalarSizeInBits(); in isNoopCast()
2742 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() == in isNoopCast()
3085 bool CastInst::isBitCastable(Type *SrcTy, Type *DestTy) { in isBitCastable() argument
3086 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType()) in isBitCastable()
3089 if (SrcTy == DestTy) in isBitCastable()
3093 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) { in isBitCastable()
3097 DestTy = DestVecTy->getElementType(); in isBitCastable()
3102 if (PointerType *DestPtrTy = dyn_cast<PointerType>(DestTy)) { in isBitCastable()
3109 TypeSize DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isBitCastable()
3119 if (DestTy->isX86_MMXTy() || SrcTy->isX86_MMXTy()) in isBitCastable()
3125 bool CastInst::isBitOrNoopPointerCastable(Type *SrcTy, Type *DestTy, in isBitOrNoopPointerCastable() argument
3129 if (auto *IntTy = dyn_cast<IntegerType>(DestTy)) in isBitOrNoopPointerCastable()
3132 if (auto *PtrTy = dyn_cast<PointerType>(DestTy)) in isBitOrNoopPointerCastable()
3137 return isBitCastable(SrcTy, DestTy); in isBitOrNoopPointerCastable()
3148 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) { in getCastOpcode() argument
3151 assert(SrcTy->isFirstClassType() && DestTy->isFirstClassType() && in getCastOpcode()
3154 if (SrcTy == DestTy) in getCastOpcode()
3159 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) in getCastOpcode()
3164 DestTy = DestVecTy->getElementType(); in getCastOpcode()
3169 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in getCastOpcode()
3172 if (DestTy->isIntegerTy()) { // Casting to integral in getCastOpcode()
3198 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt in getCastOpcode()
3218 } else if (DestTy->isVectorTy()) { in getCastOpcode()
3222 } else if (DestTy->isPointerTy()) { in getCastOpcode()
3224 if (DestTy->getPointerAddressSpace() != SrcTy->getPointerAddressSpace()) in getCastOpcode()
3231 } else if (DestTy->isX86_MMXTy()) { in getCastOpcode()