Auto upgrade support implemented in r149678.<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 6:24 PM, Craig Topper <span dir="ltr"><<a href="mailto:craig.topper@gmail.com">craig.topper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Feb 1, 2012 at 5:50 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On Feb 1, 2012, at 10:29 AM, Evan Cheng wrote:<br>
<br>
> Can you add logic to bitcode upgrader to handle them?<br>
<br>
</div>Great catch: this is something that is important, but that I overlooked.  We really want LLVM to be able to read LLVM 3.0 bitcode (and later releases) files.  If LLVM 3.0 generated these intrinsics, then we want the bitcode reader to be able to handle them, transparently rewriting them into the compare instructions they are now represented with.<br>


<br>
The code for this should just be dropped into lib/VMCore/AutoUpgrade.cpp.  There are only a couple of intrinsics being upgraded now, but a lot more were supported back in the LLVM 3.0 release (and have been subsequently removed, since we don't need to support 2.x bitcode files).<br>

</blockquote></div></div><div><br>I'll see if I can take a stab at doing this.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><font color="#888888"><br>
-Chris<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>~Craig<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>~Craig<br>