[Mlir-commits] [mlir] Fix TestI64ElementsAttr parser (PR #82931)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Feb 25 11:19:20 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Matteo Franciolini (mfrancio)

<details>
<summary>Changes</summary>

This enables to correctly roundtrip the attribute to text or bytecode.

---
Full diff: https://github.com/llvm/llvm-project/pull/82931.diff


1 Files Affected:

- (modified) mlir/test/lib/Dialect/Test/TestAttributes.cpp (+1-1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/82931


More information about the Mlir-commits mailing list