[Mlir-commits] [mlir] Fix TestI64ElementsAttr parser (PR #82931)
Matteo Franciolini
llvmlistbot at llvm.org
Sun Feb 25 11:18:50 PST 2024
https://github.com/mfrancio created https://github.com/llvm/llvm-project/pull/82931
This enables to correctly roundtrip the attribute to text or bytecode.
>From e04780869e5539a831efc9a28996ce4292fb5e1d Mon Sep 17 00:00:00 2001
From: Matteo Franciolini <mfranciolini at tesla.com>
Date: Mon, 19 Feb 2024 16:13:28 -0800
Subject: [PATCH] Fix TestI64ElementsAttr parser
This enables to correctly roundtrip the attribute to text or bytecode.
---
mlir/test/lib/Dialect/Test/TestAttributes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/test/lib/Dialect/Test/TestAttributes.cpp b/mlir/test/lib/Dialect/Test/TestAttributes.cpp
index 8819f6cbe94e2c..d41d495c38e553 100644
--- a/mlir/test/lib/Dialect/Test/TestAttributes.cpp
+++ b/mlir/test/lib/Dialect/Test/TestAttributes.cpp
@@ -82,7 +82,7 @@ Attribute TestI64ElementsAttr::parse(AsmParser &parser, Type type) {
void TestI64ElementsAttr::print(AsmPrinter &printer) const {
printer << "<[";
llvm::interleaveComma(getElements(), printer);
- printer << "] : " << getType() << ">";
+ printer << "]>";
}
LogicalResult
More information about the Mlir-commits
mailing list