[llvm-dev] How to modify the calling convention
SHUCAI YAO via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 8 12:23:36 PDT 2016
I'm trying to implement something similar to this: http://gcc.gnu.org/wiki/
SplitStacks in LLVM.
What I'm hoping to do is to be able to inject the following code (in x86
asm, callee clean-up calling convention):
for each function call:
lea %foo_return, %eax
mov %eax, [%esp - calleestackframesize]
The problem I have is how to force the LLVM to generates the previous code.
How could I modify the calling sequence?
Any suggestions are appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev