Lines Matching refs:SrcTy

239   Type *SrcTy = CI->getOperand(0)->getType();   // A from above  in isEliminableCastPair()  local
246 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair()
251 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
257 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || in isEliminableCastPair()
444 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local
450 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc()
773 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local
780 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt()
782 assert(BitsToClear < SrcTy->getScalarSizeInBits() && in visitZExt()
791 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear; in visitZExt()
1059 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitSExt() local
1074 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitSExt()
1082 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt()
1100 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExt()
1350 Type *SrcTy = SrcI->getType(); in FoldItoFPtoI() local
1363 int InputSize = (int)SrcTy->getScalarSizeInBits() - IsInputSigned; in FoldItoFPtoI()
1368 if (FITy->getScalarSizeInBits() > SrcTy->getScalarSizeInBits()) { in FoldItoFPtoI()
1373 if (FITy->getScalarSizeInBits() < SrcTy->getScalarSizeInBits()) in FoldItoFPtoI()
1375 if (SrcTy == FITy) in FoldItoFPtoI()
1487 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize() local
1489 if (SrcTy->getElementType() != DestTy->getElementType()) { in OptimizeVectorResize()
1494 if (SrcTy->getElementType()->getPrimitiveSizeInBits() != in OptimizeVectorResize()
1498 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize()
1499 InVal = IC.Builder->CreateBitCast(InVal, SrcTy); in OptimizeVectorResize()
1508 if (SrcTy->getNumElements() > DestTy->getNumElements()) { in OptimizeVectorResize()
1511 V2 = UndefValue::get(SrcTy); in OptimizeVectorResize()
1519 V2 = Constant::getNullValue(SrcTy); in OptimizeVectorResize()
1520 unsigned SrcElts = SrcTy->getNumElements(); in OptimizeVectorResize()
1749 Type *SrcTy = Src->getType(); in visitBitCast() local
1758 PointerType *SrcPTy = cast<PointerType>(SrcTy); in visitBitCast()
1791 if ((DestTy->isFloatTy() || DestTy->isDoubleTy()) && isa<IntegerType>(SrcTy)) in visitBitCast()
1796 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) { in visitBitCast()
1803 if (isa<IntegerType>(SrcTy)) { in visitBitCast()
1824 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) { in visitBitCast()
1868 if (SrcTy->isPointerTy()) in visitBitCast()
1878 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType()); in visitAddrSpaceCast() local
1882 if (SrcTy->getElementType() != DestElemTy) { in visitAddrSpaceCast()
1883 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace()); in visitAddrSpaceCast()