• Home
  • Raw
  • Download

Lines Matching refs:NewTy

1632 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) {  in canConvertValue()  argument
1633 if (OldTy == NewTy) in canConvertValue()
1639 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1641 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue()
1646 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()
1648 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()
1654 NewTy = NewTy->getScalarType(); in canConvertValue()
1655 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()
1656 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue()
1658 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()
1673 Type *NewTy) { in convertValue() argument
1675 assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type"); in convertValue()
1677 if (OldTy == NewTy) in convertValue()
1680 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue()
1686 NewTy->getScalarType()->isPointerTy()) { in convertValue()
1688 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) in convertValue()
1689 return IRB.CreateIntToPtr(IRB.CreateBitCast(V, DL.getIntPtrType(NewTy)), in convertValue()
1690 NewTy); in convertValue()
1693 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) in convertValue()
1694 return IRB.CreateIntToPtr(IRB.CreateBitCast(V, DL.getIntPtrType(NewTy)), in convertValue()
1695 NewTy); in convertValue()
1697 return IRB.CreateIntToPtr(V, NewTy); in convertValue()
1703 NewTy->getScalarType()->isIntegerTy()) { in convertValue()
1705 if (OldTy->isVectorTy() && !NewTy->isVectorTy()) in convertValue()
1707 NewTy); in convertValue()
1710 if (!OldTy->isVectorTy() && NewTy->isVectorTy()) in convertValue()
1712 NewTy); in convertValue()
1714 return IRB.CreatePtrToInt(V, NewTy); in convertValue()
1717 return IRB.CreateBitCast(V, NewTy); in convertValue()