[MLIR] Cleanup mlir-tblgen error messages for custom assembly formats.
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sat, 4 Apr 2020 01:17:51 +0000 (18:17 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Tue, 7 Apr 2020 22:06:50 +0000 (15:06 -0700)
commit75f60c698fdfc0ea46f84b7f92d667d6e7f53f7f
tree57a133f42e5cac91c9e89738bef89f85e2f529ca
parentff87813715ec32741ce230dd37c13d0ae6673f9c
[MLIR] Cleanup mlir-tblgen error messages for custom assembly formats.

The messages are somewhat cryptic, since they are not complete sentences,
include lots of ambiguous words, like 'format' which are hard to parse,
and include names from the users code which may, or may not make sense in
the context of the message.  Start to clean this up and provide some
guidance for fixes.

Also, add a test for one of the messages which didn't have a test at all.

Differential Revision: https://reviews.llvm.org/D77449
mlir/test/mlir-tblgen/op-format-spec.td
mlir/tools/mlir-tblgen/OpFormatGen.cpp