Safe Haskell | None |
---|---|
Language | Haskell98 |
Functions to read and write textual LLVM assembly
- parseLLVMAssembly :: Ptr Context -> OwnerTransfered (Ptr MemoryBuffer) -> Ptr (OwnerTransfered CString) -> IO (Ptr Module)
- writeLLVMAssembly :: Ptr Module -> Ptr RawOStream -> IO ()
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