<div dir="ltr">You can use either. <div><br></div><div style>NVVM IR is just a pre-defined subset of LLVM IR along with some conventions and intrinsics for generating PTX assembly. You can use the open-source version of LLVM along with the NVPTX back-end to compile LLVM IR to PTX. A goal of the open-source NVPTX back-end is to be 100% compatible with this IR specification. Depending on your needs, the open-source version tracks upstream changes more closely (since it is part of the upstream repository).</div>
<div style><br></div><div style>The libnvvm library is the "official" compiler library that provides an easy-to-use API for reading LLVM IR modules and compiling them to PTX, without needing to interface with LLVM APIs directly.</div>
<div><br></div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 4:54 PM, Krzysztof Kamieniecki <span dir="ltr"><<a href="mailto:krys@kamieniecki.com" target="_blank">krys@kamieniecki.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="color:rgb(239,239,239);font-family:'Trebuchet MS',Trebuchet,Verdana,sans-serif;font-size:13px;background-color:rgb(40,43,48)">I can't seem to find a direct answer. If I want to convert NVVM IR to PTX code, do I have to use libNVVM or can I use a publicly released version of LLVM?</span>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div>
</div></div></div>