I think this is a great idea. My understanding from the wiki page is that the full plan involves:
- We need to fix compatibility with recent LLVM versions. This really sucks for users. Ben Gamari is working on this, see #9142 and Phab:D155
- We need to fix up the LLVM IR generation in GHC, and fix the
compiler driver to invoke the tools with a better set of optimizations. Nathan Howell has been wrangled into looking into this.
- We need to ship a pre-built version of LLVM for developers and users, and put them in binary distributions for major platforms. Austin Seipp could handle this.
- We can fix other bugs, like LLVM -split-obj support, which opens the way to shipping GHC with LLVM-optimized base libraries. Reid Barton expressed some interest in this.
I assume that 1. will come with 7.10.1. Is there any way we could do 3. in one of the 7.10 releases before 7.12.1?
Basing this question on Austin's words "we
only need
opt and
llc, so the distributions can be tiny.
" and "it's not actually very complicated to implement or support, I think." :) I guess it might be more difficult than I think but I thought it was worth asking the question as I believe 3. on its own is worthwhile and would hopefully simplify support for LLVM in GHC.