From 57d239e4ad110c052fe0c05fb25a588ec5a8de14 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Wed, 18 May 2022 13:59:08 -0700 Subject: [PATCH] [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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mlir/include/mlir/IR/EnumAttr.td b/mlir/include/mlir/IR/EnumAttr.td index a655d34..ef2fd33 100644 --- a/mlir/include/mlir/IR/EnumAttr.td +++ b/mlir/include/mlir/IR/EnumAttr.td @@ -222,9 +222,10 @@ class IntEnumAttr