[mlir] Breakdown diagnostic string literals
authorLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 18 May 2022 20:59:08 +0000 (13:59 -0700)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 24 May 2022 14:58:00 +0000 (07:58 -0700)
commit57d239e4ad110c052fe0c05fb25a588ec5a8de14
tree5b4e5bae807b462156db6c470e4c37f7eb21a8ba
parentdeb62f5ad64931c6d47ef3cbf9bb53f4f651b3ae
[mlir] Breakdown diagnostic string literals

This commit breaks down diagnostic string literals so that the attribute
name and enumurator names can be shared with the stringify utility
function and the "expected ", " to be one of ", and ", " can be shared
between different enum-related diagnostic.

Differential Revision: https://reviews.llvm.org/D125938
mlir/include/mlir/IR/EnumAttr.td