Don't elide splat attributes during printing
authorTamas Berghammer <tberghammer@google.com>
Thu, 26 Nov 2020 11:03:12 +0000 (11:03 +0000)
committerTamas Berghammer <tberghammer@google.com>
Fri, 27 Nov 2020 14:42:26 +0000 (14:42 +0000)
commite4c74fd9ddd90fd269620c0c669455dbd6b29bb9
treecafb357f5f7b22517959f9101dd5bcdedcc17f01
parent0ce32a79825f307d2f46b8a5823489a67d6d072f
Don't elide splat attributes during printing

A splat attribute have a single element during printing so we should
treat it as such when we decide if we elide it or not based on the flag
intended to elide large attributes.

Reviewed By: rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D92165
mlir/lib/IR/AsmPrinter.cpp
mlir/test/IR/pretty-attributes.mlir