Lines Matching defs:SrcTy
128 Type *SrcTy = CI1->getSrcTy();
135 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr;
140 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
146 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) ||
216 auto *SrcTy = dyn_cast<FixedVectorType>(X->getType());
218 if (SrcTy && DestTy &&
219 SrcTy->getNumElements() == DestTy->getNumElements() &&
220 SrcTy->getPrimitiveSizeInBits() == DestTy->getPrimitiveSizeInBits()) {
545 Type *SrcTy = Trunc.getSrcTy();
547 unsigned SrcWidth = SrcTy->getScalarSizeInBits();
550 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
682 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType();
684 unsigned SrcWidth = SrcTy->getScalarSizeInBits();
690 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) &&
711 if (shouldChangeType(SrcTy, NewDestTy) &&
738 Value *Zero = Constant::getNullValue(SrcTy);
746 Constant *Log2C1 = ConstantInt::get(SrcTy, C1->exactLogBase2());
754 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
762 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
796 Constant *MaxAmt = ConstantInt::get(SrcTy, Width - 1, false);
832 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) {
1150 Type *SrcTy = Src->getType(), *DestTy = Zext.getType();
1153 if (SrcTy->isIntOrIntVectorTy(1) && Zext.hasNonNeg())
1158 if (shouldChangeType(SrcTy, DestTy) &&
1160 assert(BitsToClear <= SrcTy->getScalarSizeInBits() &&
1161 "Can't clear more bits than in SrcTy");
1176 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits() - BitsToClear;
1278 SrcTy->getScalarSizeInBits() >
1438 Type *SrcTy = Src->getType(), *DestTy = Sext.getType();
1439 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
1450 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) {
1524 ConstantInt::get(DestTy, SrcTy->getScalarSizeInBits()), WideCurrShAmt);
1668 Type *SrcTy = Src->getType();
1671 int SrcSize = (int)SrcTy->getScalarSizeInBits() - IsSigned;
1701 int SigBits = (int)SrcTy->getScalarSizeInBits() -
2033 Type *SrcTy = SrcOp->getType();
2040 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS));
2117 VectorType *SrcTy = cast<VectorType>(InVal->getType());
2119 if (SrcTy->getElementType() != DestTy->getElementType()) {
2124 if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
2128 SrcTy =
2130 cast<FixedVectorType>(SrcTy)->getNumElements());
2131 InVal = IC.Builder.CreateBitCast(InVal, SrcTy);
2135 unsigned SrcElts = cast<FixedVectorType>(SrcTy)->getNumElements();
2152 V2 = PoisonValue::get(SrcTy);
2165 V2 = Constant::getNullValue(SrcTy);
2508 Type *SrcTy = Src->getType(); // Type B
2561 if (TyA != DestTy || TyB != SrcTy)
2577 if (TyA != DestTy || TyB != SrcTy)
2643 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy));
2651 assert(TyA == DestTy && TyB == SrcTy);
2673 Type *SrcTy = Src->getType();
2683 if (DestVTy->getNumElements() == 1 && SrcTy->isX86_MMXTy()) {
2689 if (isa<IntegerType>(SrcTy)) {
2710 if (FixedVectorType *SrcVTy = dyn_cast<FixedVectorType>(SrcTy)) {
2787 SrcTy->getScalarSizeInBits() == 8) {
2789 } else if (SrcTy->getScalarSizeInBits() == 1) {
2793 assert(ShufOp0->getType() == SrcTy && "Unexpected shuffle mask");