Lines Matching refs:SF

42 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) {
43 SF.Values[V] = Val;
279 ExecutionContext &SF = ECStack.back();
281 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
282 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
301 SetValue(&I, R, SF);
611 ExecutionContext &SF = ECStack.back();
613 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
614 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
642 SetValue(&I, R, SF);
682 ExecutionContext &SF = ECStack.back();
684 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
685 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
787 SetValue(&I, R, SF);
807 ExecutionContext &SF = ECStack.back();
809 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
810 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
811 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
813 SetValue(&I, R, SF);
864 ExecutionContext &SF = ECStack.back();
871 Result = getOperandValue(I.getReturnValue(), SF);
882 ExecutionContext &SF = ECStack.back();
888 if (getOperandValue(Cond, SF).IntVal == 0) // If false cond...
891 SwitchToNewBasicBlock(Dest, SF);
895 ExecutionContext &SF = ECStack.back();
898 GenericValue CondVal = getOperandValue(Cond, SF);
903 GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF);
910 SwitchToNewBasicBlock(Dest, SF);
914 ExecutionContext &SF = ECStack.back();
915 void *Dest = GVTOP(getOperandValue(I.getAddress(), SF));
916 SwitchToNewBasicBlock((BasicBlock*)Dest, SF);
930 void Interpreter::SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF){
931 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from...
932 SF.CurBB = Dest; // Update CurBB to branch destination
933 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr...
935 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do
940 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) {
947 ResultValues.push_back(getOperandValue(IncomingValue, SF));
951 SF.CurInst = SF.CurBB->begin();
952 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) {
953 PHINode *PN = cast<PHINode>(SF.CurInst);
954 SetValue(PN, ResultValues[i], SF);
963 ExecutionContext &SF = ECStack.back();
969 getOperandValue(I.getOperand(0), SF).IntVal.getZExtValue();
985 SetValue(&I, Result, SF);
995 ExecutionContext &SF) {
1012 GenericValue IdxGV = getOperandValue(I.getOperand(), SF);
1028 Result.PointerVal = ((char*)getOperandValue(Ptr, SF).PointerVal) + Total;
1034 ExecutionContext &SF = ECStack.back();
1036 gep_type_begin(I), gep_type_end(I), SF), SF);
1040 ExecutionContext &SF = ECStack.back();
1041 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
1045 SetValue(&I, Result, SF);
1051 ExecutionContext &SF = ECStack.back();
1052 GenericValue Val = getOperandValue(I.getOperand(0), SF);
1053 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
1065 ExecutionContext &SF = ECStack.back();
1077 SetValue(CS.getInstruction(), ArgIndex, SF);
1083 SetValue(CS.getInstruction(), getOperandValue(*CS.arg_begin(), SF), SF);
1099 SF.CurInst = Parent->begin();
1101 SF.CurInst = me;
1102 ++SF.CurInst;
1108 SF.Caller = CS;
1110 const unsigned NumArgs = SF.Caller.arg_size();
1113 for (CallSite::arg_iterator i = SF.Caller.arg_begin(),
1114 e = SF.Caller.arg_end(); i != e; ++i, ++pNum) {
1116 ArgVals.push_back(getOperandValue(V, SF));
1121 GenericValue SRC = getOperandValue(SF.Caller.getCalledValue(), SF);
1138 ExecutionContext &SF = ECStack.back();
1139 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1140 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1161 SetValue(&I, Dest, SF);
1165 ExecutionContext &SF = ECStack.back();
1166 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1167 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1188 SetValue(&I, Dest, SF);
1192 ExecutionContext &SF = ECStack.back();
1193 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1194 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1215 SetValue(&I, Dest, SF);
1219 ExecutionContext &SF) {
1220 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1239 ExecutionContext &SF) {
1241 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1259 ExecutionContext &SF) {
1261 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1280 ExecutionContext &SF) {
1281 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1303 ExecutionContext &SF) {
1304 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1325 ExecutionContext &SF) {
1327 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1363 ExecutionContext &SF) {
1365 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1400 ExecutionContext &SF) {
1401 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1432 ExecutionContext &SF) {
1433 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1466 ExecutionContext &SF) {
1468 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1476 ExecutionContext &SF) {
1477 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1489 ExecutionContext &SF) {
1494 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1656 ExecutionContext &SF = ECStack.back();
1657 SetValue(&I, executeTruncInst(I.getOperand(0), I.getType(), SF), SF);
1661 ExecutionContext &SF = ECStack.back();
1662 SetValue(&I, executeSExtInst(I.getOperand(0), I.getType(), SF), SF);
1666 ExecutionContext &SF = ECStack.back();
1667 SetValue(&I, executeZExtInst(I.getOperand(0), I.getType(), SF), SF);
1671 ExecutionContext &SF = ECStack.back();
1672 SetValue(&I, executeFPTruncInst(I.getOperand(0), I.getType(), SF), SF);
1676 ExecutionContext &SF = ECStack.back();
1677 SetValue(&I, executeFPExtInst(I.getOperand(0), I.getType(), SF), SF);
1681 ExecutionContext &SF = ECStack.back();
1682 SetValue(&I, executeUIToFPInst(I.getOperand(0), I.getType(), SF), SF);
1686 ExecutionContext &SF = ECStack.back();
1687 SetValue(&I, executeSIToFPInst(I.getOperand(0), I.getType(), SF), SF);
1691 ExecutionContext &SF = ECStack.back();
1692 SetValue(&I, executeFPToUIInst(I.getOperand(0), I.getType(), SF), SF);
1696 ExecutionContext &SF = ECStack.back();
1697 SetValue(&I, executeFPToSIInst(I.getOperand(0), I.getType(), SF), SF);
1701 ExecutionContext &SF = ECStack.back();
1702 SetValue(&I, executePtrToIntInst(I.getOperand(0), I.getType(), SF), SF);
1706 ExecutionContext &SF = ECStack.back();
1707 SetValue(&I, executeIntToPtrInst(I.getOperand(0), I.getType(), SF), SF);
1711 ExecutionContext &SF = ECStack.back();
1712 SetValue(&I, executeBitCastInst(I.getOperand(0), I.getType(), SF), SF);
1719 ExecutionContext &SF = ECStack.back();
1723 GenericValue VAList = getOperandValue(I.getOperand(0), SF);
1741 SetValue(&I, Dest, SF);
1748 ExecutionContext &SF = ECStack.back();
1749 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1750 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1777 SetValue(&I, Dest, SF);
1781 ExecutionContext &SF = ECStack.back();
1787 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1788 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1789 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
1812 SetValue(&I, Dest, SF);
1816 ExecutionContext &SF = ECStack.back();
1822 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1823 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1824 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
1882 SetValue(&I, Dest, SF);
1886 ExecutionContext &SF = ECStack.back();
1889 GenericValue Src = getOperandValue(Agg, SF);
1924 SetValue(&I, Dest, SF);
1929 ExecutionContext &SF = ECStack.back();
1932 GenericValue Src1 = getOperandValue(Agg, SF);
1933 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1971 SetValue(&I, Dest, SF);
1975 ExecutionContext &SF) {
1978 return executeTruncInst(CE->getOperand(0), CE->getType(), SF);
1980 return executeZExtInst(CE->getOperand(0), CE->getType(), SF);
1982 return executeSExtInst(CE->getOperand(0), CE->getType(), SF);
1984 return executeFPTruncInst(CE->getOperand(0), CE->getType(), SF);
1986 return executeFPExtInst(CE->getOperand(0), CE->getType(), SF);
1988 return executeUIToFPInst(CE->getOperand(0), CE->getType(), SF);
1990 return executeSIToFPInst(CE->getOperand(0), CE->getType(), SF);
1992 return executeFPToUIInst(CE->getOperand(0), CE->getType(), SF);
1994 return executeFPToSIInst(CE->getOperand(0), CE->getType(), SF);
1996 return executePtrToIntInst(CE->getOperand(0), CE->getType(), SF);
1998 return executeIntToPtrInst(CE->getOperand(0), CE->getType(), SF);
2000 return executeBitCastInst(CE->getOperand(0), CE->getType(), SF);
2003 gep_type_end(CE), SF);
2007 getOperandValue(CE->getOperand(0), SF),
2008 getOperandValue(CE->getOperand(1), SF),
2011 return executeSelectInst(getOperandValue(CE->getOperand(0), SF),
2012 getOperandValue(CE->getOperand(1), SF),
2013 getOperandValue(CE->getOperand(2), SF),
2021 GenericValue Op0 = getOperandValue(CE->getOperand(0), SF);
2022 GenericValue Op1 = getOperandValue(CE->getOperand(1), SF);
2057 GenericValue Interpreter::getOperandValue(Value *V, ExecutionContext &SF) {
2059 return getConstantExprValue(CE, SF);
2065 return SF.Values[V];
2116 ExecutionContext &SF = ECStack.back(); // Current stack frame
2117 Instruction &I = *SF.CurInst++; // Increment before execute