[llvm-dev] How to insert instructions before each function calls?
SHUCAI YAO via llvm-dev
llvm-dev at lists.llvm.org
Sat Sep 3 15:01:41 PDT 2016
I'm trying to insert some instructions before each function calls (before
lea %EAX, label ----- new instructions
mov [ESP+stacksize], %EAX ----- new instructions
I am a newbie to LLVM. I tried to use buildMI() to insert the instructions
in the lowercall() function. But I couldn't put these instructions in the
right positions. Is there a way to locate the position by using
Any suggestions are appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev