search for: fooopt

Displaying 2 results from an estimated 2 matches for "fooopt".

2015 Jul 27
15
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
Hi Again, I'm a little confused regarding what is the exact Orc's functions I should use in order to save the functions code in a code cache so it could be later replaced with different versions of it and I appreciate your help. Just a reminder I want to dynamically recompile the program based on profile collected at the run-time. I would like to start executing the program from the
2015 Jul 28
0
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
...ndirect calls make recompilation reasonably easy: You could add a transform layer on top of the CompileCallbackLayer which would modify each function like this: void foo$impl() { void foo$impl() { // foo body -> if (trigger_condition) { } auto fooOpt = jit_recompile_hot(&foo); fooOpt(); } // foo body } You would implement the jit_recompile_hot function yourself in your JIT and make it available to JIT'd code via the Symbo...