wiki:Commentary/Compiler/Backends/LLVM

Version 19 (modified by dterei, 4 years ago) (diff)

--

The LLVM backend

David Terei wrote a new code generator for GHC which targets the LLVM compiler infrastructure. Most of the work was done as part of an honours thesis at the University of New South Wales under the supervision of Manuel Chakravarty. Its now at a stage where it is under consideration to be merged into GHC mainline.

Some documentation:

  • The thesis paper which offers a detailed performance evaluation, as well as the motivation and design of the back-end.
  • Blog post on the LLVM blog about the backend.
  • A more recent paper submitted to the Haskell Symposium '10, gives updated design overview and performance numbers.

The backend is now included in GHC head, so grabbing and building that will give you it. The following pages have more information though: