Running GHC LLVM output through LLVM bitcode linker first

2015-11-22 Thread Clinton Mead
Is there a way to run the LLVM code (both generated by Haskell and provided by the user) though the LLVM bitcode linker to perform intermodule optimizations (like inlining) http://llvm.org/docs/CommandGuide/llvm-link.html Here's some example code: -- Main.hs -- {-# LANGUAGE MagicHash #-} {-# LA

Re: Running GHC LLVM output through LLVM bitcode linker first

2015-11-23 Thread Ben Gamari
Clinton Mead writes: > Is there a way to run the LLVM code (both generated by Haskell and provided > by the user) though the LLVM bitcode linker to perform intermodule > optimizations (like inlining) > > http://llvm.org/docs/CommandGuide/llvm-link.html > > Here's some example code: > > -- Main.hs