Lines Matching refs:DestTy

2920                           Type *DestTy,  in isNoopCast()  argument
2922 assert(castIsValid(Opcode, SrcTy, DestTy) && "method precondition"); in isNoopCast()
2941 DestTy->getScalarSizeInBits(); in isNoopCast()
2943 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() == in isNoopCast()
3405 bool CastInst::isBitCastable(Type *SrcTy, Type *DestTy) { in isBitCastable() argument
3406 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType()) in isBitCastable()
3409 if (SrcTy == DestTy) in isBitCastable()
3413 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) { in isBitCastable()
3417 DestTy = DestVecTy->getElementType(); in isBitCastable()
3422 if (PointerType *DestPtrTy = dyn_cast<PointerType>(DestTy)) { in isBitCastable()
3429 TypeSize DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in isBitCastable()
3439 if (DestTy->isX86_MMXTy() || SrcTy->isX86_MMXTy()) in isBitCastable()
3445 bool CastInst::isBitOrNoopPointerCastable(Type *SrcTy, Type *DestTy, in isBitOrNoopPointerCastable() argument
3449 if (auto *IntTy = dyn_cast<IntegerType>(DestTy)) in isBitOrNoopPointerCastable()
3452 if (auto *PtrTy = dyn_cast<PointerType>(DestTy)) in isBitOrNoopPointerCastable()
3457 return isBitCastable(SrcTy, DestTy); in isBitOrNoopPointerCastable()
3468 const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) { in getCastOpcode() argument
3471 assert(SrcTy->isFirstClassType() && DestTy->isFirstClassType() && in getCastOpcode()
3474 if (SrcTy == DestTy) in getCastOpcode()
3479 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) in getCastOpcode()
3484 DestTy = DestVecTy->getElementType(); in getCastOpcode()
3489 unsigned DestBits = DestTy->getPrimitiveSizeInBits(); // 0 for ptr in getCastOpcode()
3492 if (DestTy->isIntegerTy()) { // Casting to integral in getCastOpcode()
3518 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt in getCastOpcode()
3538 } else if (DestTy->isVectorTy()) { in getCastOpcode()
3542 } else if (DestTy->isPointerTy()) { in getCastOpcode()
3544 if (DestTy->getPointerAddressSpace() != SrcTy->getPointerAddressSpace()) in getCastOpcode()
3551 } else if (DestTy->isX86_MMXTy()) { in getCastOpcode()