Lines Matching refs:OldTy

1614 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) {  in canConvertValue()  argument
1615 if (OldTy == NewTy) in canConvertValue()
1621 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1622 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue()
1628 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1630 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1635 OldTy = OldTy->getScalarType(); in canConvertValue()
1637 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1638 if (NewTy->isPointerTy() && OldTy->isPointerTy()) { in canConvertValue()
1640 cast<PointerType>(OldTy)->getPointerAddressSpace(); in canConvertValue()
1642 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()
1658 Type *OldTy = V->getType(); in convertValue() local
1659 assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type"); in convertValue()
1661 if (OldTy == NewTy) in convertValue()
1664 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue()
1669 if (OldTy->getScalarType()->isIntegerTy() && in convertValue()
1672 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) in convertValue()
1677 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) in convertValue()
1686 if (OldTy->getScalarType()->isPointerTy() && in convertValue()
1689 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) in convertValue()
1690 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()
1694 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) in convertValue()
1695 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()