<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 10:35 AM, Ahmed Bougacha <span dir="ltr"><<a href="mailto:ahmed.bougacha@gmail.com" target="_blank">ahmed.bougacha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Awesome, I wanted to do this next, thanks for working on this =)<br>
<br>
I'll look into this closer, but a couple of very high level not-really-questions first:<br>
<br>
- what about other types?  I just removed the generic f32->f64 promotion a few days ago (in anticipation for such a PromoteFloat legalizer).  I'm not sure we can test that in-tree, so there's probably not much point in worrying about this.<br></blockquote><div><br></div><div>I've tried to keep promotion as generic as possible.  As long as the PromoteFloat typeaction is set and TransformToType is set correctly, it should be able to handle f32->f64.  I haven't tested it though.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- might I ask: what's your use case?  In particular, do you intend to change clang in any way?<br></blockquote><div><br></div><div>I am not planning to change Clang.  The use case is to handle bitcode with Clang run with NativeHalfType and HalfArgsAndReturns arguments enabled, but the target/backend doesn't have support for f16.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In the meantime, you might be interested in <a href="http://reviews.llvm.org/D8648" target="_blank">http://reviews.llvm.org/D8648</a> for tests, as I tried to cover as many IR/generic ISD opcodes as possible.  The patch itself just focuses on ops promotion on AArch64 (where half is legal).<br></blockquote><div><br></div><div>I did peek into your patch when I wrote my tests :)  I'll refer to them when I write target-specific tests. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
-Ahmed<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D8755" target="_blank">http://reviews.llvm.org/D8755</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>