Make TableGen mangle operand method names before putting in enum.
authorTim Northover <Tim.Northover@arm.com>
Thu, 10 Jan 2013 15:17:36 +0000 (15:17 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 10 Jan 2013 15:17:36 +0000 (15:17 +0000)
commit88abcde3b47dcd9b64e8b0cd6558481d692609eb
treec6701ba770a23990a10c6df1181b7594a103351d
parent2b8f6ae6b791099ceff8ad87bcca7f165655c5c7
Make TableGen mangle operand method names before putting in enum.

The purpose of this patch is to allow PredicateMethods to be set to something
like "isUImm<8>", calling a C++ template method to reduce code duplication. For
this to work, the PredicateMethod must be mangled into a valid C++ identifier
for insertion into an enum.

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