<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 7, 2015 at 10:17 PM Lang Hames <<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Hayden, Eric,<div><br></div><div>I'm not sure what you mean by "C bindings proper"? Historically the C API has set a high bar on stability, and I'm not willing/able to guarantee that level of stability yet. So it's a matter of determining where we should put C bindings that don't meet the bar for inclusion in "stable".</div><div><br></div><div>Eric - Assuming that people want these in the llvm tree rather than in a separate project, I think 'include/llvm-c/unstable' seems like a good starting point. We can move it later if/when we come up with something better.</div><div><br></div></div></blockquote><div><br></div><div>Up to you.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Cheers,</div><div>Lang.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 9:50 PM, Hayden Livingston <span dir="ltr"><<a href="mailto:halivingston@gmail.com" target="_blank">halivingston@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lang, aren't you going to be the major (only?) player when it comes to<br>
Orc APIs, if you're not opposed to it having them in the C bindings<br>
proper will certainly help. That's my vote, I understand it is<br>
different from the previous cases but the API surface area here is<br>
relatively small.<br>
<div><div><br>
On Mon, Sep 7, 2015 at 5:37 PM, Lang Hames <<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>> wrote:<br>
> Hi Jauhien,<br>
><br>
> A few people have requested a C API for ORC. I don't think ORC's ready for a<br>
> stable C API, but I'm not opposed to providing C bindings that will probably<br>
> be reasonably stable in practice (though with no guarantees). I've actually<br>
> already knocked up some trivial prototype bindings for Hayden Livingston<br>
> that could serve as a base (see attached).<br>
><br>
> The next question is where unstable bindings should live. Juergen, Eric,<br>
> anyone else who wants to weigh in: I looked back over the C API thread, but<br>
> I don't think we settled on a home for this kind of thing. Any thoughts? I<br>
> could see either introducing a new include directory (something along the<br>
> lines of include/llvm/llvm-c-bindings) or a new c-bindings project on<br>
> <a href="http://llvm.org" rel="noreferrer" target="_blank">llvm.org</a>. The former would put all LLVM developers on the hook for<br>
> maintaining the bindings, the latter would leave maintenance to users of the<br>
> bindings project, and any volunteers. I prefer the second option: I don't<br>
> think core developers should be on the hook for maintaining unstable<br>
> bindings - that kind of special treatment should be reserved for the stable<br>
> API.<br>
><br>
> Cheers,<br>
> Lang.<br>
><br>
><br>
> On Sun, Sep 6, 2015 at 1:52 PM, Jauhien Piatlicki via llvm-dev<br>
> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I would like to have better C API for LLVM JIT, as I have plans to use<br>
>> it from Rust. I've sent already a patch [1] that adds possibility to<br>
>> create custom memory managers based on SectionMemoryManager using C API.<br>
>><br>
>> What I would like to have now is a possibility to access ORC through C<br>
>> API somehow. The problem here is that ORC uses templates heavily. So I'm<br>
>> looking for any suggestions on how to better wrap its functionality for C.<br>
>><br>
>> Also I would thank everybody who'll review my already sent patch.<br>
>><br>
>> [1] <a href="http://reviews.llvm.org/D12607" rel="noreferrer" target="_blank">http://reviews.llvm.org/D12607</a><br>
>><br>
>> --<br>
>> Jauhien<br>
>><br>
>><br>
>> _______________________________________________<br>
>> LLVM Developers mailing list<br>
>> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
>> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
>><br>
><br>
</div></div></blockquote></div><br></div>
</blockquote></div></div>