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)
commit8f1c8ebb0d116e775bc5cfd726abe39b0ed9285e
tree352c6659fa69445c088df85e81c6a9c63c25d2de
parent5b64279192cac401994b01b14adfa567cf2d4663
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.

llvm-svn: 172073
llvm/utils/TableGen/AsmMatcherEmitter.cpp