Lines Matching refs:GenericValue

42 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) {  in SetValue()
55 static void executeFAddInst(GenericValue &Dest, GenericValue Src1, in executeFAddInst()
56 GenericValue Src2, Type *Ty) { in executeFAddInst()
66 static void executeFSubInst(GenericValue &Dest, GenericValue Src1, in executeFSubInst()
67 GenericValue Src2, Type *Ty) { in executeFSubInst()
77 static void executeFMulInst(GenericValue &Dest, GenericValue Src1, in executeFMulInst()
78 GenericValue Src2, Type *Ty) { in executeFMulInst()
88 static void executeFDivInst(GenericValue &Dest, GenericValue Src1, in executeFDivInst()
89 GenericValue Src2, Type *Ty) { in executeFDivInst()
99 static void executeFRemInst(GenericValue &Dest, GenericValue Src1, in executeFRemInst()
100 GenericValue Src2, Type *Ty) { in executeFRemInst()
138 static GenericValue executeICMP_EQ(GenericValue Src1, GenericValue Src2, in executeICMP_EQ()
140 GenericValue Dest; in executeICMP_EQ()
152 static GenericValue executeICMP_NE(GenericValue Src1, GenericValue Src2, in executeICMP_NE()
154 GenericValue Dest; in executeICMP_NE()
166 static GenericValue executeICMP_ULT(GenericValue Src1, GenericValue Src2, in executeICMP_ULT()
168 GenericValue Dest; in executeICMP_ULT()
180 static GenericValue executeICMP_SLT(GenericValue Src1, GenericValue Src2, in executeICMP_SLT()
182 GenericValue Dest; in executeICMP_SLT()
194 static GenericValue executeICMP_UGT(GenericValue Src1, GenericValue Src2, in executeICMP_UGT()
196 GenericValue Dest; in executeICMP_UGT()
208 static GenericValue executeICMP_SGT(GenericValue Src1, GenericValue Src2, in executeICMP_SGT()
210 GenericValue Dest; in executeICMP_SGT()
222 static GenericValue executeICMP_ULE(GenericValue Src1, GenericValue Src2, in executeICMP_ULE()
224 GenericValue Dest; in executeICMP_ULE()
236 static GenericValue executeICMP_SLE(GenericValue Src1, GenericValue Src2, in executeICMP_SLE()
238 GenericValue Dest; in executeICMP_SLE()
250 static GenericValue executeICMP_UGE(GenericValue Src1, GenericValue Src2, in executeICMP_UGE()
252 GenericValue Dest; in executeICMP_UGE()
264 static GenericValue executeICMP_SGE(GenericValue Src1, GenericValue Src2, in executeICMP_SGE()
266 GenericValue Dest; in executeICMP_SGE()
281 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitICmpInst()
282 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitICmpInst()
283 GenericValue R; // Result in visitICmpInst()
325 static GenericValue executeFCMP_OEQ(GenericValue Src1, GenericValue Src2, in executeFCMP_OEQ()
327 GenericValue Dest; in executeFCMP_OEQ()
375 static GenericValue executeFCMP_ONE(GenericValue Src1, GenericValue Src2, in executeFCMP_ONE()
378 GenericValue Dest; in executeFCMP_ONE()
383 GenericValue DestMask = Dest; in executeFCMP_ONE()
401 static GenericValue executeFCMP_OLE(GenericValue Src1, GenericValue Src2, in executeFCMP_OLE()
403 GenericValue Dest; in executeFCMP_OLE()
415 static GenericValue executeFCMP_OGE(GenericValue Src1, GenericValue Src2, in executeFCMP_OGE()
417 GenericValue Dest; in executeFCMP_OGE()
429 static GenericValue executeFCMP_OLT(GenericValue Src1, GenericValue Src2, in executeFCMP_OLT()
431 GenericValue Dest; in executeFCMP_OLT()
443 static GenericValue executeFCMP_OGT(GenericValue Src1, GenericValue Src2, in executeFCMP_OGT()
445 GenericValue Dest; in executeFCMP_OGT()
470 GenericValue DestMask = Dest; \
478 static GenericValue executeFCMP_UEQ(GenericValue Src1, GenericValue Src2, in executeFCMP_UEQ()
480 GenericValue Dest; in executeFCMP_UEQ()
488 static GenericValue executeFCMP_UNE(GenericValue Src1, GenericValue Src2, in executeFCMP_UNE()
490 GenericValue Dest; in executeFCMP_UNE()
497 static GenericValue executeFCMP_ULE(GenericValue Src1, GenericValue Src2, in executeFCMP_ULE()
499 GenericValue Dest; in executeFCMP_ULE()
506 static GenericValue executeFCMP_UGE(GenericValue Src1, GenericValue Src2, in executeFCMP_UGE()
508 GenericValue Dest; in executeFCMP_UGE()
515 static GenericValue executeFCMP_ULT(GenericValue Src1, GenericValue Src2, in executeFCMP_ULT()
517 GenericValue Dest; in executeFCMP_ULT()
524 static GenericValue executeFCMP_UGT(GenericValue Src1, GenericValue Src2, in executeFCMP_UGT()
526 GenericValue Dest; in executeFCMP_UGT()
533 static GenericValue executeFCMP_ORD(GenericValue Src1, GenericValue Src2, in executeFCMP_ORD()
535 GenericValue Dest; in executeFCMP_ORD()
564 static GenericValue executeFCMP_UNO(GenericValue Src1, GenericValue Src2, in executeFCMP_UNO()
566 GenericValue Dest; in executeFCMP_UNO()
595 static GenericValue executeFCMP_BOOL(GenericValue Src1, GenericValue Src2, in executeFCMP_BOOL()
597 GenericValue Dest; in executeFCMP_BOOL()
613 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitFCmpInst()
614 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitFCmpInst()
615 GenericValue R; // Result in visitFCmpInst()
645 static GenericValue executeCmpInst(unsigned predicate, GenericValue Src1, in executeCmpInst()
646 GenericValue Src2, Type *Ty) { in executeCmpInst()
647 GenericValue Result; in executeCmpInst()
684 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitBinaryOperator()
685 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitBinaryOperator()
686 GenericValue R; // Result in visitBinaryOperator()
790 static GenericValue executeSelectInst(GenericValue Src1, GenericValue Src2, in executeSelectInst()
791 GenericValue Src3, const Type *Ty) { in executeSelectInst()
792 GenericValue Dest; in executeSelectInst()
809 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitSelectInst()
810 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitSelectInst()
811 GenericValue Src3 = getOperandValue(I.getOperand(2), SF); in visitSelectInst()
812 GenericValue R = executeSelectInst(Src1, Src2, Src3, Ty); in visitSelectInst()
820 void Interpreter::exitCalled(GenericValue GV) { in exitCalled()
838 GenericValue Result) { in popStackAndReturnValueToCaller()
866 GenericValue Result; in visitReturnInst()
898 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst()
903 GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF); in visitSwitchInst()
938 std::vector<GenericValue> ResultValues; in SwitchToNewBasicBlock()
983 GenericValue Result = PTOGV(Memory); in visitAllocaInst()
993 GenericValue Interpreter::executeGEPOperation(Value *Ptr, gep_type_iterator I, in executeGEPOperation()
1012 GenericValue IdxGV = getOperandValue(I.getOperand(), SF); in executeGEPOperation()
1027 GenericValue Result; in executeGEPOperation()
1041 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF); in visitLoadInst()
1042 GenericValue *Ptr = (GenericValue*)GVTOP(SRC); in visitLoadInst()
1043 GenericValue Result; in visitLoadInst()
1052 GenericValue Val = getOperandValue(I.getOperand(0), SF); in visitStoreInst()
1053 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF); in visitStoreInst()
1054 StoreValueToMemory(Val, (GenericValue *)GVTOP(SRC), in visitStoreInst()
1074 GenericValue ArgIndex; in visitCallSite()
1109 std::vector<GenericValue> ArgVals; in visitCallSite()
1121 GenericValue SRC = getOperandValue(SF.Caller.getCalledValue(), SF); in visitCallSite()
1139 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitShl()
1140 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitShl()
1141 GenericValue Dest; in visitShl()
1148 GenericValue Result; in visitShl()
1166 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitLShr()
1167 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitLShr()
1168 GenericValue Dest; in visitLShr()
1175 GenericValue Result; in visitLShr()
1193 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitAShr()
1194 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitAShr()
1195 GenericValue Dest; in visitAShr()
1202 GenericValue Result; in visitAShr()
1218 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst()
1220 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeTruncInst()
1238 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst()
1241 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSExtInst()
1258 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst()
1261 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeZExtInst()
1279 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst()
1281 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPTruncInst()
1302 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy, in executeFPExtInst()
1304 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPExtInst()
1324 GenericValue Interpreter::executeFPToUIInst(Value *SrcVal, Type *DstTy, in executeFPToUIInst()
1327 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToUIInst()
1362 GenericValue Interpreter::executeFPToSIInst(Value *SrcVal, Type *DstTy, in executeFPToSIInst()
1365 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeFPToSIInst()
1399 GenericValue Interpreter::executeUIToFPInst(Value *SrcVal, Type *DstTy, in executeUIToFPInst()
1401 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeUIToFPInst()
1431 GenericValue Interpreter::executeSIToFPInst(Value *SrcVal, Type *DstTy, in executeSIToFPInst()
1433 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeSIToFPInst()
1465 GenericValue Interpreter::executePtrToIntInst(Value *SrcVal, Type *DstTy, in executePtrToIntInst()
1468 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executePtrToIntInst()
1475 GenericValue Interpreter::executeIntToPtrInst(Value *SrcVal, Type *DstTy, in executeIntToPtrInst()
1477 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeIntToPtrInst()
1488 GenericValue Interpreter::executeBitCastInst(Value *SrcVal, Type *DstTy, in executeBitCastInst()
1494 GenericValue Dest, Src = getOperandValue(SrcVal, SF); in executeBitCastInst()
1501 GenericValue TempDst, TempSrc, SrcVec; in executeBitCastInst()
1560 GenericValue Elt; in executeBitCastInst()
1581 GenericValue Elt; in executeBitCastInst()
1723 GenericValue VAList = getOperandValue(I.getOperand(0), SF); in visitVAArgInst()
1724 GenericValue Dest; in visitVAArgInst()
1725 GenericValue Src = ECStack[VAList.UIntPairVal.first] in visitVAArgInst()
1749 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitExtractElementInst()
1750 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitExtractElementInst()
1751 GenericValue Dest; in visitExtractElementInst()
1787 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitInsertElementInst()
1788 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitInsertElementInst()
1789 GenericValue Src3 = getOperandValue(I.getOperand(2), SF); in visitInsertElementInst()
1790 GenericValue Dest; in visitInsertElementInst()
1822 GenericValue Src1 = getOperandValue(I.getOperand(0), SF); in visitShuffleVectorInst()
1823 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitShuffleVectorInst()
1824 GenericValue Src3 = getOperandValue(I.getOperand(2), SF); in visitShuffleVectorInst()
1825 GenericValue Dest; in visitShuffleVectorInst()
1888 GenericValue Dest; in visitExtractValueInst()
1889 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst()
1893 GenericValue *pSrc = &Src; in visitExtractValueInst()
1932 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst()
1933 GenericValue Src2 = getOperandValue(I.getOperand(1), SF); in visitInsertValueInst()
1934 GenericValue Dest = Src1; // Dest is a slightly changed Src1 in visitInsertValueInst()
1939 GenericValue *pDest = &Dest; in visitInsertValueInst()
1974 GenericValue Interpreter::getConstantExprValue (ConstantExpr *CE, in getConstantExprValue()
2021 GenericValue Op0 = getOperandValue(CE->getOperand(0), SF); in getConstantExprValue()
2022 GenericValue Op1 = getOperandValue(CE->getOperand(1), SF); in getConstantExprValue()
2023 GenericValue Dest; in getConstantExprValue()
2057 GenericValue Interpreter::getOperandValue(Value *V, ExecutionContext &SF) { in getOperandValue()
2077 const std::vector<GenericValue> &ArgVals) { in callFunction()
2088 GenericValue Result = callExternalFunction (F, ArgVals); in callFunction()
2131 const GenericValue &Val = SF.Values[&I]; in run()