[Haskell-cafe] Re: LLVM - Haskell

2010-06-01 Thread Aaron Tomb
On May 31, 2010, at 3:02 PM, Tom Hawkins wrote: For instance, the LLVM.FFI.BitReader module has some functions that'll get you a ModuleRef from some bitcode. getBitcodeModuleInContext :: ContextRef - MemoryBufferRef - Ptr ModuleRef - Ptr CString - IO Bool type ModuleRef = Ptr

[Haskell-cafe] Re: LLVM - Haskell

2010-06-01 Thread Tom Hawkins
For instance, the LLVM.FFI.BitReader module has some functions that'll get you a ModuleRef from some bitcode. getBitcodeModuleInContext :: ContextRef - MemoryBufferRef - Ptr ModuleRef - Ptr CString - IO Bool type ModuleRef = Ptr Module data Module I'm confused how this works. How does

[Haskell-cafe] Re: LLVM - Haskell

2010-05-30 Thread Aaron Tomb
On May 30, 2010, at 7:01 AM, Tom Hawkins wrote: Is there any work being done to read LLVM object code into Haskell? I've looked through the llvm library [1], but it appears focused on code generation. -Tom I was just looking through the Haddock pages for the llvm package with the same

Re: [Haskell-cafe] Re: LLVM - Haskell

2010-05-30 Thread David Anderson
On Sun, May 30, 2010 at 11:26 PM, Aaron Tomb at...@galois.com wrote: On May 30, 2010, at 7:01 AM, Tom Hawkins wrote: Is there any work being done to read LLVM object code into Haskell? I've looked through the llvm library [1], but it appears focused on code generation. -Tom I was just