Lines Matching refs:DstTy
1548 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) {
1551 assert(DstTy->getScalarType()->isIntegerTy() &&
1553 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1555 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1557 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1560 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) {
1563 assert(DstTy->getScalarType()->isPointerTy() &&
1565 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1567 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1569 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1572 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy) {
1573 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) &&
1578 if (C->getType() == DstTy) return C;
1580 return getFoldedCast(Instruction::BitCast, C, DstTy);