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 | 9f795134f3ad884f8e3382551271b6f21fe37fe6 (patch) | |
tree | 33b2a2ece14ed01f9a9f0475f0c49d0c978c7354 /llvm/lib/ExecutionEngine/JIT/JIT.h | |
parent | 084669a1c94ec215e8366ec827ffec21d5a4afeb (diff) | |
download | bcm5719-llvm-9f795134f3ad884f8e3382551271b6f21fe37fe6.tar.gz bcm5719-llvm-9f795134f3ad884f8e3382551271b6f21fe37fe6.zip |
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".
llvm-svn: 70347
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.h b/llvm/lib/ExecutionEngine/JIT/JIT.h index e0c74f87389..b3ae82c58c5 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.h +++ b/llvm/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); |