<div dir="ltr">The updated patch below uses the 'parseConstantValue' function from the AsmParser<div>to parse the floating point constants. This radically simplifies the parsing of floating</div><div>point machine operands for the MI parser.</div><div>Also, the updated patch can now handle all the f<span style="line-height:normal">loating point types.</span></div><div><br></div><div>Cheers,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-30 14:42 GMT-07:00 Alex L <span dir="ltr"><<a href="mailto:arphaman@gmail.com" target="_blank">arphaman@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><span class="HOEnZb"><font color="#888888"><div><br></div><div>Alex</div></font></span></div><div class="HOEnZb"><div class="h5"><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><br>
> On 2015-Jul-29, at 17:23, Alex L <<a href="mailto:arphaman@gmail.com" target="_blank">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>
</div></div></blockquote></div><br></div>