summaryrefslogtreecommitdiff
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-08 08:11:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-08 08:11:34 +0000
commit502f20b17ede40de84503010b7699b328a4f2867 (patch)
tree5c2ccb21d8acceb0846fb0f5e0b162509310cb01 /include/llvm/ExecutionEngine
parent381cb07544a2bc119e39969d7d508a6247773e1c (diff)
downloadllvm-502f20b17ede40de84503010b7699b328a4f2867.tar.gz
llvm-502f20b17ede40de84503010b7699b328a4f2867.tar.bz2
llvm-502f20b17ede40de84503010b7699b328a4f2867.tar.xz
Add new parameter Fast to createJIT to enable the fast codegen path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 6fd368d207..edcddde2e3 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -79,7 +79,8 @@ protected:
// To avoid having libexecutionengine depend on the JIT and interpreter
// libraries, the JIT and Interpreter set these functions to ctor pointers
// at startup time if they are linked in.
- typedef ExecutionEngine *(*EECtorFn)(ModuleProvider*, std::string*);
+ typedef ExecutionEngine *(*EECtorFn)(ModuleProvider*, std::string*,
+ bool Fast);
static EECtorFn JITCtor, InterpCtor;
/// LazyFunctionCreator - If an unknown function is needed, this function
@@ -108,7 +109,8 @@ public:
/// module provider.
static ExecutionEngine *create(ModuleProvider *MP,
bool ForceInterpreter = false,
- std::string *ErrorStr = 0);
+ std::string *ErrorStr = 0,
+ bool Fast = false);
/// create - This is the factory method for creating an execution engine which
/// is appropriate for the current machine. This takes ownership of the
@@ -120,7 +122,8 @@ public:
/// of the ModuleProvider and JITMemoryManager if successful.
static ExecutionEngine *createJIT(ModuleProvider *MP,
std::string *ErrorStr = 0,
- JITMemoryManager *JMM = 0);
+ JITMemoryManager *JMM = 0,
+ bool Fast = false);