[LLVMdev] jit DLLs
morten at hue.no
Tue Jun 24 05:08:39 PDT 2008
Øyvind Harboe wrote:
> Are JIT DLLs supported?
> The idea is to use llvm to put performance sensitive code into
> a DLL that a Windows app can then use.
> This would build the performance sensitive code on the target
> machine making it possible to exploit CPU specific x86
> vector instructions.
> The code that calls fn's in the DLL should, ideally, be unaware
> that a llvm JIT is being used.
because of the size of the LLVM libraries, it would usually be preferable to pre-build versions of the performance
sensitive code for all target CPUs in separate dlls and use CPU identification code (similar to what the LLVM JIT does)
to resolve which dll to load at run time.
More information about the llvm-dev