summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/VM.h
diff options
context:
space:
mode:
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