Home | History | Annotate | Download | only in IPO

Lines Matching defs:NewTy

2335           Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType();
2338 // from NewTy to Val's type must be legal. If it's not, we can try
2339 // introspecting NewTy to find a legal conversion.
2340 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) {
2341 // If NewTy is a struct, we can convert the pointer to the struct
2344 if (StructType *STy = dyn_cast<StructType>(NewTy)) {
2345 NewTy = STy->getTypeAtIndex(0U);
2347 IntegerType *IdxTy = IntegerType::get(NewTy->getContext(), 32);
2355 // If we can't improve the situation by introspecting NewTy,
2366 Val = ConstantExpr::getBitCast(Val, NewTy);