[PATCH] D39845: [TableGen] Give the option of tolerating duplicate register names

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 08:21:39 PST 2017


kparzysz added a comment.

Sorry, I wasn't clear in my last comment.  This comment doesn't add any new information, it's just a clarification.

By "preferred" I meant having some kind of an implicit ordering of the registers, and out of several candidates, the "preferred" one would, for example, be the first register in that order.  The order could be based on the order in which they were defined in the .td file, or lexicographic sorting of their symbolic names (not assembly names), etc.  My argument was that there is no intuitively clear way to establish such an ordering, and if we came up with something, then we'd need to make sure that MatchRegisterName returned a value in accordance with that order (which seems like an unnecessary constraint).


https://reviews.llvm.org/D39845





More information about the llvm-commits mailing list