[haskell-llvm] example suite for llvm-general

Henning Thielemann lemming at henning-thielemann.de
Tue Aug 2 08:02:02 BST 2016


The 'llvm' package by O'Sullivan & Augustsson came with a set of small and 
instructive examples. Is there something similar for llvm-general?

In particular I am looking for an example showing how to run a function 
via MCJIT, how to determine the host target triple and how to set it 
for the module I want to run in MCJIT. The closest example in the 'llvm' 
package is this one:
    http://hackage.haskell.org/package/llvm-3.2.0.2/src/examples/HelloJIT.hs
    https://llvm.org/bugs/show_bug.cgi?id=8999

The closest I could find is this test:
    http://hackage.haskell.org/package/llvm-general-3.5.1.2/src/test/LLVM/General/Test/ExecutionEngine.hs



More information about the Haskell-llvm mailing list