[LLVMdev] Adding a custom calling convention

Raja Mukherji rajamukherji at gmail.com
Wed Feb 20 05:53:20 PST 2008


Hi all,
I was wondering what the best way of adding a custom calling convention in llvm?

In particular, for the x86 platform, I want:

on entry

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.

Thanks,
Raja Mukherji



More information about the llvm-dev mailing list