[X86 disasm tblegen backend] Clean up numPhysicalOperands asserts
authorAdam Nemet <anemet@apple.com>
Wed, 1 Oct 2014 19:28:11 +0000 (19:28 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 1 Oct 2014 19:28:11 +0000 (19:28 +0000)
commit9e5cb2fc6df100630e387226ea30f3315c8a28b3
tree1469bdb814691ae35ae81a2749af3c02cc67ba64
parent472f2a056decc9d4cb79a59ca1d59f9f331b7b9d
[X86 disasm tblegen backend] Clean up numPhysicalOperands asserts

No functionality change intended.

This implements Elena's idea to put the new additionalOperand outside the
switch to cover all cases
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140929/237763.html).

Note only nontrivial change is in MRMSrcMemFrm.  This requires an inclusive
interval of [2, 4] because we have prefix-dependent *optional* immediate
operand.

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