[llvm-commits] CVS: llvm/tools/lli/Interpreter/Execution.cpp Interpreter.h

Brian Gaeke gaeke at cs.uiuc.edu
Fri Sep 5 13:56:07 PDT 2003


Changes in directory llvm/tools/lli/Interpreter:

Execution.cpp updated: 1.96 -> 1.97
Interpreter.h updated: 1.39 -> 1.40

---
Log message:

Make getOperandValue and executeCastOperation methods of Interpreter.
This lets us protect a few more ExecutionEngine methods.


---
Diffs of the changes:

Index: llvm/tools/lli/Interpreter/Execution.cpp
diff -u llvm/tools/lli/Interpreter/Execution.cpp:1.96 llvm/tools/lli/Interpreter/Execution.cpp:1.97
--- llvm/tools/lli/Interpreter/Execution.cpp:1.96	Fri Sep  5 00:22:08 2003
+++ llvm/tools/lli/Interpreter/Execution.cpp	Fri Sep  5 13:55:03 2003
@@ -77,7 +77,7 @@
 				   const Type *Ty);
 
 
-static GenericValue getOperandValue(Value *V, ExecutionContext &SF) {
+GenericValue Interpreter::getOperandValue(Value *V, ExecutionContext &SF) {
   if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
     switch (CE->getOpcode()) {
     case Instruction::Cast:
@@ -840,8 +840,8 @@
    IMPLEMENT_CAST_CASE_FP_IMP(DESTTY, DESTCTY); \
    IMPLEMENT_CAST_CASE_END()
 
-static GenericValue executeCastOperation(Value *SrcVal, const Type *Ty,
-                                         ExecutionContext &SF) {
+GenericValue Interpreter::executeCastOperation(Value *SrcVal, const Type *Ty,
+					       ExecutionContext &SF) {
   const Type *SrcTy = SrcVal->getType();
   GenericValue Dest, Src = getOperandValue(SrcVal, SF);
 


Index: llvm/tools/lli/Interpreter/Interpreter.h
diff -u llvm/tools/lli/Interpreter/Interpreter.h:1.39 llvm/tools/lli/Interpreter/Interpreter.h:1.40
--- llvm/tools/lli/Interpreter/Interpreter.h:1.39	Fri Sep  5 13:42:00 2003
+++ llvm/tools/lli/Interpreter/Interpreter.h	Fri Sep  5 13:55:03 2003
@@ -159,6 +159,9 @@
 
   void initializeExecutionEngine();
   void initializeExternalFunctions();
+  GenericValue getOperandValue(Value *V, ExecutionContext &SF);
+  GenericValue executeCastOperation(Value *SrcVal, const Type *Ty,
+				    ExecutionContext &SF);
 };
 
 #endif





More information about the llvm-commits mailing list