Lines Matching refs:Dest
49 static void executeFNegInst(GenericValue &Dest, GenericValue Src, Type *Ty) { in executeFNegInst() argument
52 Dest.FloatVal = -Src.FloatVal; in executeFNegInst()
55 Dest.DoubleVal = -Src.DoubleVal; in executeFNegInst()
105 Dest.TY##Val = Src1.TY##Val OP Src2.TY##Val; \
108 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, in executeFAddInst() argument
119 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, in executeFSubInst() argument
130 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, in executeFMulInst() argument
141 static void executeFDivInst(GenericValue &Dest, GenericValue Src1, in executeFDivInst() argument
152 static void executeFRemInst(GenericValue &Dest, GenericValue Src1, in executeFRemInst() argument
156 Dest.FloatVal = fmod(Src1.FloatVal, Src2.FloatVal); in executeFRemInst()
159 Dest.DoubleVal = fmod(Src1.DoubleVal, Src2.DoubleVal); in executeFRemInst()
169 Dest.IntVal = APInt(1,Src1.IntVal.OP(Src2.IntVal)); \
176 Dest.AggregateVal.resize(Src1.AggregateVal.size()); \
178 Dest.AggregateVal[_i].IntVal = APInt( \
188 Dest.IntVal = APInt(1,(void*)(intptr_t)Src1.PointerVal OP \
194 GenericValue Dest; in executeICMP_EQ() local
203 return Dest; in executeICMP_EQ()
208 GenericValue Dest; in executeICMP_NE() local
217 return Dest; in executeICMP_NE()
222 GenericValue Dest; in executeICMP_ULT() local
231 return Dest; in executeICMP_ULT()
236 GenericValue Dest; in executeICMP_SLT() local
245 return Dest; in executeICMP_SLT()
250 GenericValue Dest; in executeICMP_UGT() local
259 return Dest; in executeICMP_UGT()
264 GenericValue Dest; in executeICMP_SGT() local
273 return Dest; in executeICMP_SGT()
278 GenericValue Dest; in executeICMP_ULE() local
287 return Dest; in executeICMP_ULE()
292 GenericValue Dest; in executeICMP_SLE() local
301 return Dest; in executeICMP_SLE()
306 GenericValue Dest; in executeICMP_UGE() local
315 return Dest; in executeICMP_UGE()
320 GenericValue Dest; in executeICMP_SGE() local
329 return Dest; in executeICMP_SGE()
360 Dest.IntVal = APInt(1,Src1.TY##Val OP Src2.TY##Val); \
365 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); \
367 Dest.AggregateVal[_i].IntVal = APInt(1, \
382 GenericValue Dest; in executeFCMP_OEQ() local
391 return Dest; in executeFCMP_OEQ()
397 Dest.IntVal = APInt(1,false); \
398 return Dest; \
402 Dest.IntVal = APInt(1,false); \
403 return Dest; \
409 Dest.AggregateVal.resize( X.AggregateVal.size() ); \
413 Dest.AggregateVal[_i].IntVal = APInt(1,FLAG); \
415 Dest.AggregateVal[_i].IntVal = APInt(1,!FLAG); \
433 GenericValue Dest; in executeFCMP_ONE() local
438 GenericValue DestMask = Dest; in executeFCMP_ONE()
451 Dest.AggregateVal[_i].IntVal = APInt(1,false); in executeFCMP_ONE()
453 return Dest; in executeFCMP_ONE()
458 GenericValue Dest; in executeFCMP_OLE() local
467 return Dest; in executeFCMP_OLE()
472 GenericValue Dest; in executeFCMP_OGE() local
481 return Dest; in executeFCMP_OGE()
486 GenericValue Dest; in executeFCMP_OLT() local
495 return Dest; in executeFCMP_OLT()
500 GenericValue Dest; in executeFCMP_OGT() local
509 return Dest; in executeFCMP_OGT()
515 Dest.IntVal = APInt(1,true); \
516 return Dest; \
519 Dest.IntVal = APInt(1,true); \
520 return Dest; \
525 GenericValue DestMask = Dest; \
526 Dest = FUNC(Src1, Src2, Ty); \
529 Dest.AggregateVal[_i].IntVal = APInt(1, true); \
530 return Dest; \
535 GenericValue Dest; in executeFCMP_UEQ() local
545 GenericValue Dest; in executeFCMP_UNE() local
554 GenericValue Dest; in executeFCMP_ULE() local
563 GenericValue Dest; in executeFCMP_UGE() local
572 GenericValue Dest; in executeFCMP_ULT() local
581 GenericValue Dest; in executeFCMP_UGT() local
590 GenericValue Dest; in executeFCMP_ORD() local
593 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_ORD()
596 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_ORD()
603 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_ORD()
610 Dest.IntVal = APInt(1,(Src1.FloatVal == Src1.FloatVal && in executeFCMP_ORD()
613 Dest.IntVal = APInt(1,(Src1.DoubleVal == Src1.DoubleVal && in executeFCMP_ORD()
616 return Dest; in executeFCMP_ORD()
621 GenericValue Dest; in executeFCMP_UNO() local
624 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_UNO()
627 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_UNO()
634 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_UNO()
641 Dest.IntVal = APInt(1,(Src1.FloatVal != Src1.FloatVal || in executeFCMP_UNO()
644 Dest.IntVal = APInt(1,(Src1.DoubleVal != Src1.DoubleVal || in executeFCMP_UNO()
647 return Dest; in executeFCMP_UNO()
652 GenericValue Dest; in executeFCMP_BOOL() local
655 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_BOOL()
657 Dest.AggregateVal[_i].IntVal = APInt(1,val); in executeFCMP_BOOL()
659 Dest.IntVal = APInt(1, val); in executeFCMP_BOOL()
662 return Dest; in executeFCMP_BOOL()
847 GenericValue Dest; in executeSelectInst() local
851 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeSelectInst()
853 Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ? in executeSelectInst()
856 Dest = (Src1.IntVal == 0) ? Src3 : Src2; in executeSelectInst()
858 return Dest; in executeSelectInst()
938 BasicBlock *Dest; in visitBranchInst() local
940 Dest = I.getSuccessor(0); // Uncond branches have a fixed dest... in visitBranchInst()
944 Dest = I.getSuccessor(1); in visitBranchInst()
946 SwitchToNewBasicBlock(Dest, SF); in visitBranchInst()
956 BasicBlock *Dest = nullptr; in visitSwitchInst() local
960 Dest = cast<BasicBlock>(Case.getCaseSuccessor()); in visitSwitchInst()
964 if (!Dest) Dest = I.getDefaultDest(); // No cases matched: use default in visitSwitchInst()
965 SwitchToNewBasicBlock(Dest, SF); in visitSwitchInst()
970 void *Dest = GVTOP(getOperandValue(I.getAddress(), SF)); in visitIndirectBrInst() local
971 SwitchToNewBasicBlock((BasicBlock*)Dest, SF); in visitIndirectBrInst()
985 void Interpreter::SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF){ in SwitchToNewBasicBlock() argument
987 SF.CurBB = Dest; // Update CurBB to branch destination in SwitchToNewBasicBlock()
1190 GenericValue Dest; in visitShl() local
1201 Dest.AggregateVal.push_back(Result); in visitShl()
1207 Dest.IntVal = valueToShift.shl(getShiftAmount(shiftAmount, valueToShift)); in visitShl()
1210 SetValue(&I, Dest, SF); in visitShl()
1217 GenericValue Dest; in visitLShr() local
1228 Dest.AggregateVal.push_back(Result); in visitLShr()
1234 Dest.IntVal = valueToShift.lshr(getShiftAmount(shiftAmount, valueToShift)); in visitLShr()
1237 SetValue(&I, Dest, SF); in visitLShr()
1244 GenericValue Dest; in visitAShr() local
1255 Dest.AggregateVal.push_back(Result); in visitAShr()
1261 Dest.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr()
1264 SetValue(&I, Dest, SF); in visitAShr()
1269 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst() local
1276 Dest.AggregateVal.resize(NumElts); in executeTruncInst()
1278 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth); in executeTruncInst()
1282 Dest.IntVal = Src.IntVal.trunc(DBitWidth); in executeTruncInst()
1284 return Dest; in executeTruncInst()
1290 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst() local
1296 Dest.AggregateVal.resize(size); in executeSExtInst()
1298 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth); in executeSExtInst()
1302 Dest.IntVal = Src.IntVal.sext(DBitWidth); in executeSExtInst()
1304 return Dest; in executeSExtInst()
1310 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst() local
1317 Dest.AggregateVal.resize(size); in executeZExtInst()
1319 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth); in executeZExtInst()
1323 Dest.IntVal = Src.IntVal.zext(DBitWidth); in executeZExtInst()
1325 return Dest; in executeZExtInst()
1330 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPTruncInst() local
1339 Dest.AggregateVal.resize(size); in executeFPTruncInst()
1341 Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal; in executeFPTruncInst()
1345 Dest.FloatVal = (float)Src.DoubleVal; in executeFPTruncInst()
1348 return Dest; in executeFPTruncInst()
1353 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPExtInst() local
1361 Dest.AggregateVal.resize(size); in executeFPExtInst()
1363 Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal; in executeFPExtInst()
1367 Dest.DoubleVal = (double)Src.FloatVal; in executeFPExtInst()
1370 return Dest; in executeFPExtInst()
1376 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToUIInst() local
1384 Dest.AggregateVal.resize(size); in executeFPToUIInst()
1389 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt( in executeFPToUIInst()
1393 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt( in executeFPToUIInst()
1402 Dest.IntVal = APIntOps::RoundFloatToAPInt(Src.FloatVal, DBitWidth); in executeFPToUIInst()
1404 Dest.IntVal = APIntOps::RoundDoubleToAPInt(Src.DoubleVal, DBitWidth); in executeFPToUIInst()
1408 return Dest; in executeFPToUIInst()
1414 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToSIInst() local
1422 Dest.AggregateVal.resize(size); in executeFPToSIInst()
1427 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt( in executeFPToSIInst()
1431 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt( in executeFPToSIInst()
1440 Dest.IntVal = APIntOps::RoundFloatToAPInt(Src.FloatVal, DBitWidth); in executeFPToSIInst()
1442 Dest.IntVal = APIntOps::RoundDoubleToAPInt(Src.DoubleVal, DBitWidth); in executeFPToSIInst()
1445 return Dest; in executeFPToSIInst()
1450 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeUIToFPInst() local
1456 Dest.AggregateVal.resize(size); in executeUIToFPInst()
1461 Dest.AggregateVal[i].FloatVal = in executeUIToFPInst()
1465 Dest.AggregateVal[i].DoubleVal = in executeUIToFPInst()
1472 Dest.FloatVal = APIntOps::RoundAPIntToFloat(Src.IntVal); in executeUIToFPInst()
1474 Dest.DoubleVal = APIntOps::RoundAPIntToDouble(Src.IntVal); in executeUIToFPInst()
1477 return Dest; in executeUIToFPInst()
1482 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSIToFPInst() local
1488 Dest.AggregateVal.resize(size); in executeSIToFPInst()
1493 Dest.AggregateVal[i].FloatVal = in executeSIToFPInst()
1497 Dest.AggregateVal[i].DoubleVal = in executeSIToFPInst()
1505 Dest.FloatVal = APIntOps::RoundSignedAPIntToFloat(Src.IntVal); in executeSIToFPInst()
1507 Dest.DoubleVal = APIntOps::RoundSignedAPIntToDouble(Src.IntVal); in executeSIToFPInst()
1511 return Dest; in executeSIToFPInst()
1517 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executePtrToIntInst() local
1520 Dest.IntVal = APInt(DBitWidth, (intptr_t) Src.PointerVal); in executePtrToIntInst()
1521 return Dest; in executePtrToIntInst()
1526 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeIntToPtrInst() local
1533 Dest.PointerVal = PointerTy(intptr_t(Src.IntVal.getZExtValue())); in executeIntToPtrInst()
1534 return Dest; in executeIntToPtrInst()
1543 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeBitCastInst() local
1645 Dest.AggregateVal.resize(DstNum); in executeBitCastInst()
1647 Dest.AggregateVal[i].DoubleVal = in executeBitCastInst()
1650 Dest.AggregateVal.resize(DstNum); in executeBitCastInst()
1652 Dest.AggregateVal[i].FloatVal = in executeBitCastInst()
1655 Dest = TempDst; in executeBitCastInst()
1659 Dest.DoubleVal = TempDst.AggregateVal[0].IntVal.bitsToDouble(); in executeBitCastInst()
1661 Dest.FloatVal = TempDst.AggregateVal[0].IntVal.bitsToFloat(); in executeBitCastInst()
1663 Dest.IntVal = TempDst.AggregateVal[0].IntVal; in executeBitCastInst()
1671 Dest.PointerVal = Src.PointerVal; in executeBitCastInst()
1674 Dest.IntVal = APInt::floatToBits(Src.FloatVal); in executeBitCastInst()
1676 Dest.IntVal = APInt::doubleToBits(Src.DoubleVal); in executeBitCastInst()
1678 Dest.IntVal = Src.IntVal; in executeBitCastInst()
1684 Dest.FloatVal = Src.IntVal.bitsToFloat(); in executeBitCastInst()
1686 Dest.FloatVal = Src.FloatVal; in executeBitCastInst()
1690 Dest.DoubleVal = Src.IntVal.bitsToDouble(); in executeBitCastInst()
1692 Dest.DoubleVal = Src.DoubleVal; in executeBitCastInst()
1699 return Dest; in executeBitCastInst()
1763 case Type::TY##TyID: Dest.TY##Val = Src.TY##Val; break
1771 GenericValue Dest; in visitVAArgInst() local
1777 Dest.IntVal = Src.IntVal; in visitVAArgInst()
1788 SetValue(&I, Dest, SF); in visitVAArgInst()
1798 GenericValue Dest; in visitExtractElementInst() local
1811 Dest.IntVal = Src1.AggregateVal[indx].IntVal; in visitExtractElementInst()
1814 Dest.FloatVal = Src1.AggregateVal[indx].FloatVal; in visitExtractElementInst()
1817 Dest.DoubleVal = Src1.AggregateVal[indx].DoubleVal; in visitExtractElementInst()
1824 SetValue(&I, Dest, SF); in visitExtractElementInst()
1834 GenericValue Dest; in visitInsertElementInst() local
1839 Dest.AggregateVal = Src1.AggregateVal; in visitInsertElementInst()
1847 Dest.AggregateVal[indx].IntVal = Src2.IntVal; in visitInsertElementInst()
1850 Dest.AggregateVal[indx].FloatVal = Src2.FloatVal; in visitInsertElementInst()
1853 Dest.AggregateVal[indx].DoubleVal = Src2.DoubleVal; in visitInsertElementInst()
1856 SetValue(&I, Dest, SF); in visitInsertElementInst()
1866 GenericValue Dest; in visitShuffleVectorInst() local
1877 Dest.AggregateVal.resize(src3Size); in visitShuffleVectorInst()
1887 Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal; in visitShuffleVectorInst()
1889 Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal; in visitShuffleVectorInst()
1903 Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal; in visitShuffleVectorInst()
1905 Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal; in visitShuffleVectorInst()
1914 Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal; in visitShuffleVectorInst()
1916 Dest.AggregateVal[i].DoubleVal = in visitShuffleVectorInst()
1923 SetValue(&I, Dest, SF); in visitShuffleVectorInst()
1929 GenericValue Dest; in visitExtractValueInst() local
1947 Dest.IntVal = pSrc->IntVal; in visitExtractValueInst()
1950 Dest.FloatVal = pSrc->FloatVal; in visitExtractValueInst()
1953 Dest.DoubleVal = pSrc->DoubleVal; in visitExtractValueInst()
1959 Dest.AggregateVal = pSrc->AggregateVal; in visitExtractValueInst()
1962 Dest.PointerVal = pSrc->PointerVal; in visitExtractValueInst()
1966 SetValue(&I, Dest, SF); in visitExtractValueInst()
1976 GenericValue Dest = Src1; // Dest is a slightly changed Src1 in visitInsertValueInst() local
1981 GenericValue *pDest = &Dest; in visitInsertValueInst()
2014 SetValue(&I, Dest, SF); in visitInsertValueInst()
2066 GenericValue Dest; in getConstantExprValue() local
2069 case Instruction::Add: Dest.IntVal = Op0.IntVal + Op1.IntVal; break; in getConstantExprValue()
2070 case Instruction::Sub: Dest.IntVal = Op0.IntVal - Op1.IntVal; break; in getConstantExprValue()
2071 case Instruction::Mul: Dest.IntVal = Op0.IntVal * Op1.IntVal; break; in getConstantExprValue()
2072 case Instruction::FAdd: executeFAddInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2073 case Instruction::FSub: executeFSubInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2074 case Instruction::FMul: executeFMulInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2075 case Instruction::FDiv: executeFDivInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2076 case Instruction::FRem: executeFRemInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2077 case Instruction::SDiv: Dest.IntVal = Op0.IntVal.sdiv(Op1.IntVal); break; in getConstantExprValue()
2078 case Instruction::UDiv: Dest.IntVal = Op0.IntVal.udiv(Op1.IntVal); break; in getConstantExprValue()
2079 case Instruction::URem: Dest.IntVal = Op0.IntVal.urem(Op1.IntVal); break; in getConstantExprValue()
2080 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()
2081 case Instruction::And: Dest.IntVal = Op0.IntVal & Op1.IntVal; break; in getConstantExprValue()
2082 case Instruction::Or: Dest.IntVal = Op0.IntVal | Op1.IntVal; break; in getConstantExprValue()
2083 case Instruction::Xor: Dest.IntVal = Op0.IntVal ^ Op1.IntVal; break; in getConstantExprValue()
2085 Dest.IntVal = Op0.IntVal.shl(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2088 Dest.IntVal = Op0.IntVal.lshr(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2091 Dest.IntVal = Op0.IntVal.ashr(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2097 return Dest; in getConstantExprValue()