This patchset fixes two instances of nondeterministic iteration in the TableGen output.<div><br></div><div>Patch 0001 refactors a comparator struct to be in Record.h. We already had two of them, but the preexisting ones do string comparisons, while LessRecordByID sorts by the Record's unique ID, which is just compares two `unsigned`. Now we have three comparators, but they each have their use cases I suppose.</div>
<div><br></div><div>Patch 0002 and 0003 each fix a particular instance of nondeterminism that I found.</div><div><br></div><div>The way I was testing this was to put all of the generated files under version control with git, and observe their changes when rebuilding. Is there any way that we could do something like this with the generated files from the buildbots? TableGen output should be the same on all of them, right? and so aggregating their generated files should help to track down any remaining nondeterminism.</div>
<div><br></div><div>--Sean Silva</div>