<div dir="ltr">Yeah, the IR parser can handle them all of them correctly.<div>It would certainly be easier to reuse parseStandaloneConstantValue</div><div>for the floating point machine operands, I'll try to come up with a patch</div><div>that does that.</div><div><br></div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-30 11:40 GMT-07:00 Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 2015-Jul-29, at 17:23, Alex L <<a href="mailto:arphaman@gmail.com">arphaman@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> The 3 patches below serialize the floating point immediate machine operands<br>
> of type half, float, and double.<br>
><br>
> The first patch serializes the non-hexadecimal float and double floating point<br>
> operands. The second patch serializes the hexadecimal float and double<br>
> floating point operands. The third patch serializes the half floating point<br>
> operands.<br>
><br>
> The x86_fp80, fp128, and ppc_fp128 floating point operands aren't<br>
> serialized by these patches.<br>
><br>
<br>
</span>Do we know how to handle all the float types in IR?  If so, would it<br>
be better to reuse `parseStandaloneConstantValue()` for all of these?<br>
<br>
> Cheers,<br>
> Alex<br>
> <0001-MIR-Serialization-Initial-serialization-of-floating-.patch><0002-MIR-Serialization-Serialize-the-hexadecimal-floating.patch><0003-MIR-Serialization-Serialize-the-half-floating-point-.patch><br>
<br>
</blockquote></div><br></div>