add a little function to do arbitrary string pattern matching in a
authorChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 20:02:57 +0000 (20:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Aug 2009 20:02:57 +0000 (20:02 +0000)
commit70add884e4967f511e2cbb35c61534186b9b418a
tree014c64f2da4c1c78c71800aaa9bb3699a86839f3
parentd39bd3aa5c795e55c0e2c4a5c72dab58ce1a1576
add a little function to do arbitrary string pattern matching in a
much more efficient way than a sequence of if's.  Switch MatchRegisterName
to use it.  It would be nice if someone could factor this out to a shared
place in tblgen :)

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