llvm-hs-5.1.1: General purpose LLVM bindings

Safe HaskellNone
LanguageHaskell98

LLVM.Internal.FFI.Assembly

Description

Functions to read and write textual LLVM assembly

Synopsis

Documentation

parseLLVMAssembly :: Ptr Context -> OwnerTransfered (Ptr MemoryBuffer) -> Ptr (OwnerTransfered CString) -> IO (Ptr Module) Source #

Use LLVM's parser to parse a string of llvm assembly in a memory buffer to get a module

writeLLVMAssembly :: Ptr Module -> Ptr RawOStream -> IO () Source #

LLVM's serializer to generate a string of llvm assembly from a module