llvm-ffi: FFI bindings to the LLVM compiler toolkit.

[ bsd3, code-generation, compilers-interpreters, library ] [ Propose Tags ]

FFI bindings to the LLVM compiler toolkit.

Installation cannot be done fully automatically. It would require Cabal code that is bound to certain Cabal versions and is prone to fail. We give several non-automatic ways that also allow you to choose a particular LLVM version.

First possibility is to point Cabal to the LLVM installation directories manually. On Ubuntu this would look like this:

cabal install --extra-include-dirs=/usr/lib/llvm-3.8/include --extra-lib-dirs=/usr/lib/llvm-3.8/lib llvm-ffi

You can store such paths permanently in a pkg-config file like llvm.pc. The optimal way would be if LLVM installations or GNU/Linux distributions would contain such a file, but they don't. Instead, you may generate it using the llvm-pkg-config package or write one manually. Then you run

cabal install -fpkgConfig

We try to stay up to date with LLVM releases. The current version of this package is compatible with LLVM 3.4-3.8. Please understand that the package may or may not work against older LLVM releases.

Warning for inplace builds: Re-configuring the package using, say -fllvm307, and re-buildung it might result in corrupt code. You must make sure that the stuff in cbits is re-compiled. Cabal or GHC may forget about that. You are safe if you run cabal clean.

Versions [faq] 3.0.0, 3.0.0.1, 3.0.0.2, 3.1.0, 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.5.0, 3.5.1, 3.6.0, 3.7.0, 3.8.0, 3.8.1, 3.8.1.1
Dependencies base (>=3 && <5), enumset (>=0.0.4 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann, Bryan O'Sullivan, Lennart Augustsson
Maintainer Henning Thielemann <llvm@henning-thielemann.de>
Category Compilers/Interpreters, Code Generation
Home page http://haskell.org/haskellwiki/LLVM
Source repo head: darcs get http://hub.darcs.net/thielema/llvm-ffi/
this: darcs get http://hub.darcs.net/thielema/llvm-ffi/ --tag 3.8.1.1
Uploaded by HenningThielemann at Wed Jun 5 08:12:46 UTC 2019
Distributions NixOS:3.8.1.1
Executables llvm-ffi-example
Downloads 3527 total (163 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user [build log]
All reported builds failed as of 2019-06-05 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
developer

developer mode - warnings let compilation fail

DisabledManual
buildexamples

Build example executables

DisabledManual
pkgconfig

use pkgconfig (llvm.pc) instead of extra-libraries

DisabledAutomatic
specificpkgconfig

use llvm-3.x.pc instead of llvm.pc

EnabledAutomatic
llvm304

use LLVM-3.4 instead of latest supported LLVM

DisabledAutomatic
llvm305

use LLVM-3.5 instead of latest supported LLVM

DisabledAutomatic
llvm306

use LLVM-3.6 instead of latest supported LLVM

DisabledAutomatic
llvm307

use LLVM-3.7 instead of latest supported LLVM

DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees