Lines Matching refs:Dest
52 Dest.TY##Val = Src1.TY##Val OP Src2.TY##Val; \
55 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, in executeFAddInst() argument
66 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, in executeFSubInst() argument
77 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, in executeFMulInst() argument
88 static void executeFDivInst(GenericValue &Dest, GenericValue Src1, in executeFDivInst() argument
99 static void executeFRemInst(GenericValue &Dest, GenericValue Src1, in executeFRemInst() argument
103 Dest.FloatVal = fmod(Src1.FloatVal, Src2.FloatVal); in executeFRemInst()
106 Dest.DoubleVal = fmod(Src1.DoubleVal, Src2.DoubleVal); in executeFRemInst()
116 Dest.IntVal = APInt(1,Src1.IntVal.OP(Src2.IntVal)); \
122 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); \
124 Dest.AggregateVal[_i].IntVal = APInt(1, \
134 Dest.IntVal = APInt(1,(void*)(intptr_t)Src1.PointerVal OP \
140 GenericValue Dest; in executeICMP_EQ() local
149 return Dest; in executeICMP_EQ()
154 GenericValue Dest; in executeICMP_NE() local
163 return Dest; in executeICMP_NE()
168 GenericValue Dest; in executeICMP_ULT() local
177 return Dest; in executeICMP_ULT()
182 GenericValue Dest; in executeICMP_SLT() local
191 return Dest; in executeICMP_SLT()
196 GenericValue Dest; in executeICMP_UGT() local
205 return Dest; in executeICMP_UGT()
210 GenericValue Dest; in executeICMP_SGT() local
219 return Dest; in executeICMP_SGT()
224 GenericValue Dest; in executeICMP_ULE() local
233 return Dest; in executeICMP_ULE()
238 GenericValue Dest; in executeICMP_SLE() local
247 return Dest; in executeICMP_SLE()
252 GenericValue Dest; in executeICMP_UGE() local
261 return Dest; in executeICMP_UGE()
266 GenericValue Dest; in executeICMP_SGE() local
275 return Dest; in executeICMP_SGE()
306 Dest.IntVal = APInt(1,Src1.TY##Val OP Src2.TY##Val); \
311 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); \
313 Dest.AggregateVal[_i].IntVal = APInt(1, \
327 GenericValue Dest; in executeFCMP_OEQ() local
336 return Dest; in executeFCMP_OEQ()
342 Dest.IntVal = APInt(1,false); \
343 return Dest; \
347 Dest.IntVal = APInt(1,false); \
348 return Dest; \
354 Dest.AggregateVal.resize( X.AggregateVal.size() ); \
358 Dest.AggregateVal[_i].IntVal = APInt(1,FLAG); \
360 Dest.AggregateVal[_i].IntVal = APInt(1,!FLAG); \
378 GenericValue Dest; in executeFCMP_ONE() local
383 GenericValue DestMask = Dest; in executeFCMP_ONE()
396 Dest.AggregateVal[_i].IntVal = APInt(1,false); in executeFCMP_ONE()
398 return Dest; in executeFCMP_ONE()
403 GenericValue Dest; in executeFCMP_OLE() local
412 return Dest; in executeFCMP_OLE()
417 GenericValue Dest; in executeFCMP_OGE() local
426 return Dest; in executeFCMP_OGE()
431 GenericValue Dest; in executeFCMP_OLT() local
440 return Dest; in executeFCMP_OLT()
445 GenericValue Dest; in executeFCMP_OGT() local
454 return Dest; in executeFCMP_OGT()
460 Dest.IntVal = APInt(1,true); \
461 return Dest; \
464 Dest.IntVal = APInt(1,true); \
465 return Dest; \
470 GenericValue DestMask = Dest; \
471 Dest = FUNC(Src1, Src2, Ty); \
474 Dest.AggregateVal[_i].IntVal = APInt(1, true); \
475 return Dest; \
480 GenericValue Dest; in executeFCMP_UEQ() local
490 GenericValue Dest; in executeFCMP_UNE() local
499 GenericValue Dest; in executeFCMP_ULE() local
508 GenericValue Dest; in executeFCMP_UGE() local
517 GenericValue Dest; in executeFCMP_ULT() local
526 GenericValue Dest; in executeFCMP_UGT() local
535 GenericValue Dest; in executeFCMP_ORD() local
538 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_ORD()
541 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_ORD()
548 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_ORD()
555 Dest.IntVal = APInt(1,(Src1.FloatVal == Src1.FloatVal && in executeFCMP_ORD()
558 Dest.IntVal = APInt(1,(Src1.DoubleVal == Src1.DoubleVal && in executeFCMP_ORD()
561 return Dest; in executeFCMP_ORD()
566 GenericValue Dest; in executeFCMP_UNO() local
569 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_UNO()
572 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_UNO()
579 Dest.AggregateVal[_i].IntVal = APInt(1, in executeFCMP_UNO()
586 Dest.IntVal = APInt(1,(Src1.FloatVal != Src1.FloatVal || in executeFCMP_UNO()
589 Dest.IntVal = APInt(1,(Src1.DoubleVal != Src1.DoubleVal || in executeFCMP_UNO()
592 return Dest; in executeFCMP_UNO()
597 GenericValue Dest; in executeFCMP_BOOL() local
600 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeFCMP_BOOL()
602 Dest.AggregateVal[_i].IntVal = APInt(1,val); in executeFCMP_BOOL()
604 Dest.IntVal = APInt(1, val); in executeFCMP_BOOL()
607 return Dest; in executeFCMP_BOOL()
792 GenericValue Dest; in executeSelectInst() local
796 Dest.AggregateVal.resize( Src1.AggregateVal.size() ); in executeSelectInst()
798 Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ? in executeSelectInst()
801 Dest = (Src1.IntVal == 0) ? Src3 : Src2; in executeSelectInst()
803 return Dest; in executeSelectInst()
883 BasicBlock *Dest; in visitBranchInst() local
885 Dest = I.getSuccessor(0); // Uncond branches have a fixed dest... in visitBranchInst()
889 Dest = I.getSuccessor(1); in visitBranchInst()
891 SwitchToNewBasicBlock(Dest, SF); in visitBranchInst()
901 BasicBlock *Dest = nullptr; in visitSwitchInst() local
905 Dest = cast<BasicBlock>(i.getCaseSuccessor()); in visitSwitchInst()
909 if (!Dest) Dest = I.getDefaultDest(); // No cases matched: use default in visitSwitchInst()
910 SwitchToNewBasicBlock(Dest, SF); in visitSwitchInst()
915 void *Dest = GVTOP(getOperandValue(I.getAddress(), SF)); in visitIndirectBrInst() local
916 SwitchToNewBasicBlock((BasicBlock*)Dest, SF); in visitIndirectBrInst()
930 void Interpreter::SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF){ in SwitchToNewBasicBlock() argument
932 SF.CurBB = Dest; // Update CurBB to branch destination in SwitchToNewBasicBlock()
1141 GenericValue Dest; in visitShl() local
1152 Dest.AggregateVal.push_back(Result); in visitShl()
1158 Dest.IntVal = valueToShift.shl(getShiftAmount(shiftAmount, valueToShift)); in visitShl()
1161 SetValue(&I, Dest, SF); in visitShl()
1168 GenericValue Dest; in visitLShr() local
1179 Dest.AggregateVal.push_back(Result); in visitLShr()
1185 Dest.IntVal = valueToShift.lshr(getShiftAmount(shiftAmount, valueToShift)); in visitLShr()
1188 SetValue(&I, Dest, SF); in visitLShr()
1195 GenericValue Dest; in visitAShr() local
1206 Dest.AggregateVal.push_back(Result); in visitAShr()
1212 Dest.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr()
1215 SetValue(&I, Dest, SF); in visitAShr()
1220 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst() local
1227 Dest.AggregateVal.resize(NumElts); in executeTruncInst()
1229 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth); in executeTruncInst()
1233 Dest.IntVal = Src.IntVal.trunc(DBitWidth); in executeTruncInst()
1235 return Dest; in executeTruncInst()
1241 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst() local
1247 Dest.AggregateVal.resize(size); in executeSExtInst()
1249 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth); in executeSExtInst()
1253 Dest.IntVal = Src.IntVal.sext(DBitWidth); in executeSExtInst()
1255 return Dest; in executeSExtInst()
1261 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst() local
1268 Dest.AggregateVal.resize(size); in executeZExtInst()
1270 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth); in executeZExtInst()
1274 Dest.IntVal = Src.IntVal.zext(DBitWidth); in executeZExtInst()
1276 return Dest; in executeZExtInst()
1281 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPTruncInst() local
1290 Dest.AggregateVal.resize(size); in executeFPTruncInst()
1292 Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal; in executeFPTruncInst()
1296 Dest.FloatVal = (float)Src.DoubleVal; in executeFPTruncInst()
1299 return Dest; in executeFPTruncInst()
1304 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPExtInst() local
1312 Dest.AggregateVal.resize(size); in executeFPExtInst()
1314 Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal; in executeFPExtInst()
1318 Dest.DoubleVal = (double)Src.FloatVal; in executeFPExtInst()
1321 return Dest; in executeFPExtInst()
1327 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToUIInst() local
1335 Dest.AggregateVal.resize(size); in executeFPToUIInst()
1340 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt( in executeFPToUIInst()
1344 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt( in executeFPToUIInst()
1353 Dest.IntVal = APIntOps::RoundFloatToAPInt(Src.FloatVal, DBitWidth); in executeFPToUIInst()
1355 Dest.IntVal = APIntOps::RoundDoubleToAPInt(Src.DoubleVal, DBitWidth); in executeFPToUIInst()
1359 return Dest; in executeFPToUIInst()
1365 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToSIInst() local
1373 Dest.AggregateVal.resize(size); in executeFPToSIInst()
1378 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt( in executeFPToSIInst()
1382 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt( in executeFPToSIInst()
1391 Dest.IntVal = APIntOps::RoundFloatToAPInt(Src.FloatVal, DBitWidth); in executeFPToSIInst()
1393 Dest.IntVal = APIntOps::RoundDoubleToAPInt(Src.DoubleVal, DBitWidth); in executeFPToSIInst()
1396 return Dest; in executeFPToSIInst()
1401 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeUIToFPInst() local
1407 Dest.AggregateVal.resize(size); in executeUIToFPInst()
1412 Dest.AggregateVal[i].FloatVal = in executeUIToFPInst()
1416 Dest.AggregateVal[i].DoubleVal = in executeUIToFPInst()
1423 Dest.FloatVal = APIntOps::RoundAPIntToFloat(Src.IntVal); in executeUIToFPInst()
1425 Dest.DoubleVal = APIntOps::RoundAPIntToDouble(Src.IntVal); in executeUIToFPInst()
1428 return Dest; in executeUIToFPInst()
1433 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSIToFPInst() local
1439 Dest.AggregateVal.resize(size); in executeSIToFPInst()
1444 Dest.AggregateVal[i].FloatVal = in executeSIToFPInst()
1448 Dest.AggregateVal[i].DoubleVal = in executeSIToFPInst()
1456 Dest.FloatVal = APIntOps::RoundSignedAPIntToFloat(Src.IntVal); in executeSIToFPInst()
1458 Dest.DoubleVal = APIntOps::RoundSignedAPIntToDouble(Src.IntVal); in executeSIToFPInst()
1462 return Dest; in executeSIToFPInst()
1468 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executePtrToIntInst() local
1471 Dest.IntVal = APInt(DBitWidth, (intptr_t) Src.PointerVal); in executePtrToIntInst()
1472 return Dest; in executePtrToIntInst()
1477 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeIntToPtrInst() local
1484 Dest.PointerVal = PointerTy(intptr_t(Src.IntVal.getZExtValue())); in executeIntToPtrInst()
1485 return Dest; in executeIntToPtrInst()
1494 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeBitCastInst() local
1597 Dest.AggregateVal.resize(DstNum); in executeBitCastInst()
1599 Dest.AggregateVal[i].DoubleVal = in executeBitCastInst()
1602 Dest.AggregateVal.resize(DstNum); in executeBitCastInst()
1604 Dest.AggregateVal[i].FloatVal = in executeBitCastInst()
1607 Dest = TempDst; in executeBitCastInst()
1611 Dest.DoubleVal = TempDst.AggregateVal[0].IntVal.bitsToDouble(); in executeBitCastInst()
1613 Dest.FloatVal = TempDst.AggregateVal[0].IntVal.bitsToFloat(); in executeBitCastInst()
1615 Dest.IntVal = TempDst.AggregateVal[0].IntVal; in executeBitCastInst()
1624 Dest.PointerVal = Src.PointerVal; in executeBitCastInst()
1627 Dest.IntVal = APInt::floatToBits(Src.FloatVal); in executeBitCastInst()
1629 Dest.IntVal = APInt::doubleToBits(Src.DoubleVal); in executeBitCastInst()
1631 Dest.IntVal = Src.IntVal; in executeBitCastInst()
1637 Dest.FloatVal = Src.IntVal.bitsToFloat(); in executeBitCastInst()
1639 Dest.FloatVal = Src.FloatVal; in executeBitCastInst()
1643 Dest.DoubleVal = Src.IntVal.bitsToDouble(); in executeBitCastInst()
1645 Dest.DoubleVal = Src.DoubleVal; in executeBitCastInst()
1652 return Dest; in executeBitCastInst()
1716 case Type::TY##TyID: Dest.TY##Val = Src.TY##Val; break
1724 GenericValue Dest; in visitVAArgInst() local
1730 Dest.IntVal = Src.IntVal; in visitVAArgInst()
1741 SetValue(&I, Dest, SF); in visitVAArgInst()
1751 GenericValue Dest; in visitExtractElementInst() local
1764 Dest.IntVal = Src1.AggregateVal[indx].IntVal; in visitExtractElementInst()
1767 Dest.FloatVal = Src1.AggregateVal[indx].FloatVal; in visitExtractElementInst()
1770 Dest.DoubleVal = Src1.AggregateVal[indx].DoubleVal; in visitExtractElementInst()
1777 SetValue(&I, Dest, SF); in visitExtractElementInst()
1790 GenericValue Dest; in visitInsertElementInst() local
1795 Dest.AggregateVal = Src1.AggregateVal; in visitInsertElementInst()
1803 Dest.AggregateVal[indx].IntVal = Src2.IntVal; in visitInsertElementInst()
1806 Dest.AggregateVal[indx].FloatVal = Src2.FloatVal; in visitInsertElementInst()
1809 Dest.AggregateVal[indx].DoubleVal = Src2.DoubleVal; in visitInsertElementInst()
1812 SetValue(&I, Dest, SF); in visitInsertElementInst()
1825 GenericValue Dest; in visitShuffleVectorInst() local
1836 Dest.AggregateVal.resize(src3Size); in visitShuffleVectorInst()
1846 Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal; in visitShuffleVectorInst()
1848 Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal; in visitShuffleVectorInst()
1862 Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal; in visitShuffleVectorInst()
1864 Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal; in visitShuffleVectorInst()
1873 Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal; in visitShuffleVectorInst()
1875 Dest.AggregateVal[i].DoubleVal = in visitShuffleVectorInst()
1882 SetValue(&I, Dest, SF); in visitShuffleVectorInst()
1888 GenericValue Dest; in visitExtractValueInst() local
1906 Dest.IntVal = pSrc->IntVal; in visitExtractValueInst()
1909 Dest.FloatVal = pSrc->FloatVal; in visitExtractValueInst()
1912 Dest.DoubleVal = pSrc->DoubleVal; in visitExtractValueInst()
1917 Dest.AggregateVal = pSrc->AggregateVal; in visitExtractValueInst()
1920 Dest.PointerVal = pSrc->PointerVal; in visitExtractValueInst()
1924 SetValue(&I, Dest, SF); in visitExtractValueInst()
1934 GenericValue Dest = Src1; // Dest is a slightly changed Src1 in visitInsertValueInst() local
1939 GenericValue *pDest = &Dest; in visitInsertValueInst()
1971 SetValue(&I, Dest, SF); in visitInsertValueInst()
2023 GenericValue Dest; in getConstantExprValue() local
2026 case Instruction::Add: Dest.IntVal = Op0.IntVal + Op1.IntVal; break; in getConstantExprValue()
2027 case Instruction::Sub: Dest.IntVal = Op0.IntVal - Op1.IntVal; break; in getConstantExprValue()
2028 case Instruction::Mul: Dest.IntVal = Op0.IntVal * Op1.IntVal; break; in getConstantExprValue()
2029 case Instruction::FAdd: executeFAddInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2030 case Instruction::FSub: executeFSubInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2031 case Instruction::FMul: executeFMulInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2032 case Instruction::FDiv: executeFDivInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2033 case Instruction::FRem: executeFRemInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2034 case Instruction::SDiv: Dest.IntVal = Op0.IntVal.sdiv(Op1.IntVal); break; in getConstantExprValue()
2035 case Instruction::UDiv: Dest.IntVal = Op0.IntVal.udiv(Op1.IntVal); break; in getConstantExprValue()
2036 case Instruction::URem: Dest.IntVal = Op0.IntVal.urem(Op1.IntVal); break; in getConstantExprValue()
2037 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()
2038 case Instruction::And: Dest.IntVal = Op0.IntVal & Op1.IntVal; break; in getConstantExprValue()
2039 case Instruction::Or: Dest.IntVal = Op0.IntVal | Op1.IntVal; break; in getConstantExprValue()
2040 case Instruction::Xor: Dest.IntVal = Op0.IntVal ^ Op1.IntVal; break; in getConstantExprValue()
2042 Dest.IntVal = Op0.IntVal.shl(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2045 Dest.IntVal = Op0.IntVal.lshr(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2048 Dest.IntVal = Op0.IntVal.ashr(Op1.IntVal.getZExtValue()); in getConstantExprValue()
2054 return Dest; in getConstantExprValue()