<div><br></div><div>Helge,</div><div><br></div>Thanks for the link.  I was able to get it to build against the LLVM SVN revision listed in the README file.  I've only run some simple tests through it, but it seems to be working.  Is this backend still being actively worked on?  Is there an effort to get it to work with LLVM 2.8?<div>
<br></div><div>Che-Liang,</div><div><br></div><div>I am very interested in this project.  Are you re-coding and upstreaming an existing version, or is it currently being written from scratch?  If you would like some help, I would be willing to put some time into this.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Justin Holewinski<br><div><br><div class="gmail_quote">On Thu, Oct 7, 2010 at 1:19 PM, Helge Rhodin <span dir="ltr"><<a href="mailto:helge.rhodin@alice-dsl.net">helge.rhodin@alice-dsl.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
 Hi,<br>
<br>
The PTX backend we developed (CBackend approach, does not use the target independent code generator) is already more advanced.<br>
An older version is published here: <a href="http://sourceforge.net/projects/llvmptxbackend/" target="_blank">http://sourceforge.net/projects/llvmptxbackend/</a><br>
<br>
We recently eliminated a bug which increased the number of required registers per thread. Surprisingly, without that bug the generated code is already comparable to code generated by the official nvcc copiler.  Of cause the nvcc compiler is superior in a lot of cases, however only by a small margin. And there are even cases(e.g. a phong surface shader) where our PTX backend is faster, without any particular optimization! It seems like the NVIDIA driver does a good job at late optimizations liker register allocation etc. I can give you some numbers if you are intrested.<br>

I'll push the newest version of the backend to sourceforge during the next days.<br>
<br>
What kind of optimizations are you planning to do? If you want to apply high level (on llvm bitcode) optimizations, you can start with our PTX backend and shwitch over to the new backend approach later on (If it turns out that the new approach is really faster).<br>

<br>
best, Helge<br>
<br>
<br>
<br>
Am 06.10.2010 17:39, schrieb Che-Liang Chiou:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Justin,<br>
<br>
I am upstreaming the PTX backend.<br>
My plan is to have a working prototype (that mean you may compile<br>
non-trivial code with some workarounds) by the end of this year or by<br>
January 2011.<br>
I hope I could catch up next release of LLVM (version 2.9), so I will<br>
adjust my plan according to the release schedule once it is announced.<br>
<br>
Regards,<br>
Che-Liang<br>
<br>
On Wed, Oct 6, 2010 at 11:16 PM, Justin Holewinski<br>
<<a href="mailto:justin.holewinski@gmail.com" target="_blank">justin.holewinski@gmail.com</a>>  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I read on the archives that a PTX back-end was discussed around August and I<br>
see that some initial code has been checked into LLVM trunk.  What is the<br>
status of this project?  Is it being actively worked on?<br>
I am ultimately interested in using LLVM for GPU code<br>
optimization/generation and am very interested in this particular project.<br>
<br>
--<br>
<br>
Thanks,<br>
Justin Holewinski<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>
<br>
<br>
</blockquote>
_______________________________________________<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>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>
</div></div>