Improve efficiency of JIT by having it use direct function calls instead of
[oota-llvm.git] / lib / ExecutionEngine / JIT / VM.h
index 3b267ed877bba7c4824778d53ffc3280ec541b6e..9080b3be04548346d3867103120b464933e57923 100644 (file)
@@ -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();
 };