Lines Matching defs:OldTy
1928 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) {
1929 if (OldTy == NewTy)
1935 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) {
1936 assert(cast<IntegerType>(OldTy)->getBitWidth() !=
1943 DL.getTypeSizeInBits(OldTy).getFixedValue())
1945 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType())
1950 OldTy = OldTy->getScalarType();
1952 if (NewTy->isPointerTy() || OldTy->isPointerTy()) {
1953 if (NewTy->isPointerTy() && OldTy->isPointerTy()) {
1954 unsigned OldAS = OldTy->getPointerAddressSpace();
1967 if (OldTy->isIntegerTy())
1972 if (!DL.isNonIntegralPointerType(OldTy))
1978 if (OldTy->isTargetExtTy() || NewTy->isTargetExtTy())
1992 Type *OldTy = V->getType();
1993 assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type");
1995 if (OldTy == NewTy)
1998 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) &&
2002 if (OldTy->isIntOrIntVectorTy() && NewTy->isPtrOrPtrVectorTy()) {
2012 if (OldTy->isPtrOrPtrVectorTy() && NewTy->isIntOrIntVectorTy()) {
2017 return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),
2021 if (OldTy->isPtrOrPtrVectorTy() && NewTy->isPtrOrPtrVectorTy()) {
2022 unsigned OldAS = OldTy->getPointerAddressSpace();
2032 return IRB.CreateIntToPtr(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),