<div dir="ltr">On 7 January 2013 17:25, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't understand the question: there is no choice, there is no need for a<br>
default.  The type (ppc/ieee) is in the node type already, ppcf128 or f128<br>
when talking about codegen value types, PPC_FP128Ty or FP128Ty at the IR level.<br>
It's only the front-end (clang) that has to decide what type to output to the<br>
IR.  After that that everything is completely specified.<br></blockquote><div><br></div><div style>The current code defaults to creating a PPC long double in the constructor, which is probably there for historical reasons. </div>
<div style><br></div><div style>In this case, a new value is created (a NULL) which has to have a type that is compatible with the platform in which it's running. Maybe each platform could have an option on which kind of long double they support, that you use to create new APFloats?</div>
<div style><br></div><div style>--renato</div></div></div></div>