search for: trigger_condition

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

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
...ll-sites, but this hasn't been implemented yet. The Indirect 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 mak...