From a0ef4e4068a7cb2b3c6022120c413625080ddede Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 23 Jan 2010 00:26:16 +0000 Subject: [PATCH] AsmMatcher: Add a comment. llvm-svn: 94261 --- utils/TableGen/AsmMatcherEmitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 019908bd599..8c37c3aabe0 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -465,6 +465,10 @@ struct InstructionInfo { if (Operands.size() != RHS.Operands.size()) return false; + // Otherwise, make sure the ordering of the two instructions is unambiguous + // by checking that either (a) a token or operand kind discriminates them, + // or (b) the ordering among equivalent kinds is consistent. + // Tokens and operand kinds are unambiguous (assuming a correct target // specific parser). for (unsigned i = 0, e = Operands.size(); i != e; ++i)