<div dir="ltr">Thanks Jakub. Looks Like I didn't rely all.<div><br></div><div>I also have a look at the code, looks like it directly parse the bitcode and build in memory representation in a different LLVM version than the bitcode. Is this correct?</div><div><br></div><div>According to your description, I guess the <span style="font-size:12.8px">BitCodeWriter should be the one to do the bitcode version downgrade, right?</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Does this took work on LLVM 3.9svn?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">And could you give some hints about how you test the bitcode translator?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><div><span style="font-size:12.8px">Hongbin</span></div><div><br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 3:25 PM, Jakub Kuderski <span dir="ltr"><<a href="mailto:kubakuderski+llvm@gmail.com" target="_blank">kubakuderski+llvm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm not sure if it was intended, but I think that you responded only to me (not to the list).<br><br>Anyway, RenderScript currently uses llvm 3.2 IR as binary representation/exchangeable format, but the llvm version is higher internally. Essentially, there it reads old bitcode and operates on the newer one in memory. When it's done, it's also able to output bitcode in the old format. The corresponding classes should be something like BitCodeReader and BitCodeWriter.<br>The reader/writer is maintained to work with Android's llvm version, which follows upstream llvm version.<br><br>I haven't worked on it myself, but if you have some specific questions, I should be able to point you to appropriate people.<br><br>Regards<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 2 August 2016 at 15:17, Hongbin Zheng <span dir="ltr"><<a href="mailto:etherzhhb@gmail.com" target="_blank">etherzhhb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jakub,<div><br></div><div>Thanks a lot. Do you have any document about this tool? or could you gave me a rough idea what it do?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Hongbin</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 3:06 PM, Jakub Kuderski <span dir="ltr"><<a href="mailto:kubakuderski+llvm@gmail.com" target="_blank">kubakuderski+llvm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Hongbin,<br><br>Android's RenderScript uses a tool like that. You can find the sources here: <a href="https://android.googlesource.com/platform/frameworks/compile/libbcc/+/master/bcinfo/" target="_blank">https://android.googlesource.com/platform/frameworks/compile/libbcc/+/master/bcinfo/</a> .<br><br>Best,<br>Jakub<br><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 2 August 2016 at 11:10, Hongbin Zheng via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi mailing list,<div><br></div><div>I has been working on a large project that is based on LLVM 3.1. Recently we are thinking to introduce an LLVM bc converter from LLVM 3.9 to LLVM 3.1, such that we can introduce some of the newest LLVM analyses and optimizations to our  LLVM 3.1 based project.</div><div><br></div><div>Have you worked on similar things that converting LLVM bc downward and has anything to share?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Hongbin</div></font></span></div>
<br></div></div>_______________________________________________<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></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>