summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/VM.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-08 21:34:11 +0000
committerChris Lattner <sabre@nondot.org>2003-05-08 21:34:11 +0000
commitd340dbdb5d430a2f33630720e67fe97903b60001 (patch)
tree07c56d7335a9e70959eefa86265cdb8ff075d8eb /llvm/lib/ExecutionEngine/JIT/VM.h
parent974e1d8ec24cb12fc3e2a0cf8bfd192d89e1b5e6 (diff)
downloadbcm5719-llvm-d340dbdb5d430a2f33630720e67fe97903b60001.tar.gz
bcm5719-llvm-d340dbdb5d430a2f33630720e67fe97903b60001.zip
Improve efficiency of JIT by having it use direct function calls instead of
signals to regain control from the executing code llvm-svn: 6051
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/VM.h')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/VM.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.h b/llvm/lib/ExecutionEngine/JIT/VM.h
index 3b267ed877b..9080b3be045 100644
--- a/llvm/lib/ExecutionEngine/JIT/VM.h
+++ b/llvm/lib/ExecutionEngine/JIT/VM.h
@@ -50,10 +50,15 @@ public:
///
void *getPointerToNamedFunction(const std::string &Name);
+ // CompilationCallback - Invoked the first time that a call site is found,
+ // which causes lazy compilation of the target function.
+ //
+ static void CompilationCallback();
private:
static MachineCodeEmitter *createEmitter(VM &V);
void setupPassManager();
void *getPointerToFunction(const Function *F);
+
void registerCallback();
};
OpenPOWER on IntegriCloud