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()) {
611 Type *SrcTy = Trunc.getSrcTy();
613 unsigned SrcWidth = SrcTy->getScalarSizeInBits();
616 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
748 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType();
750 unsigned SrcWidth = SrcTy->getScalarSizeInBits();
756 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) &&
777 if (shouldChangeType(SrcTy, NewDestTy) &&
795 Value *Zero = Constant::getNullValue(SrcTy);
803 Constant *Log2C1 = ConstantInt::get(SrcTy, C1->exactLogBase2());
811 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
819 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1));
853 Constant *MaxAmt = ConstantInt::get(SrcTy, Width - 1, false);
889 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) {
1191 Type *SrcTy = Src->getType(), *DestTy = Zext.getType();
1194 if (SrcTy->isIntOrIntVectorTy(1) && Zext.hasNonNeg())
1199 if (shouldChangeType(SrcTy, DestTy) &&
1201 assert(BitsToClear <= SrcTy->getScalarSizeInBits() &&
1202 "Can't clear more bits than in SrcTy");
1217 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits() - BitsToClear;
1319 SrcTy->getScalarSizeInBits() >
1479 Type *SrcTy = Src->getType(), *DestTy = Sext.getType();
1480 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
1491 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) {
1565 ConstantInt::get(DestTy, SrcTy->getScalarSizeInBits()), WideCurrShAmt);
1709 Type *SrcTy = Src->getType();
1712 int SrcSize = (int)SrcTy->getScalarSizeInBits() - IsSigned;
1742 int SigBits = (int)SrcTy->getScalarSizeInBits() -
2075 Type *SrcTy = SrcOp->getType();
2082 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS));
2156 VectorType *SrcTy = cast<VectorType>(InVal->getType());
2158 if (SrcTy->getElementType() != DestTy->getElementType()) {
2163 if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
2167 SrcTy =
2169 cast<FixedVectorType>(SrcTy)->getNumElements());
2170 InVal = IC.Builder.CreateBitCast(InVal, SrcTy);
2174 unsigned SrcElts = cast<FixedVectorType>(SrcTy)->getNumElements();
2191 V2 = PoisonValue::get(SrcTy);
2204 V2 = Constant::getNullValue(SrcTy);
2552 Type *SrcTy = Src->getType(); // Type B
2605 if (TyA != DestTy || TyB != SrcTy)
2621 if (TyA != DestTy || TyB != SrcTy)
2687 cast<BitCastInst>(Builder.CreateBitCast(NewPN, SrcTy));
2695 assert(TyA == DestTy && TyB == SrcTy);
2738 Type *SrcTy = Src->getType();
2747 if (isa<IntegerType>(SrcTy)) {
2768 if (FixedVectorType *SrcVTy = dyn_cast<FixedVectorType>(SrcTy)) {
2845 SrcTy->getScalarSizeInBits() == 8) {
2847 } else if (SrcTy->getScalarSizeInBits() == 1) {
2851 assert(ShufOp0->getType() == SrcTy && "Unexpected shuffle mask");