Lines Matching refs:SrcTy
238 Type *SrcTy = CI->getOperand(0)->getType(); // A from above
245 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr;
250 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
256 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) ||
496 Type *DestTy = CI.getType(), *SrcTy = Src->getType();
502 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
516 Constant *One = ConstantInt::get(SrcTy, 1);
567 if (Src->hasOneUse() && isa<IntegerType>(SrcTy) &&
568 ShouldChangeType(SrcTy, DestTy) &&
848 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
855 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
857 assert(BitsToClear < SrcTy->getScalarSizeInBits() &&
866 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear;
1132 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
1147 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
1155 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits();
1173 uint32_t SrcBitSize = SrcTy->getScalarSizeInBits();
1428 Type *SrcTy = SrcI->getType();
1441 int InputSize = (int)SrcTy->getScalarSizeInBits() - IsInputSigned;
1446 if (FITy->getScalarSizeInBits() > SrcTy->getScalarSizeInBits()) {
1451 if (FITy->getScalarSizeInBits() < SrcTy->getScalarSizeInBits())
1453 if (SrcTy == FITy)
1565 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1567 if (SrcTy->getElementType() != DestTy->getElementType()) {
1572 if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
1576 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
1577 InVal = IC.Builder->CreateBitCast(InVal, SrcTy);
1586 if (SrcTy->getNumElements() > DestTy->getNumElements()) {
1589 V2 = UndefValue::get(SrcTy);
1597 V2 = Constant::getNullValue(SrcTy);
1598 unsigned SrcElts = SrcTy->getNumElements();
1793 Type *SrcTy = Src->getType();
1802 PointerType *SrcPTy = cast<PointerType>(SrcTy);
1833 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) {
1840 if (isa<IntegerType>(SrcTy)) {
1861 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) {
1908 if (SrcTy->isPointerTy())
1918 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType());
1922 if (SrcTy->getElementType() != DestElemTy) {
1923 Type *MidTy = PointerType::get(DestElemTy, SrcTy->getAddressSpace());