diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-08 08:11:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-08 08:11:34 +0000 |
commit | 7ff05bf5413b054da64540f61820ed54d4ac354d (patch) | |
tree | 49aafce5c45d44530e8c6bbf7706a1d4a3a1a7fb /llvm/lib/ExecutionEngine/JIT/JIT.h | |
parent | 38aa7de6e9b503d3ed9e2196b8bdb3d8819eefdc (diff) | |
download | bcm5719-llvm-7ff05bf5413b054da64540f61820ed54d4ac354d.tar.gz bcm5719-llvm-7ff05bf5413b054da64540f61820ed54d4ac354d.zip |
Add new parameter Fast to createJIT to enable the fast codegen path.
llvm-svn: 54523
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.h b/llvm/lib/ExecutionEngine/JIT/JIT.h index 6e6b8c2befe..41fa9bd0028 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.h +++ b/llvm/lib/ExecutionEngine/JIT/JIT.h @@ -56,7 +56,7 @@ class JIT : public ExecutionEngine { JITState *jitstate; JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji, - JITMemoryManager *JMM); + JITMemoryManager *JMM, bool Fast); public: ~JIT(); @@ -71,8 +71,9 @@ public: /// create - Create an return a new JIT compiler if there is one available /// for the current target. Otherwise, return null. /// - static ExecutionEngine *create(ModuleProvider *MP, std::string *Err) { - return createJIT(MP, Err, 0); + static ExecutionEngine *create(ModuleProvider *MP, std::string *Err, + bool Fast = false) { + return createJIT(MP, Err, 0, Fast); } virtual void addModuleProvider(ModuleProvider *MP); @@ -128,7 +129,7 @@ public: MachineCodeEmitter *getCodeEmitter() const { return MCE; } static ExecutionEngine *createJIT(ModuleProvider *MP, std::string *Err, - JITMemoryManager *JMM); + JITMemoryManager *JMM, bool Fast); private: static MachineCodeEmitter *createEmitter(JIT &J, JITMemoryManager *JMM); |