<div dir="ltr">Hi,<br><br>sitofp has different semantics to bitcast. "bitcast i32 %a to float" would not do int-to-float conversion, but would perform the equivalent of "f = *&i;".<div><br></div><div>Also, bitcast is still not a no-op in AArch64 big endian - we have to do vector shuffling still.</div><div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><br><div class="gmail_quote">On Fri, 17 Apr 2015 at 09:14 Dave Pitsbawn <<a href="mailto:dpitsbawn@gmail.com">dpitsbawn@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I always thought that bitcast was a no-op internal llvm thing to fit the IR type system.<br></div><div><br></div><div>I currently use sitofp, but I see your point.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 1:04 AM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</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 Dave,<br><br><div>You can still bitcast between i32 and float, for example.</div><div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><br><div class="gmail_quote"><span>On Fri, 17 Apr 2015 at 09:03 Dave Pitsbawn <<a href="mailto:dpitsbawn@gmail.com" target="_blank">dpitsbawn@gmail.com</a>> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr">Seems like a new change in LLVM has made it so that bitcast of bitcast i8* %1 to %Foo* meaningless?<div><br></div><div>If I'm correct is there any need for the bitcast anymore? </div></div></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>
</blockquote></div>
</blockquote></div><br></div>
</blockquote></div>