[LLVMdev] __fixunsdfdi and etc with Visual Studio JIT?

Török Edwin edwintorok at gmail.com
Tue Feb 2 09:07:10 PST 2010

On 2010-02-02 18:56, Anton Korobeynikov wrote:
> Hello
>> The bitcode was generated by llvm-gcc v2.6 for Mingw32/x86, which is
>> available for download at the llvm site.
>> Please let me know, if i should tell more.
> Well, the answer is pretty obvious then. These calls are not generated
> by JIT. They are already in your bitcode - they are generated by
> llvm-gcc.

Some libgcc calls are added by the code generator, for example
I had to provide implementation for these functions (since I disabled
dlsym lookups):
    __divdi3, __udivdi3, __moddi3, __umoddi3, __muldi3, __ashrdi3, 
__ashldi3,  __lshrdi3
and from libc:   memmove, memcpy,     memset

Even if the original bitcode had none of these calls (they were
intrinsics, or just simple divides).

Best regards,

More information about the llvm-dev mailing list