[Mlir-commits] [mlir] bc6b5be - Fix TestI64ElementsAttr printer (#82931)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Feb 25 16:19:13 PST 2024


Author: Matteo Franciolini
Date: 2024-02-25T16:19:08-08:00
New Revision: bc6b5be6a298ab094d1bb41f393ca422feddd298

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

LOG: Fix TestI64ElementsAttr printer (#82931)

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

Added: 
    

Modified: 
    mlir/test/lib/Dialect/Test/TestAttributes.cpp

Removed: 
    


################################################################################
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