Standardize and refactor Attribute type printing.
authorRiver Riddle <riverriddle@google.com>
Thu, 27 Jun 2019 01:29:25 +0000 (18:29 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 27 Jun 2019 01:29:54 +0000 (18:29 -0700)
commit260d3e39ad261fbc07ab564b7de905c01fe1bad6
treefe71df37e1db3ba4af0dd022b376893e23745121
parentd4cf54f2c1d40cdd66d88214a8f87660b21f2213
Standardize and refactor Attribute type printing.

Remove the ability to print an attribute without a type, but allow for attributes to elide the type under certain circumstances. This fixes a bug where attributes within ArrayAttr, and other collection attributes, would never print the type.

PiperOrigin-RevId: 255306974
mlir/examples/Linalg/Linalg1/lib/SliceOp.cpp
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/SPIRV/SPIRVOps.cpp
mlir/lib/StandardOps/Ops.cpp
mlir/test/LLVMIR/convert-memref-ops.mlir
mlir/test/LLVMIR/convert-to-llvmir.mlir
mlir/test/LLVMIR/roundtrip.mlir