Home | History | Annotate | Download | only in Scalar

Lines Matching refs:OldTy

1537 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) {
1538 if (OldTy == NewTy)
1540 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy))
1544 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy))
1546 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType())
1551 OldTy = OldTy->getScalarType();
1553 if (NewTy->isPointerTy() || OldTy->isPointerTy()) {
1554 if (NewTy->isPointerTy() && OldTy->isPointerTy())
1556 if (NewTy->isIntegerTy() || OldTy->isIntegerTy())
1572 Type *OldTy = V->getType();
1573 assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type");
1575 if (OldTy == NewTy)
1578 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy))
1585 if (OldTy->getScalarType()->isIntegerTy() &&
1588 if (OldTy->isVectorTy() && !NewTy->isVectorTy())
1593 if (!OldTy->isVectorTy() && NewTy->isVectorTy())
1602 if (OldTy->getScalarType()->isPointerTy() &&
1605 if (OldTy->isVectorTy() && !NewTy->isVectorTy())
1606 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),
1610 if (!OldTy->isVectorTy() && NewTy->isVectorTy())
1611 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),