Skip to content

heath/llvm-hs-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLVM Haskell Examples

Build Status

Simple examples demonstrating the usage of the llvm-hs for generating and manipulating LLVM from Haskell.

  • basic - Generating LLVM AST and rendering Textual IR
  • orc - JIT Compiling IR on the Eager and Lazy ORC Jit using Compile-On-Demand
  • arith - a minimal JIT compiler for functions of one (real) variable using recursion schemes
  • irbuilder - Basic usage of the LLVM IRBuilder for constructing modules

To run the examples:

$ stack exec basic
$ stack exec orc
$ stack exec arith
$ stack exec irbuilder

To load the examples in GHCI:

$ stack repl examples:basic
$ stack repl examples:orc
$ stack repl examples:arith
$ stack repl examples:irbuilder

License

MIT

About

Examples for Haskell bindings to LLVM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%