TableGen: AsmMatcher support for better operand diagnostics.
authorJim Grosbach <grosbach@apple.com>
Fri, 22 Jun 2012 23:56:44 +0000 (23:56 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 22 Jun 2012 23:56:44 +0000 (23:56 +0000)
commit4dbfdfba6c92b6224bf58364371569f5780844d3
treeb7661af210cd5e1cdfa22c292241a10e07d70ff6
parent009f7afbeb77d1cc8e962bac7057b73b6d39d62f
TableGen: AsmMatcher support for better operand diagnostics.

"Invalid operand" may be a completely correct diagnostic, but it's often
insufficiently specific to really help identify and fix the problem in
assembly source. Allow a target to specify a more-specific diagnostic kind
for each AsmOperandClass derived definition and use that to provide
more detailed diagnostics when an operant of that class resulted in a
match failure.

rdar://8987109

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