Lines Matching refs:Ty

555 CallInst::CallInst(FunctionType *Ty, Value *Func, const Twine &Name,  in CallInst()  argument
557 : CallBase(Ty->getReturnType(), Instruction::Call, in CallInst()
559 init(Ty, Func, Name); in CallInst()
562 CallInst::CallInst(FunctionType *Ty, Value *Func, const Twine &Name, in CallInst() argument
564 : CallBase(Ty->getReturnType(), Instruction::Call, in CallInst()
566 init(Ty, Func, Name); in CallInst()
1350 static Align computeAllocaDefaultAlign(Type *Ty, BasicBlock *BB) { in computeAllocaDefaultAlign() argument
1355 return DL.getPrefTypeAlign(Ty); in computeAllocaDefaultAlign()
1358 static Align computeAllocaDefaultAlign(Type *Ty, Instruction *I) { in computeAllocaDefaultAlign() argument
1360 return computeAllocaDefaultAlign(Ty, I->getParent()); in computeAllocaDefaultAlign()
1363 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, const Twine &Name, in AllocaInst() argument
1365 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1367 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, const Twine &Name, in AllocaInst() argument
1369 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertAtEnd) {} in AllocaInst()
1371 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1373 : AllocaInst(Ty, AddrSpace, ArraySize, in AllocaInst()
1374 computeAllocaDefaultAlign(Ty, InsertBefore), Name, in AllocaInst()
1377 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1379 : AllocaInst(Ty, AddrSpace, ArraySize, in AllocaInst()
1380 computeAllocaDefaultAlign(Ty, InsertAtEnd), Name, in AllocaInst()
1383 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1386 : UnaryInstruction(PointerType::get(Ty, AddrSpace), Alloca, in AllocaInst()
1387 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1388 AllocatedType(Ty) { in AllocaInst()
1390 assert(!Ty->isVoidTy() && "Cannot allocate void!"); in AllocaInst()
1394 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1396 : UnaryInstruction(PointerType::get(Ty, AddrSpace), Alloca, in AllocaInst()
1397 getAISize(Ty->getContext(), ArraySize), InsertAtEnd), in AllocaInst()
1398 AllocatedType(Ty) { in AllocaInst()
1400 assert(!Ty->isVoidTy() && "Cannot allocate void!"); in AllocaInst()
1432 static Align computeLoadStoreDefaultAlign(Type *Ty, BasicBlock *BB) { in computeLoadStoreDefaultAlign() argument
1437 return DL.getABITypeAlign(Ty); in computeLoadStoreDefaultAlign()
1440 static Align computeLoadStoreDefaultAlign(Type *Ty, Instruction *I) { in computeLoadStoreDefaultAlign() argument
1442 return computeLoadStoreDefaultAlign(Ty, I->getParent()); in computeLoadStoreDefaultAlign()
1445 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, in LoadInst() argument
1447 : LoadInst(Ty, Ptr, Name, /*isVolatile=*/false, InsertBef) {} in LoadInst()
1449 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, in LoadInst() argument
1451 : LoadInst(Ty, Ptr, Name, /*isVolatile=*/false, InsertAE) {} in LoadInst()
1453 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1455 : LoadInst(Ty, Ptr, Name, isVolatile, in LoadInst()
1456 computeLoadStoreDefaultAlign(Ty, InsertBef), InsertBef) {} in LoadInst()
1458 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1460 : LoadInst(Ty, Ptr, Name, isVolatile, in LoadInst()
1461 computeLoadStoreDefaultAlign(Ty, InsertAE), InsertAE) {} in LoadInst()
1463 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1465 : LoadInst(Ty, Ptr, Name, isVolatile, Align, AtomicOrdering::NotAtomic, in LoadInst()
1468 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1470 : LoadInst(Ty, Ptr, Name, isVolatile, Align, AtomicOrdering::NotAtomic, in LoadInst()
1473 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1476 : UnaryInstruction(Ty, Load, Ptr, InsertBef) { in LoadInst()
1477 assert(cast<PointerType>(Ptr->getType())->isOpaqueOrPointeeTypeMatches(Ty)); in LoadInst()
1485 LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() argument
1488 : UnaryInstruction(Ty, Load, Ptr, InsertAE) { in LoadInst()
1489 assert(cast<PointerType>(Ptr->getType())->isOpaqueOrPointeeTypeMatches(Ty)); in LoadInst()
1753 Type *GetElementPtrInst::getTypeAtIndex(Type *Ty, Value *Idx) { in getTypeAtIndex() argument
1754 if (auto *Struct = dyn_cast<StructType>(Ty)) { in getTypeAtIndex()
1761 if (auto *Array = dyn_cast<ArrayType>(Ty)) in getTypeAtIndex()
1763 if (auto *Vector = dyn_cast<VectorType>(Ty)) in getTypeAtIndex()
1768 Type *GetElementPtrInst::getTypeAtIndex(Type *Ty, uint64_t Idx) { in getTypeAtIndex() argument
1769 if (auto *Struct = dyn_cast<StructType>(Ty)) { in getTypeAtIndex()
1774 if (auto *Array = dyn_cast<ArrayType>(Ty)) in getTypeAtIndex()
1776 if (auto *Vector = dyn_cast<VectorType>(Ty)) in getTypeAtIndex()
1782 static Type *getIndexedTypeInternal(Type *Ty, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument
1784 return Ty; in getIndexedTypeInternal()
1786 Ty = GetElementPtrInst::getTypeAtIndex(Ty, V); in getIndexedTypeInternal()
1787 if (!Ty) in getIndexedTypeInternal()
1788 return Ty; in getIndexedTypeInternal()
1790 return Ty; in getIndexedTypeInternal()
1793 Type *GetElementPtrInst::getIndexedType(Type *Ty, ArrayRef<Value *> IdxList) { in getIndexedType() argument
1794 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType()
1797 Type *GetElementPtrInst::getIndexedType(Type *Ty, in getIndexedType() argument
1799 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType()
1802 Type *GetElementPtrInst::getIndexedType(Type *Ty, ArrayRef<uint64_t> IdxList) { in getIndexedType() argument
1803 return getIndexedTypeInternal(Ty, IdxList); in getIndexedType()
2635 Type *Ty, const Twine &Name, in UnaryOperator() argument
2637 : UnaryInstruction(Ty, iType, S, InsertBefore) { in UnaryOperator()
2644 Type *Ty, const Twine &Name, in UnaryOperator() argument
2646 : UnaryInstruction(Ty, iType, S, InsertAtEnd) { in UnaryOperator()
2688 Type *Ty, const Twine &Name, in BinaryOperator() argument
2690 : Instruction(Ty, iType, in BinaryOperator()
2701 Type *Ty, const Twine &Name, in BinaryOperator() argument
2703 : Instruction(Ty, iType, in BinaryOperator()
3185 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() argument
3187 assert(castIsValid(op, S, Ty) && "Invalid cast!"); in Create()
3190 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create()
3191 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
3192 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
3193 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertBefore); in Create()
3194 case FPExt: return new FPExtInst (S, Ty, Name, InsertBefore); in Create()
3195 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertBefore); in Create()
3196 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertBefore); in Create()
3197 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertBefore); in Create()
3198 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertBefore); in Create()
3199 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3200 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
3201 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
3202 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore); in Create()
3207 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create() argument
3209 assert(castIsValid(op, S, Ty) && "Invalid cast!"); in Create()
3212 case Trunc: return new TruncInst (S, Ty, Name, InsertAtEnd); in Create()
3213 case ZExt: return new ZExtInst (S, Ty, Name, InsertAtEnd); in Create()
3214 case SExt: return new SExtInst (S, Ty, Name, InsertAtEnd); in Create()
3215 case FPTrunc: return new FPTruncInst (S, Ty, Name, InsertAtEnd); in Create()
3216 case FPExt: return new FPExtInst (S, Ty, Name, InsertAtEnd); in Create()
3217 case UIToFP: return new UIToFPInst (S, Ty, Name, InsertAtEnd); in Create()
3218 case SIToFP: return new SIToFPInst (S, Ty, Name, InsertAtEnd); in Create()
3219 case FPToUI: return new FPToUIInst (S, Ty, Name, InsertAtEnd); in Create()
3220 case FPToSI: return new FPToSIInst (S, Ty, Name, InsertAtEnd); in Create()
3221 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create()
3222 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertAtEnd); in Create()
3223 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd); in Create()
3224 case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertAtEnd); in Create()
3229 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast() argument
3232 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateZExtOrBitCast()
3233 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3234 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3237 CastInst *CastInst::CreateZExtOrBitCast(Value *S, Type *Ty, in CreateZExtOrBitCast() argument
3240 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateZExtOrBitCast()
3241 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd); in CreateZExtOrBitCast()
3242 return Create(Instruction::ZExt, S, Ty, Name, InsertAtEnd); in CreateZExtOrBitCast()
3245 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty, in CreateSExtOrBitCast() argument
3248 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateSExtOrBitCast()
3249 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3250 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
3253 CastInst *CastInst::CreateSExtOrBitCast(Value *S, Type *Ty, in CreateSExtOrBitCast() argument
3256 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateSExtOrBitCast()
3257 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd); in CreateSExtOrBitCast()
3258 return Create(Instruction::SExt, S, Ty, Name, InsertAtEnd); in CreateSExtOrBitCast()
3261 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty, in CreateTruncOrBitCast() argument
3264 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateTruncOrBitCast()
3265 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3266 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
3269 CastInst *CastInst::CreateTruncOrBitCast(Value *S, Type *Ty, in CreateTruncOrBitCast() argument
3272 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateTruncOrBitCast()
3273 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd); in CreateTruncOrBitCast()
3274 return Create(Instruction::Trunc, S, Ty, Name, InsertAtEnd); in CreateTruncOrBitCast()
3277 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty, in CreatePointerCast() argument
3281 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in CreatePointerCast()
3283 assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast"); in CreatePointerCast()
3284 assert((!Ty->isVectorTy() || in CreatePointerCast()
3285 cast<VectorType>(Ty)->getElementCount() == in CreatePointerCast()
3289 if (Ty->isIntOrIntVectorTy()) in CreatePointerCast()
3290 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast()
3292 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertAtEnd); in CreatePointerCast()
3296 CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty, in CreatePointerCast() argument
3300 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in CreatePointerCast()
3302 assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast"); in CreatePointerCast()
3303 assert((!Ty->isVectorTy() || in CreatePointerCast()
3304 cast<VectorType>(Ty)->getElementCount() == in CreatePointerCast()
3308 if (Ty->isIntOrIntVectorTy()) in CreatePointerCast()
3309 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3311 return CreatePointerBitCastOrAddrSpaceCast(S, Ty, Name, InsertBefore); in CreatePointerCast()
3315 Value *S, Type *Ty, in CreatePointerBitCastOrAddrSpaceCast() argument
3319 assert(Ty->isPtrOrPtrVectorTy() && "Invalid cast"); in CreatePointerBitCastOrAddrSpaceCast()
3321 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace()) in CreatePointerBitCastOrAddrSpaceCast()
3322 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertAtEnd); in CreatePointerBitCastOrAddrSpaceCast()
3324 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd); in CreatePointerBitCastOrAddrSpaceCast()
3328 Value *S, Type *Ty, in CreatePointerBitCastOrAddrSpaceCast() argument
3332 assert(Ty->isPtrOrPtrVectorTy() && "Invalid cast"); in CreatePointerBitCastOrAddrSpaceCast()
3334 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace()) in CreatePointerBitCastOrAddrSpaceCast()
3335 return Create(Instruction::AddrSpaceCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3337 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreatePointerBitCastOrAddrSpaceCast()
3340 CastInst *CastInst::CreateBitOrPointerCast(Value *S, Type *Ty, in CreateBitOrPointerCast() argument
3343 if (S->getType()->isPointerTy() && Ty->isIntegerTy()) in CreateBitOrPointerCast()
3344 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3345 if (S->getType()->isIntegerTy() && Ty->isPointerTy()) in CreateBitOrPointerCast()
3346 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3348 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3351 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty, in CreateIntegerCast() argument
3354 assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() && in CreateIntegerCast()
3357 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast()
3362 return Create(opcode, C, Ty, Name, InsertBefore); in CreateIntegerCast()
3365 CastInst *CastInst::CreateIntegerCast(Value *C, Type *Ty, in CreateIntegerCast() argument
3368 assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() && in CreateIntegerCast()
3371 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast()
3376 return Create(opcode, C, Ty, Name, InsertAtEnd); in CreateIntegerCast()
3379 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty, in CreateFPCast() argument
3382 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() && in CreateFPCast()
3385 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateFPCast()
3389 return Create(opcode, C, Ty, Name, InsertBefore); in CreateFPCast()
3392 CastInst *CastInst::CreateFPCast(Value *C, Type *Ty, in CreateFPCast() argument
3395 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() && in CreateFPCast()
3398 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateFPCast()
3402 return Create(opcode, C, Ty, Name, InsertAtEnd); in CreateFPCast()
3670 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in TruncInst() argument
3671 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
3672 assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc"); in TruncInst()
3676 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in TruncInst() argument
3677 ) : CastInst(Ty, Trunc, S, Name, InsertAtEnd) { in TruncInst()
3678 assert(castIsValid(getOpcode(), S, Ty) && "Illegal Trunc"); in TruncInst()
3682 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in ZExtInst() argument
3683 ) : CastInst(Ty, ZExt, S, Name, InsertBefore) { in ZExtInst()
3684 assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt"); in ZExtInst()
3688 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in ZExtInst() argument
3689 ) : CastInst(Ty, ZExt, S, Name, InsertAtEnd) { in ZExtInst()
3690 assert(castIsValid(getOpcode(), S, Ty) && "Illegal ZExt"); in ZExtInst()
3693 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SExtInst() argument
3694 ) : CastInst(Ty, SExt, S, Name, InsertBefore) { in SExtInst()
3695 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt"); in SExtInst()
3699 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in SExtInst() argument
3700 ) : CastInst(Ty, SExt, S, Name, InsertAtEnd) { in SExtInst()
3701 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SExt"); in SExtInst()
3705 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPTruncInst() argument
3706 ) : CastInst(Ty, FPTrunc, S, Name, InsertBefore) { in FPTruncInst()
3707 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPTrunc"); in FPTruncInst()
3711 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in FPTruncInst() argument
3712 ) : CastInst(Ty, FPTrunc, S, Name, InsertAtEnd) { in FPTruncInst()
3713 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPTrunc"); in FPTruncInst()
3717 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPExtInst() argument
3718 ) : CastInst(Ty, FPExt, S, Name, InsertBefore) { in FPExtInst()
3719 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt"); in FPExtInst()
3723 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in FPExtInst() argument
3724 ) : CastInst(Ty, FPExt, S, Name, InsertAtEnd) { in FPExtInst()
3725 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt"); in FPExtInst()
3729 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in UIToFPInst() argument
3730 ) : CastInst(Ty, UIToFP, S, Name, InsertBefore) { in UIToFPInst()
3731 assert(castIsValid(getOpcode(), S, Ty) && "Illegal UIToFP"); in UIToFPInst()
3735 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in UIToFPInst() argument
3736 ) : CastInst(Ty, UIToFP, S, Name, InsertAtEnd) { in UIToFPInst()
3737 assert(castIsValid(getOpcode(), S, Ty) && "Illegal UIToFP"); in UIToFPInst()
3741 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in SIToFPInst() argument
3742 ) : CastInst(Ty, SIToFP, S, Name, InsertBefore) { in SIToFPInst()
3743 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SIToFP"); in SIToFPInst()
3747 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in SIToFPInst() argument
3748 ) : CastInst(Ty, SIToFP, S, Name, InsertAtEnd) { in SIToFPInst()
3749 assert(castIsValid(getOpcode(), S, Ty) && "Illegal SIToFP"); in SIToFPInst()
3753 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToUIInst() argument
3754 ) : CastInst(Ty, FPToUI, S, Name, InsertBefore) { in FPToUIInst()
3755 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToUI"); in FPToUIInst()
3759 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in FPToUIInst() argument
3760 ) : CastInst(Ty, FPToUI, S, Name, InsertAtEnd) { in FPToUIInst()
3761 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToUI"); in FPToUIInst()
3765 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in FPToSIInst() argument
3766 ) : CastInst(Ty, FPToSI, S, Name, InsertBefore) { in FPToSIInst()
3767 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToSI"); in FPToSIInst()
3771 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in FPToSIInst() argument
3772 ) : CastInst(Ty, FPToSI, S, Name, InsertAtEnd) { in FPToSIInst()
3773 assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPToSI"); in FPToSIInst()
3777 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in PtrToIntInst() argument
3778 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3779 assert(castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt"); in PtrToIntInst()
3783 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in PtrToIntInst() argument
3784 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) { in PtrToIntInst()
3785 assert(castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt"); in PtrToIntInst()
3789 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in IntToPtrInst() argument
3790 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3791 assert(castIsValid(getOpcode(), S, Ty) && "Illegal IntToPtr"); in IntToPtrInst()
3795 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in IntToPtrInst() argument
3796 ) : CastInst(Ty, IntToPtr, S, Name, InsertAtEnd) { in IntToPtrInst()
3797 assert(castIsValid(getOpcode(), S, Ty) && "Illegal IntToPtr"); in IntToPtrInst()
3801 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in BitCastInst() argument
3802 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) { in BitCastInst()
3803 assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"); in BitCastInst()
3807 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in BitCastInst() argument
3808 ) : CastInst(Ty, BitCast, S, Name, InsertAtEnd) { in BitCastInst()
3809 assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"); in BitCastInst()
3813 Value *S, Type *Ty, const Twine &Name, Instruction *InsertBefore in AddrSpaceCastInst() argument
3814 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertBefore) { in AddrSpaceCastInst()
3815 assert(castIsValid(getOpcode(), S, Ty) && "Illegal AddrSpaceCast"); in AddrSpaceCastInst()
3819 Value *S, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd in AddrSpaceCastInst() argument
3820 ) : CastInst(Ty, AddrSpaceCast, S, Name, InsertAtEnd) { in AddrSpaceCastInst()
3821 assert(castIsValid(getOpcode(), S, Ty) && "Illegal AddrSpaceCast"); in AddrSpaceCastInst()