Ordering seems to be maintained even for patterns declared with instructions and those wouldn't get an anonymous def would they?<br><br><div class="gmail_quote">On Mon, Jan 9, 2012 at 9:54 AM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk">stoklund@2pi.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Jan 9, 2012, at 9:44 AM, Craig Topper wrote:<br>
<br>
> When patterns are collapsed the ordering of predicate checks is maintained. Not sure whether that's a feature or not, but it is what's making AVX2 broadcast instructions for integer vectors preferred over the FP versions. Maybe some other cases too.<br>

<br>
</div>TableGen orders records alphabetically:<br>
<br>
class RecordKeeper {<br>
  std::map<std::string, Record*> Classes, Defs;<br>
<br>
There is a source location in Record, but it is only used for error reporting AFAICT.<br>
<br>
It is possible that the names invented for anonymous defs are source order related, but you shouldn't depend on it.  It is much too fragile.<br>
<span class="HOEnZb"><font color="#888888"><br>
/jakob<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>~Craig<br>