llvm-mc/AsmMatcher: Improve match code.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 8 Aug 2009 07:50:56 +0000 (07:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 8 Aug 2009 07:50:56 +0000 (07:50 +0000)
commita3741fa28b1a397ebfd623ef9d14e978df94ce47
tree13d45175a09a0f75b0da9b7ca7c865ae74f499ca
parentb6ab51e8297281888b85eee8c38215eab2649c4b
llvm-mc/AsmMatcher: Improve match code.
 - This doesn't actually improve the algorithm (its still linear), but the
   generated (match) code is now fairly compact and table driven. Still need a
   generic string matcher.

 - The table still needs to be compressed, this is quite simple to do and should
   shrink it to under 16k.

 - This also simplifies and restructures the code to make the match classes more
   explicit, in anticipation of resolving ambiguities.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/AsmParser/labels.s
test/MC/AsmParser/x86_instructions.s
utils/TableGen/AsmMatcherEmitter.cpp