Lines Matching defs:DstTy

1231 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy,
1236 Type *DstVecTy = DstTy->getScalarType();
1244 IntegerType *DITy = cast<IntegerType>(DstTy);
1251 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy,
1256 Type *DstVecTy = DstTy->getScalarType();
1264 auto *DITy = cast<IntegerType>(DstTy);
1271 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy,
1276 Type *DstVecTy = DstTy->getScalarType();
1285 auto *DITy = cast<IntegerType>(DstTy);
1292 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy,
1298 DstTy->getScalarType()->isFloatTy() &&
1307 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() &&
1315 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy,
1321 DstTy->getScalarType()->isDoubleTy() && "Invalid FPExt instruction");
1329 assert(SrcVal->getType()->isFloatTy() && DstTy->isDoubleTy() &&
1337 GenericValue Interpreter::executeFPToUIInst(Value *SrcVal, Type *DstTy,
1343 Type *DstVecTy = DstTy->getScalarType();
1362 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1375 GenericValue Interpreter::executeFPToSIInst(Value *SrcVal, Type *DstTy,
1381 Type *DstVecTy = DstTy->getScalarType();
1400 unsigned DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1412 GenericValue Interpreter::executeUIToFPInst(Value *SrcVal, Type *DstTy,
1417 Type *DstVecTy = DstTy->getScalarType();
1434 assert(DstTy->isFloatingPointTy() && "Invalid UIToFP instruction");
1435 if (DstTy->getTypeID() == Type::FloatTyID)
1444 GenericValue Interpreter::executeSIToFPInst(Value *SrcVal, Type *DstTy,
1449 Type *DstVecTy = DstTy->getScalarType();
1466 assert(DstTy->isFloatingPointTy() && "Invalid SIToFP instruction");
1468 if (DstTy->getTypeID() == Type::FloatTyID)
1478 GenericValue Interpreter::executePtrToIntInst(Value *SrcVal, Type *DstTy,
1480 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1488 GenericValue Interpreter::executeIntToPtrInst(Value *SrcVal, Type *DstTy,
1491 assert(DstTy->isPointerTy() && "Invalid PtrToInt instruction");
1501 GenericValue Interpreter::executeBitCastInst(Value *SrcVal, Type *DstTy,
1509 if (isa<VectorType>(SrcTy) || isa<VectorType>(DstTy)) {
1534 if (isa<VectorType>(DstTy)) {
1535 DstElemTy = DstTy->getScalarType();
1536 DstBitSize = DstTy->getScalarSizeInBits();
1539 DstElemTy = DstTy;
1540 DstBitSize = DstTy->getPrimitiveSizeInBits();
1607 if (isa<VectorType>(DstTy)) {
1630 } else { // if (isa<VectorType>(SrcTy)) || isa<VectorType>(DstTy))
1633 if (DstTy->isPointerTy()) {
1636 } else if (DstTy->isIntegerTy()) {
1646 } else if (DstTy->isFloatTy()) {
1652 } else if (DstTy->isDoubleTy()) {