================
@@ -128,8 +143,95 @@ namespace llvm {
 inline ::llvm::raw_ostream &operator<<(::llvm::raw_ostream &p, {0} value) {{
   auto valueStr = stringifyEnum(value);
 )";
-  os << formatv(parsedAndPrinterStart, qualName, cppNamespace,
-                enumAttr.getSummary());
+
+  const char *parsedAndPrinterStartUnquotedBitEnum = R"(
+  namespace mlir {
+  template <typename T, typename>
+  struct FieldParser;
+
+  template<>
+  struct FieldParser<{0}, {0}> {{
----------------
krzysz00 wrote:

There's a FieldParser implementation above that's the old-style bit enum. It's 
handled by always quoting bit enum values that have more than one bit set.

Usually, these FieldParser values were very much unused, as there are separate 
parser implementatinos both in `EnumParameter` and in other bits of 
`mlir-tblgen` that mean this code was basically never called.

https://github.com/llvm/llvm-project/pull/132148
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to