<!DOCTYPE html><html><head><title></title><style type="text/css">#fastmail-quoted p.fastmail-quoted-MsoNormal,#fastmail-quoted p.fastmail-quoted-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi LLVM hackers,<br></div><div type="cite" id="fastmail-quoted"><div><br></div><div>I would be willing to pay for the open source development<br></div><div>of the ability to execute generated LLVM IR code from OCaml.<br></div><div><br></div><div>I only need support to pass ints as arguments to LLVM IR functions,<br></div><div>and to return ints back to the OCaml worlds.<br></div><div><br></div><div>The feature was added in this commit:<br></div><div>commit 2e855e68d861224c9b61e2bc9cecad1536b1534b<br></div><div>Author: Gordon Henriksen <<a href="mailto:gordonhenriksen@mac.com">gordonhenriksen@mac.com</a>><br></div><div>Date: Sun Dec 23 16:59:28 2007 +0000<br></div><div><br></div><div> C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).<br></div><div><br></div><div>+ external run_function: Llvm.llvalue -> GenericValue.t array -> t -><br></div><div>+ GenericValue.t<br></div><div>+ = "llvm_ee_run_function"<br></div><div><br></div><div>And then broke and was removed in this commit:<br></div><div><br></div><div>commit ced3d172f8d83f50b4c8dec136f8123133bad36f<br></div><div>Author: Peter Zotov <<a href="mailto:whitequark@whitequark.org">whitequark@whitequark.org</a>><br></div><div>Date: Fri Oct 31 09:05:36 2014 +0000<br></div><div><br></div><div> [OCaml] Rework Llvm_executionengine using ctypes.<br></div><div><br></div><div>- external run_function: Llvm.llvalue -> GenericValue.t array -> t -><br></div><div>- GenericValue.t<br></div><div>- = "llvm_ee_run_function"<br></div><div><br></div><div>Please feel free to contact me via email if you are interested in helping out.<br></div><div><br></div><div>I will try to work on this myself, but I fear it will take me a very long time as I don't much much about LLVM internals.<br></div><div><br></div><div>I hope to hear from someone!<br></div><div><br></div><div>Many thanks.<br></div><div><br></div><div id="fastmail-quoted-sig78115808"><div class="fastmail-quoted-signature">Kind regards,<br></div><div class="fastmail-quoted-signature"><br></div><div class="fastmail-quoted-signature">Joel<br></div></div><div><br></div></div><div><br></div></body></html>