<div dir="ltr"><div><div><div>Hi,<br><br></div>You may also find this presentation useful for the LLVM Backend:<br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_devmtg_2014-2D10_Slides_Cormack-2DBuildingAnLLVMBackend.pdf&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Jmfrnx2BOh1DfHmnI8TffzCc7UZen758k-EN1WL9jxg&s=xXncMo1vBN5PMAET_d8BjPpfowXGwfGwL_HAvxs4HQQ&e=" target="_blank">http://llvm.org/devmtg/2014-10/Slides/Cormack-BuildingAnLLVMBackend.pdf</a><br><br></div>Thanks,<br></div>Ambuj<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 27, 2015 at 3:13 PM, Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, May 27, 2015 at 10:10:47AM +0200, Peter Fodrek wrote:<br>
> Dear LLVM experts!<br>
><br>
> we would like to use BeignetBackend<br>
> as and LLVM Target<br>
><br>
> It shown in teh Beignet code there is a note<br>
> "Well, the complete code base is somehow a compiler backend for LLVM.<br>
> Here, we<br>
> really speak about the final code generation passes that you may find in<br>
> `src/backend`."<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.freedesktop.org_wiki_Software_Beignet_Backend_compiler-5Fbacke&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Jmfrnx2BOh1DfHmnI8TffzCc7UZen758k-EN1WL9jxg&s=LJAWu8Krm51ZqknKzx3an3FyfA9PIrUFZYrzi7ABK3o&e=" target="_blank">http://www.freedesktop.org/wiki/Software/Beignet/Backend/compiler_backe</a><br>
> nd/<br>
> But Beignet does not work as an backend such as CBackend I was able to<br>
> transform to be compilable for LLVM3.3 in the past<br>
><br>
> Is there anybody ho recomend me howto port Beignet as a regular LLVM<br>
> target as shown in llc -version output,please<br>
><br>
<br>
</span>Hi,<br>
<br>
Here is the documentation for writing an LLVM backend:<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_CodeGenerator.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Jmfrnx2BOh1DfHmnI8TffzCc7UZen758k-EN1WL9jxg&s=Gk-BnkkfFtkWuNkp59ENj6sJasJ089nfsNz1eacP-lM&e=" target="_blank">http://llvm.org/docs/CodeGenerator.html</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_WritingAnLLVMBackend.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Jmfrnx2BOh1DfHmnI8TffzCc7UZen758k-EN1WL9jxg&s=01qlSOA3s61DSg_5iCCrwGX9uctlBAzRgFvPVbNWQNY&e=" target="_blank">http://llvm.org/docs/WritingAnLLVMBackend.html</a><br>
<br>
Note that this is not a trival task.<br>
<br>
-Tom<br>
<span><br>
> I look forward hearing form you.<br>
><br>
> Yours faithfully<br>
><br>
> Peter Fodrek<br>
><br>
<br>
</span>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div></div>