[LLVMdev] Reminder: Please switch to MCJIT, as the old JIT will be removed soon.

Yaron Keren yaron.keren at gmail.com
Tue Jul 29 11:07:30 PDT 2014


Hi Keno,

Could you give a short high-level overview of the way Julia works now with
MCJIT instead the JIT:

What I gather so far...

* Compiled IR functions are emitted to a shadow module.
* Any used function is cloned into its own new module and the module is
added to MCJIT.
* Called functions or globalvars are only declared in that module.
* Modules are never removed meaning "old" functions are abandoned rather
then replaced.
* All function calls go through a trampoline function doing the multiple
dispatch, also enabling old function replacement to new version.

Thanks,

Yaron




2014-07-25 22:23 GMT+03:00 Keno Fischer <kfischer at college.harvard.edu>:

> If you have specific questions about this transition, I might be able
> to help out here, as I've gone through this process with Julia (the
> process should be a lot smoother now that it's working for a good set
> of people, so most bugs should have been found)
>
> Keno
>
> On Fri, Jul 25, 2014 at 3:13 PM, Lang Hames <lhames at gmail.com> wrote:
> > Hi Everyone,
> >
> > If you're JITing with LLVM and haven't made the switch to MCJIT already,
> now
> > is the time. As per discussions on the mailing list and at the last dev
> > meeting, LLVM 3.5 will be the last release to support the old JIT
> > infrastructure. Now that LLVM 3.5 has branched, we plan to start removing
> > the old JIT from the mainline.
> >
> > If you're looking for help in making the switch, Andy Kaylor wrote a
> great
> > LLVM blog post about porting Kaleidoscope to MCJIT, which you can find at
> > http://blog.llvm.org/2013/07/using-mcjit-with-kaleidoscope-tutorial.html
> .
> > I'll also be working to update the LLVM docs and the Kaleidoscope
> tutorial,
> > and as always you can ask for help in the mailing lists and on IRC.
> >
> > Good luck with the switch over!
> >
> > Cheers,
> > Lang.
> >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140729/83e9cd88/attachment.html>


More information about the llvm-dev mailing list