Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lachlan Sneff
    @lachlansneff
    I could be wrong, @sunfishcode would know.
    Kevin Watters
    @kevinw
    well, these are super helpful
    thank you
    Lachlan Sneff
    @lachlansneff
    My pleasure!
    Dan Gohman
    @sunfishcode
    @kevinw Yeah, multithreaded compilation, at the level of each function being compilable in parallel, is something that the Cretonne components are designed to support, and we have users that do this, but we don't have a ready-made solution for this in the Cretonne tree itself yet
    A predecessor in that context is a branch instruction that branches to the block
    Sealing is declaring that all branches to a block have been provided
    Lachlan Sneff
    @lachlansneff
    Cretonne doesn't support inlining, right?
    Dan Gohman
    @sunfishcode
    It does not include an inliner at this time, right :-)
    Lachlan Sneff
    @lachlansneff
    Could it at some point? Or does the pre-function compiling prevent that?
    I suppose it wouldn't make a difference, actually
    Dan Gohman
    @sunfishcode
    Yes, I anticipate it will do inlining in the future
    @kevinw There should be one Context per thread, and the Context on a given thread can be reused for multiple functions
    And yeah, the Module interface is an effort to work towards a higher-level API that takes care of more things for you, and eventually it should perform parallel compilation automatically, but at present it doesn't yet.
    Kevin Watters
    @kevinw
    @sunfishcode are there other open source users I could learn from besides nebulet?
    Dan Gohman
    @sunfishcode
    @kevinw The main open source user that's doing parallel compilation is the SpiderMonkey port, https://github.com/sunfishcode/gecko-dev/tree/baldrdash/js/src
    Though in that case the parallelism is implemented in C++ code
    The high-level story is, Cretonne is designed to compile each function completely independently of other functions
    Lachlan Sneff
    @lachlansneff
    Nebulet may multithread the compilation of sips eventually once it supports multiple cpu cores.
    Grégoire Geis
    @71
    I haven't had the chance to take a look at all of the code yet, so what happens when mutually recursive functions get compiled, since they're supposed to be compiled independently?
    By the way, sorry I opened two issues that now seem unnecessary, I Ctrl+F'd "IRC", found nothing, somehow didn't see the link to the Gitter chat until now and immediately jumped to GH issues.
    Lachlan Sneff
    @lachlansneff
    @6A What do you mean by mutually recursive function?
    Grégoire Geis
    @71
    @lachlansneff Function A calls function B, and function B calls function A.
    Lachlan Sneff
    @lachlansneff
    Oh, relocations are applied later
    So, after everything is compiled, the function addresses are written in
    Grégoire Geis
    @71
    @lachlansneff Makes sense, thanks!
    Dan Gohman
    @sunfishcode
    Hello! Cretonne is now named Cranelift! The new chat room is https://gitter.im/CraneStation/Lobby :-)