projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6aebc2
)
AsmMatcher: Add a comment.
author
Daniel Dunbar
<daniel@zuster.org>
Sat, 23 Jan 2010 00:26:16 +0000
(
00:26
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sat, 23 Jan 2010 00:26:16 +0000
(
00:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94261
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmMatcherEmitter.cpp
b/utils/TableGen/AsmMatcherEmitter.cpp
index 019908bd599b234a1b0503d154ccfd5c0af291a6..8c37c3aabe0a0ea408898db44a290784e9c3be04 100644
(file)
--- 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)