About

Metadata

  • Last updated , by cocreature
  • License BSD-3-Clause
  • Categories FFI, Compilers and Interpreters
  • Maintained by: Anthony Cowley, Stephen Diehl, Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

  • Lottery factor: 0

Links

Installation

This package uses the Custom cabal build type

Tested Compilers

  1. 8.6.5
  2. 8.4.4
  3. 8.2.2
  4. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    shared-llvm (on by default)

    link against llvm shared rather than static library

    debug (off by default)

    compile C(++) shims with debug info for ease of troubleshooting

Readme

llvm-hs is a set of Haskell bindings for LLVM http://llvm.org/. Unlike other current Haskell bindings, it uses an ADT to represent LLVM IR (http://llvm.org/docs/LangRef.html), and so offers two advantages: it handles almost all of the stateful complexities of using the LLVM API to build IR; and it supports moving IR not only from Haskell into LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.