summaryrefslogtreecommitdiff
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-06 01:34:04 +0000
committerChris Lattner <sabre@nondot.org>2007-12-06 01:34:04 +0000
commit34c9433004cabd4760987dce4804a91c84908219 (patch)
treeab136b7e1e199a68e9fe6ab59846e27cb8fce91e /include/llvm/ExecutionEngine
parent9f2f142d255bc96f109dd5c6524a485937b1f3a1 (diff)
downloadllvm-34c9433004cabd4760987dce4804a91c84908219.tar.gz
llvm-34c9433004cabd4760987dce4804a91c84908219.tar.bz2
llvm-34c9433004cabd4760987dce4804a91c84908219.tar.xz
add a new ExecutionEngine::createJIT which can be used if you only want
to create a JIT. This lets you specify JIT-specific configuration items like the JITMemoryManager to use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index ad0a738426..5b33e15d90 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -108,6 +108,14 @@ public:
/// is appropriate for the current machine. This takes ownership of the
/// module.
static ExecutionEngine *create(Module *M);
+
+ /// createJIT - This is the factory method for creating a JIT for the current
+ /// machine, it does not fall back to the interpreter. This takes ownership
+ /// of the ModuleProvider and JITMemoryManager if successful.
+ static ExecutionEngine *createJIT(ModuleProvider *MP,
+ std::string *ErrorStr = 0,
+ JITMemoryManager *JMM = 0);
+
/// addModuleProvider - Add a ModuleProvider to the list of modules that we