summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-23 00:26:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-23 00:26:16 +0000
commite197409277d117b8c3602b31acc9efb05659bd21 (patch)
tree26b89a32d1edf58d4a2e63b798daeb16ef3b8a0c /llvm/utils
parent5006e43faf97ace108be49237cc2644c81e801be (diff)
downloadbcm5719-llvm-e197409277d117b8c3602b31acc9efb05659bd21.tar.gz
bcm5719-llvm-e197409277d117b8c3602b31acc9efb05659bd21.zip
AsmMatcher: Add a comment.
llvm-svn: 94261
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index 019908bd599..8c37c3aabe0 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud