[LLVMdev] code generation for calls in JITted code after r88984

Zoltan Varga vargaz at gmail.com
Tue Dec 15 01:05:49 PST 2009


After this commit:

the X86 JIT no longer emits calls using call <ADDR>, but always uses mov
REG, <ADDR>, call *REG. This causes problems for the usage of LLVM in JITs
since the JIT can no longer patch the callsite after the callee have been
compiled. According to the comments for the commit, this was done to fix the
large code model on amd64, but this affects JITs which can guarantee that
both the caller and callee have 32 bit addresses, since the code model is
set uncoditionally to Large, even if another code model was passed to
createJIT ():


Would it be possible to fix this or make it configurable ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091215/792d6a95/attachment.html>

More information about the llvm-dev mailing list