[llvm-commits] CVS: llvm/tools/lli/JIT/JIT.cpp VM.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Sep 3 15:35:09 PDT 2003
Changes in directory llvm/tools/lli/JIT:
JIT.cpp updated: 1.15 -> 1.16
VM.h updated: 1.10 -> 1.11
---
Log message:
ExecutionEngine.cpp: Move execution engine creation stuff into a new
static method here.
Remove some extra blank lines.
ExecutionEngine.h: Add its prototype.
lli.cpp: Call it.
Make creation method for each type of EE into a static method of its
own subclass.
Interpreter/Interpreter.cpp: ExecutionEngine::createInterpreter -->
Interpreter::create
Interpreter/Interpreter.h: Likewise.
JIT/JIT.cpp: ExecutionEngine::createJIT --> VM::create
JIT/VM.h: Likewise.
---
Diffs of the changes:
Index: llvm/tools/lli/JIT/JIT.cpp
diff -u llvm/tools/lli/JIT/JIT.cpp:1.15 llvm/tools/lli/JIT/JIT.cpp:1.16
--- llvm/tools/lli/JIT/JIT.cpp:1.15 Sun Aug 24 14:50:53 2003
+++ llvm/tools/lli/JIT/JIT.cpp Wed Sep 3 15:34:19 2003
@@ -41,11 +41,10 @@
#endif /* NO_JITS_ENABLED */
}
-/// createJIT - Create an return a new JIT compiler if there is one available
-/// for the current target. Otherwise it returns null.
+/// create - Create an return a new JIT compiler if there is one available
+/// for the current target. Otherwise, return null.
///
-ExecutionEngine *ExecutionEngine::createJIT(Module *M) {
-
+ExecutionEngine *VM::create(Module *M) {
TargetMachine* (*TargetMachineAllocator)(const Module &) = 0;
// Allow a command-line switch to override what *should* be the default target
Index: llvm/tools/lli/JIT/VM.h
diff -u llvm/tools/lli/JIT/VM.h:1.10 llvm/tools/lli/JIT/VM.h:1.11
--- llvm/tools/lli/JIT/VM.h:1.10 Thu Aug 21 16:12:30 2003
+++ llvm/tools/lli/JIT/VM.h Wed Sep 3 15:34:19 2003
@@ -26,6 +26,11 @@
VM(Module *M, TargetMachine *tm);
~VM();
+ /// create - Create an return a new JIT compiler if there is one available
+ /// for the current target. Otherwise, return null.
+ ///
+ static ExecutionEngine *create(Module *M);
+
/// run - Start execution with the specified function and arguments.
///
virtual int run(const std::string &FnName,
More information about the llvm-commits
mailing list