OSDN Git Service

Fix a nondeterminism in the ARM assembler.
authorAndrew Trick <atrick@apple.com>
Wed, 29 Aug 2012 03:52:57 +0000 (03:52 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 29 Aug 2012 03:52:57 +0000 (03:52 +0000)
commit2b70dfaaebcc436c53b2c86cd8a9574baba47253
treec21e370e68a8e470f301212fd22f1b7fceb99ddb
parentc4dc2490c4ea2c75e451eec5950179f06d2610a2
Fix a nondeterminism in the ARM assembler.

Adding arbitrary records to ARM.td would break
basic-arm-instructions.s because selection of nop vs mov r0,r0 was
ambiguous (this will be tested by a subsequent addition to ARM.td).
An imperfect but sensible fix is to give precedence to match rules
that have more constraints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162824 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp