[llvm-commits] CVS: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h

Chris Lattner lattner at cs.uiuc.edu
Fri Dec 26 00:13:01 PST 2003


Changes in directory llvm/include/llvm/ExecutionEngine:

ExecutionEngine.h updated: 1.22 -> 1.23

---
Log message:

Rename 'run' to 'runFunction' to emphasize that it is usable to run any
function in a module, not just main


---
Diffs of the changes:  (+8 -6)

Index: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
diff -u llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.22 llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.23
--- llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.22	Fri Dec 19 21:35:50 2003
+++ llvm/include/llvm/ExecutionEngine/ExecutionEngine.h	Fri Dec 26 00:12:25 2003
@@ -53,13 +53,15 @@
   Module &getModule() const { return CurMod; }
   const TargetData &getTargetData() const { return *TD; }
 
-  /// run - Start execution with the specified function, arguments, and
-  ///       environment.
-  ///
-  virtual GenericValue run(Function *F,
-                           const std::vector<GenericValue> &ArgValues) = 0;
-
+  /// create - This is the factory method for creating an execution engine which
+  /// is appropriate for the current machine.
   static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter);
+
+  /// runFunction - Execute the specified function with the specified arguments,
+  /// and return the result.
+  ///
+  virtual GenericValue runFunction(Function *F,
+                                const std::vector<GenericValue> &ArgValues) = 0;
 
   void addGlobalMapping(const GlobalValue *GV, void *Addr) {
     void *&CurVal = GlobalAddress[GV];





More information about the llvm-commits mailing list