Skip to content

john-ml/idris-llvm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idris-llvm

This is a LLVM backend for Idris.

Installing

Idris-llvm uses llvm-hs to bind to LLVM, it requires that a recent LLVM (at the moment LLVM 4.0) is installed in a location that GHC knows about. Required C libraries are the Boehm GC (it could be called "libgc" or "gc") and GMP.

If the prerequisites are met cabal install should be sufficient to build and install idris-llvm.

Usage

There needs to be a clang executable available to build the programs. gcc will not work as the input files to clang are LLVM files.

How to build an executable:

idris myprog.idr --codegen llvm -o myprog

About

Idris LLVM codegen factored out

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 85.5%
  • C 12.6%
  • Makefile 1.7%
  • Shell 0.2%