[llvm-branch-commits] [mlir] a50e3a6 - [mlir] Fix assembly format parser generator after 9ea6b30ac20f8223fb6aeae853e5c73691850a8d.

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 10 00:09:42 PDT 2023


Author: Oleg Shyshkov
Date: 2023-08-10T09:06:20+02:00
New Revision: a50e3a66b991130824ebcbb86f5225be36eb62fe

URL: https://github.com/llvm/llvm-project/commit/a50e3a66b991130824ebcbb86f5225be36eb62fe
DIFF: https://github.com/llvm/llvm-project/commit/a50e3a66b991130824ebcbb86f5225be36eb62fe.diff

LOG: [mlir] Fix assembly format parser generator after 9ea6b30ac20f8223fb6aeae853e5c73691850a8d.

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/OpFormatGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index 1e131799fbdced..2efd82fd526dbf 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -1714,7 +1714,7 @@ void OperationFormat::genParserVariadicSegmentResolution(Operator &op,
           ");\n",
           op.getCppClassName());
     } else {
-      body << "  result.addAttribute(\"odsResultSegmentSizes\", "
+      body << "  result.addAttribute(\"result_segment_sizes\", "
            << "parser.getBuilder().getDenseI32ArrayAttr({";
       llvm::interleaveComma(op.getResults(), body, interleaveFn);
       body << "}));\n";


        


More information about the llvm-branch-commits mailing list