Lines Matching defs:SF
41 static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) {
42 SF.Values[V] = Val;
278 ExecutionContext &SF = ECStack.back();
280 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
281 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
300 SetValue(&I, R, SF);
610 ExecutionContext &SF = ECStack.back();
612 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
613 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
641 SetValue(&I, R, SF);
681 ExecutionContext &SF = ECStack.back();
683 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
684 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
786 SetValue(&I, R, SF);
806 ExecutionContext &SF = ECStack.back();
808 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
809 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
810 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
812 SetValue(&I, R, SF);
863 ExecutionContext &SF = ECStack.back();
870 Result = getOperandValue(I.getReturnValue(), SF);
881 ExecutionContext &SF = ECStack.back();
887 if (getOperandValue(Cond, SF).IntVal == 0) // If false cond...
890 SwitchToNewBasicBlock(Dest, SF);
894 ExecutionContext &SF = ECStack.back();
897 GenericValue CondVal = getOperandValue(Cond, SF);
902 GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF);
909 SwitchToNewBasicBlock(Dest, SF);
913 ExecutionContext &SF = ECStack.back();
914 void *Dest = GVTOP(getOperandValue(I.getAddress(), SF));
915 SwitchToNewBasicBlock((BasicBlock*)Dest, SF);
929 void Interpreter::SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF){
930 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from...
931 SF.CurBB = Dest; // Update CurBB to branch destination
932 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr...
934 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do
939 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) {
946 ResultValues.push_back(getOperandValue(IncomingValue, SF));
950 SF.CurInst = SF.CurBB->begin();
951 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) {
952 PHINode *PN = cast<PHINode>(SF.CurInst);
953 SetValue(PN, ResultValues[i], SF);
962 ExecutionContext &SF = ECStack.back();
968 getOperandValue(I.getOperand(0), SF).IntVal.getZExtValue();
984 SetValue(&I, Result, SF);
994 ExecutionContext &SF) {
1011 GenericValue IdxGV = getOperandValue(I.getOperand(), SF);
1027 Result.PointerVal = ((char*)getOperandValue(Ptr, SF).PointerVal) + Total;
1033 ExecutionContext &SF = ECStack.back();
1035 gep_type_begin(I), gep_type_end(I), SF), SF);
1039 ExecutionContext &SF = ECStack.back();
1040 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
1044 SetValue(&I, Result, SF);
1050 ExecutionContext &SF = ECStack.back();
1051 GenericValue Val = getOperandValue(I.getOperand(0), SF);
1052 GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
1064 ExecutionContext &SF = ECStack.back();
1076 SetValue(CS.getInstruction(), ArgIndex, SF);
1082 SetValue(CS.getInstruction(), getOperandValue(*CS.arg_begin(), SF), SF);
1098 SF.CurInst = Parent->begin();
1100 SF.CurInst = me;
1101 ++SF.CurInst;
1107 SF.Caller = CS;
1109 const unsigned NumArgs = SF.Caller.arg_size();
1112 for (CallSite::arg_iterator i = SF.Caller.arg_begin(),
1113 e = SF.Caller.arg_end(); i != e; ++i, ++pNum) {
1115 ArgVals.push_back(getOperandValue(V, SF));
1120 GenericValue SRC = getOperandValue(SF.Caller.getCalledValue(), SF);
1137 ExecutionContext &SF = ECStack.back();
1138 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1139 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1160 SetValue(&I, Dest, SF);
1164 ExecutionContext &SF = ECStack.back();
1165 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1166 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1187 SetValue(&I, Dest, SF);
1191 ExecutionContext &SF = ECStack.back();
1192 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1193 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1214 SetValue(&I, Dest, SF);
1218 ExecutionContext &SF) {
1219 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1238 ExecutionContext &SF) {
1240 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1258 ExecutionContext &SF) {
1260 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1279 ExecutionContext &SF) {
1280 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1302 ExecutionContext &SF) {
1303 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1324 ExecutionContext &SF) {
1326 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1362 ExecutionContext &SF) {
1364 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1399 ExecutionContext &SF) {
1400 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1431 ExecutionContext &SF) {
1432 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1465 ExecutionContext &SF) {
1467 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1475 ExecutionContext &SF) {
1476 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1488 ExecutionContext &SF) {
1493 GenericValue Dest, Src = getOperandValue(SrcVal, SF);
1655 ExecutionContext &SF = ECStack.back();
1656 SetValue(&I, executeTruncInst(I.getOperand(0), I.getType(), SF), SF);
1660 ExecutionContext &SF = ECStack.back();
1661 SetValue(&I, executeSExtInst(I.getOperand(0), I.getType(), SF), SF);
1665 ExecutionContext &SF = ECStack.back();
1666 SetValue(&I, executeZExtInst(I.getOperand(0), I.getType(), SF), SF);
1670 ExecutionContext &SF = ECStack.back();
1671 SetValue(&I, executeFPTruncInst(I.getOperand(0), I.getType(), SF), SF);
1675 ExecutionContext &SF = ECStack.back();
1676 SetValue(&I, executeFPExtInst(I.getOperand(0), I.getType(), SF), SF);
1680 ExecutionContext &SF = ECStack.back();
1681 SF), SF);
1685 ExecutionContext &SF = ECStack.back();
1686 SetValue(&I, executeSIToFPInst(I.getOperand(0), I.getType(), SF), SF);
1690 ExecutionContext &SF = ECStack.back();
1691 SetValue(&I, executeFPToUIInst(I.getOperand(0), I.getType(), SF), SF);
1695 ExecutionContext &SF = ECStack.back();
1696 SetValue(&I, executeFPToSIInst(I.getOperand(0), I.getType(), SF), SF);
1700 ExecutionContext &SF = ECStack.back();
1701 SetValue(&I, executePtrToIntInst(I.getOperand(0), I.getType(), SF), SF);
1705 ExecutionContext &SF = ECStack.back();
1706 SetValue(&I, executeIntToPtrInst(I.getOperand(0), I.getType(), SF), SF);
1710 ExecutionContext &SF = ECStack.back();
1711 SetValue(&I, executeBitCastInst(I.getOperand(0), I.getType(), SF), SF);
1718 ExecutionContext &SF = ECStack.back();
1722 GenericValue VAList = getOperandValue(I.getOperand(0), SF);
1740 SetValue(&I, Dest, SF);
1747 ExecutionContext &SF = ECStack.back();
1748 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1749 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1776 SetValue(&I, Dest, SF);
1780 ExecutionContext &SF = ECStack.back();
1786 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1787 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1788 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
1811 SetValue(&I, Dest, SF);
1815 ExecutionContext &SF = ECStack.back();
1821 GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
1822 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1823 GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
1881 SetValue(&I, Dest, SF);
1885 ExecutionContext &SF = ECStack.back();
1888 GenericValue Src = getOperandValue(Agg, SF);
1923 SetValue(&I, Dest, SF);
1928 ExecutionContext &SF = ECStack.back();
1931 GenericValue Src1 = getOperandValue(Agg, SF);
1932 GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
1970 SetValue(&I, Dest, SF);
1974 ExecutionContext &SF) {
1977 return executeTruncInst(CE->getOperand(0), CE->getType(), SF);
1979 return executeZExtInst(CE->getOperand(0), CE->getType(), SF);
1981 return executeSExtInst(CE->getOperand(0), CE->getType(), SF);
1983 return executeFPTruncInst(CE->getOperand(0), CE->getType(), SF);
1985 return executeFPExtInst(CE->getOperand(0), CE->getType(), SF);
1987 return executeUIToFPInst(CE->getOperand(0), CE->getType(), SF);
1989 return executeSIToFPInst(CE->getOperand(0), CE->getType(), SF);
1991 return executeFPToUIInst(CE->getOperand(0), CE->getType(), SF);
1993 return executeFPToSIInst(CE->getOperand(0), CE->getType(), SF);
1995 return executePtrToIntInst(CE->getOperand(0), CE->getType(), SF);
1997 return executeIntToPtrInst(CE->getOperand(0), CE->getType(), SF);
1999 return executeBitCastInst(CE->getOperand(0), CE->getType(), SF);
2002 gep_type_end(CE), SF);
2006 getOperandValue(CE->getOperand(0), SF),
2007 getOperandValue(CE->getOperand(1), SF),
2010 return executeSelectInst(getOperandValue(CE->getOperand(0), SF),
2011 getOperandValue(CE->getOperand(1), SF),
2012 getOperandValue(CE->getOperand(2), SF),
2020 GenericValue Op0 = getOperandValue(CE->getOperand(0), SF);
2021 GenericValue Op1 = getOperandValue(CE->getOperand(1), SF);
2056 GenericValue Interpreter::getOperandValue(Value *V, ExecutionContext &SF) {
2058 return getConstantExprValue(CE, SF);
2064 return SF.Values[V];
2116 ExecutionContext &SF = ECStack.back(); // Current stack frame
2117 Instruction &I = *SF.CurInst++; // Increment before execute
2130 const GenericValue &Val = SF.Values[&I];