Home | History | Annotate | Download | only in Interpreter

Lines Matching refs:DstTy

1217 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy,
1222 Type *DstVecTy = DstTy->getScalarType();
1230 IntegerType *DITy = cast<IntegerType>(DstTy);
1237 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy,
1242 const Type *DstVecTy = DstTy->getScalarType();
1250 const IntegerType *DITy = cast<IntegerType>(DstTy);
1257 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy,
1262 const Type *DstVecTy = DstTy->getScalarType();
1271 const IntegerType *DITy = cast<IntegerType>(DstTy);
1278 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy,
1284 DstTy->getScalarType()->isFloatTy() &&
1293 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() &&
1301 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy,
1307 DstTy->getScalarType()->isDoubleTy() && "Invalid FPExt instruction");
1315 assert(SrcVal->getType()->isFloatTy() && DstTy->isDoubleTy() &&
1323 GenericValue Interpreter::executeFPToUIInst(Value *SrcVal, Type *DstTy,
1329 const Type *DstVecTy = DstTy->getScalarType();
1348 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1361 GenericValue Interpreter::executeFPToSIInst(Value *SrcVal, Type *DstTy,
1367 const Type *DstVecTy = DstTy->getScalarType();
1386 unsigned DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1398 GenericValue Interpreter::executeUIToFPInst(Value *SrcVal, Type *DstTy,
1403 const Type *DstVecTy = DstTy->getScalarType();
1420 assert(DstTy->isFloatingPointTy() && "Invalid UIToFP instruction");
1421 if (DstTy->getTypeID() == Type::FloatTyID)
1430 GenericValue Interpreter::executeSIToFPInst(Value *SrcVal, Type *DstTy,
1435 const Type *DstVecTy = DstTy->getScalarType();
1452 assert(DstTy->isFloatingPointTy() && "Invalid SIToFP instruction");
1454 if (DstTy->getTypeID() == Type::FloatTyID)
1464 GenericValue Interpreter::executePtrToIntInst(Value *SrcVal, Type *DstTy,
1466 uint32_t DBitWidth = cast<IntegerType>(DstTy)->getBitWidth();
1474 GenericValue Interpreter::executeIntToPtrInst(Value *SrcVal, Type *DstTy,
1477 assert(DstTy->isPointerTy() && "Invalid PtrToInt instruction");
1487 GenericValue Interpreter::executeBitCastInst(Value *SrcVal, Type *DstTy,
1496 (DstTy->getTypeID() == Type::VectorTyID)) {
1521 if (DstTy->getTypeID() == Type::VectorTyID) {
1522 DstElemTy = DstTy->getScalarType();
1523 DstBitSize = DstTy->getScalarSizeInBits();
1526 DstElemTy = DstTy;
1527 DstBitSize = DstTy->getPrimitiveSizeInBits();
1594 if (DstTy->getTypeID() == Type::VectorTyID) {
1618 // (DstTy->getTypeID() == Type::VectorTyID))
1621 if (DstTy->isPointerTy()) {
1624 } else if (DstTy->isIntegerTy()) {
1634 } else if (DstTy->isFloatTy()) {
1640 } else if (DstTy->isDoubleTy()) {