Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:SrcTy

241   Type *SrcTy = CI->getOperand(0)->getType();   // A from above
247 Type *SrcIntPtrTy = TD && SrcTy->isPtrOrPtrVectorTy() ?
248 TD->getIntPtrType(SrcTy) : 0;
253 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
259 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) ||
446 Type *DestTy = CI.getType(), *SrcTy = Src->getType();
452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
763 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
770 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
772 assert(BitsToClear < SrcTy->getScalarSizeInBits() &&
781 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear;
1064 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
1070 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
1078 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits();
1096 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits();
1196 Type *SrcTy = OpI->getType();
1199 if (LHSTrunc->getType() != SrcTy &&
1200 RHSTrunc->getType() != SrcTy) {
1421 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1423 if (SrcTy->getElementType() != DestTy->getElementType()) {
1428 if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
1432 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
1433 InVal = IC.Builder->CreateBitCast(InVal, SrcTy);
1442 if (SrcTy->getNumElements() > DestTy->getNumElements()) {
1445 V2 = UndefValue::get(SrcTy);
1453 V2 = Constant::getNullValue(SrcTy);
1454 unsigned SrcElts = SrcTy->getNumElements();
1666 Type *SrcTy = Src->getType();
1675 PointerType *SrcPTy = cast<PointerType>(SrcTy);
1713 if ((DestTy->isFloatTy() || DestTy->isDoubleTy()) && isa<IntegerType>(SrcTy))
1718 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) {
1725 if (isa<IntegerType>(SrcTy)) {
1746 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) {
1791 if (SrcTy->isPointerTy())