[LLVMdev] Adding a custom calling convention
rajamukherji at gmail.com
Wed Feb 20 07:53:20 CST 2008
I was wondering what the best way of adding a custom calling convention in llvm?
In particular, for the x86 platform, I want:
esi = size of argument block
edi = address of argument block
ecx = callee object
and on return
eax = status code
ebx = possible one-shot continuation
ecx = returned value
edx = returned reference
I only want it to work in a JIT fashion so no persistence in bitcode
files is necessary.
More information about the LLVMdev