An LLVM Backend for GHC
David A. Terei and Manuel M. T. Chakravarty


In the presence of ever-changing computer architectures, high-quality optimising compiler backends are moving targets that require specialist knowledge and sophisticated algorithms. In this paper, we explore a new backend for the Glasgow Haskell Compiler (GHC) that leverages the Low Level Virtual Machine (LLVM), a new breed of compiler written explicitly for use by other compiler writers, not high-level programmers, that promises to enable outsourcing of low-level and architecture-dependent aspects of code generation. We discuss the conceptual challenges and our backend design. We also provide an extensive quantitative evaluation of the performance of the backend and of the code it produces.


"An LLVM Backend for GHC"
David A. Terei and Manuel M. T. Chakravarty
In Proceedings ACM SIGPLAN Haskell Symposium 2010, Baltimore MD, United States, September 2010.



Valid CSS! Valid HTML 4.01!