aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/JIT.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-27 21:40:39 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-27 21:40:39 +0000
commitabb027cf412944db4d27579ba3ae00717d23c25e (patch)
tree1e0a20941a899d4d70b9f7f7baeed26d520ebbe6 /lib/ExecutionEngine/JIT/JIT.h
parent68d9ed8b763d8200e860a58789b0596166bd978e (diff)
Allow for specification of which JIT to run on the commandline.
`lli -march=x86' or `lli -march=sparc' will forcefully select the JIT even on a different platform. Running lli without the -march option will select the JIT for the platform that it's currently running on. Pro: can test Sparc JIT (debug printing mode) on X86 -- faster to compile/link LLVM source base to test changes. Con: Linking lli on x86 now pulls in all the Sparc libs -> longer link time (but X86 can bear it, right?) In the future, perhaps this should be a ./configure option to enable/disable target JITting... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.h')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.h b/lib/ExecutionEngine/JIT/JIT.h
index a720c960f3..58b7a3895b 100644
--- a/lib/ExecutionEngine/JIT/JIT.h
+++ b/lib/ExecutionEngine/JIT/JIT.h
@@ -62,7 +62,8 @@ public:
static void runAtExitHandlers();
private:
- static MachineCodeEmitter *createEmitter(VM &V);
+ static MachineCodeEmitter *createX86Emitter(VM &V);
+ static MachineCodeEmitter *createSparcEmitter(VM &V);
void setupPassManager();
void *getPointerToFunction(const Function *F);