diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-04-29 00:32:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-04-29 00:32:19 +0000 |
commit | 5e5cb7985de2508ecd707568afbcbb39e8a688fc (patch) | |
tree | b2b8093f6164c54fc565d56222bc42af25b94f9f /lib/ExecutionEngine/JIT/JIT.h | |
parent | be8cc2a3dedeb7685f07e68cdc4b9502eb97eb2b (diff) |
The second part of the change from -fast to -O#. This changes the JIT to accept
an optimization level instead of a simple boolean telling it to generate code
"fast" or the other type of "fast".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.h')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.h b/lib/ExecutionEngine/JIT/JIT.h index e0c74f8738..b3ae82c58c 100644 --- a/lib/ExecutionEngine/JIT/JIT.h +++ b/lib/ExecutionEngine/JIT/JIT.h @@ -55,7 +55,7 @@ class JIT : public ExecutionEngine { JITState *jitstate; JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji, - JITMemoryManager *JMM, bool Fast); + JITMemoryManager *JMM, unsigned OptLevel); public: ~JIT(); @@ -71,8 +71,8 @@ public: /// for the current target. Otherwise, return null. /// static ExecutionEngine *create(ModuleProvider *MP, std::string *Err, - bool Fast = false) { - return createJIT(MP, Err, 0, Fast); + unsigned OptLevel = 3) { + return createJIT(MP, Err, 0, OptLevel); } virtual void addModuleProvider(ModuleProvider *MP); @@ -148,7 +148,7 @@ public: MachineCodeEmitter *getCodeEmitter() const { return MCE; } static ExecutionEngine *createJIT(ModuleProvider *MP, std::string *Err, - JITMemoryManager *JMM, bool Fast); + JITMemoryManager *JMM, unsigned OptLevel); private: static MachineCodeEmitter *createEmitter(JIT &J, JITMemoryManager *JMM); |