[LLVMdev] Adding a custom calling convention

Raja Mukherji rajamukherji at gmail.com
Wed Feb 20 07:53:20 CST 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.

Raja Mukherji

More information about the LLVMdev mailing list