[llvm-dev] How to insert instructions before each function calls?
Dean Michael Berris via llvm-dev
llvm-dev at lists.llvm.org
Tue Sep 20 06:58:27 PDT 2016
> On 20 Sep 2016, at 01:39, SHUCAI YAO <yaos4 at mcmaster.ca> wrote:
> Hi Dean,
> Thank you very much. I solved my problems by using the similar structure.
Awesome -- happy to help!
> BTW, I saw there is a hacky way to do the relative jump in function of LowerPATCHABLE_FUNCTION_ENTER. I think directional local symbol can implement it too:
> 1. t = getDirectionalLocalSymbol first;
> 2. jmp t
> 3. then emit nops
> 4. createDirectionalLocalSymbol(t)
> Hope it can help.
Interesting. Thanks, I'll try that next time in that part of the woods again. :)
More information about the llvm-dev