Home | History | Annotate | Download | only in Analysis

Lines Matching defs:Cast

61   // Handle a vector->integer cast.
104 // If this is a scalar -> vector cast, convert the input into a <1 x scalar>
395 PointerType *PTy = cast<PointerType>(C->getType());
490 // If the type sizes are the same and a cast is legal, just directly
491 // cast the constant.
493 Instruction::CastOps Cast = Instruction::BitCast;
494 // If we are going from a pointer to int or vice versa, we spell the cast
497 Cast = Instruction::IntToPtr;
499 Cast = Instruction::PtrToInt;
501 if (CastInst::castIsValid(Cast, C, DestTy))
502 return ConstantExpr::getCast(Cast, C, DestTy);
554 Type *Ty = cast<PointerType>(CE->getType())->getElementType();
589 Type *ResTy = cast<PointerType>(C->getType())->getElementType();
670 /// explicitly cast them so that they aren't implicitly casted by the
713 PointerType *OldPtrTy = cast<PointerType>(Ptr->getType());
715 PointerType *NewPtrTy = cast<PointerType>(Ptr->getType());
740 // "offsetof", fold it into 'cast int Size to T*' instead of 'gep 0, 0, 12'
785 Ptr = cast<Constant>(GEP->getOperand(0));
876 // the type of what the original indices indexed, add a cast.
952 cast<Constant>(IVI->getAggregateOperand()),
953 cast<Constant>(IVI->getInsertedValueOperand()),
959 cast<Constant>(EVI->getAggregateOperand()),
973 Constant *NewC = cast<Constant>(*i);
1578 Constant *Op = cast<Constant>(Operands[0]);
1691 cast<StructType>(Ty), Ops);