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>
403 PointerType *PTy = cast<PointerType>(C->getType());
495 // If the type sizes are the same and a cast is legal, just directly
496 // cast the constant.
498 Instruction::CastOps Cast = Instruction::BitCast;
499 // If we are going from a pointer to int or vice versa, we spell the cast
502 Cast = Instruction::IntToPtr;
504 Cast = Instruction::PtrToInt;
506 if (CastInst::castIsValid(Cast, C, DestTy))
507 return ConstantExpr::getCast(Cast, C, DestTy);
562 Type *Ty = cast<PointerType>(CE->getType())->getElementType();
597 Type *ResTy = cast<PointerType>(C->getType())->getElementType();
675 /// If array indices are not pointer-sized integers, explicitly cast them so
687 cast<PointerType>(Ops[0]->getType()->getScalarType())
716 PointerType *OldPtrTy = cast<PointerType>(Ptr->getType());
718 PointerType *NewPtrTy = cast<PointerType>(Ptr->getType());
742 // "offsetof", fold it into 'cast int Size to T*' instead of 'gep 0, 0, 12'
787 Ptr = cast<Constant>(GEP->getOperand(0));
877 // the type of what the original indices indexed, add a cast.
951 cast<Constant>(IVI->getAggregateOperand()),
952 cast<Constant>(IVI->getInsertedValueOperand()),
958 cast<Constant>(EVI->getAggregateOperand()),
972 Constant *NewC = cast<Constant>(*i);
1617 Constant *Op = cast<Constant>(Operands[0]);
1746 return ConstantStruct::get(cast<StructType>(Ty), Ops);