llvm-base-3.0.0.0: FFI bindings to the LLVM compiler toolkit.
LLVM.FFI.BitWriter
writeBitcodeToFile :: ModuleRef -> CString -> IO CIntSource
writeBitcodeToFileHandle :: ModuleRef -> CInt -> IO CIntSource
writeBitcodeToFD :: ModuleRef -> CInt -> CInt -> CInt -> IO CIntSource