reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1763 assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type"); 1765 if (OldTy == NewTy) 1768 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && 1773 if (OldTy->isIntOrIntVectorTy() && NewTy->isPtrOrPtrVectorTy()) { 1775 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) 1776 return IRB.CreateIntToPtr(IRB.CreateBitCast(V, DL.getIntPtrType(NewTy)), 1777 NewTy); 1780 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) 1781 return IRB.CreateIntToPtr(IRB.CreateBitCast(V, DL.getIntPtrType(NewTy)), 1782 NewTy); 1784 return IRB.CreateIntToPtr(V, NewTy); 1789 if (OldTy->isPtrOrPtrVectorTy() && NewTy->isIntOrIntVectorTy()) { 1791 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) 1793 NewTy); 1796 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) 1798 NewTy); 1800 return IRB.CreatePtrToInt(V, NewTy); 1803 return IRB.CreateBitCast(V, NewTy);