Simplify the parser/printer of ConstantOp now that all attributes have types...
authorRiver Riddle <riverriddle@google.com>
Wed, 8 May 2019 21:46:39 +0000 (14:46 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:24:30 +0000 (19:24 -0700)
commite088f93f0da3d6a2904f0f4fb22759c40914dce3
treec670c1ebecc5d4f63738cb0ff30e1a8bbdcb02c2
parentb4684e229bdddf401887203452c191f1a1d7551c
Simplify the parser/printer of ConstantOp now that all attributes have types. This has the added benefit of removing type redundancy from the pretty form. As a consequence, IntegerAttr/FloatAttr will now always print the type even if it is i64/f64.

--

PiperOrigin-RevId: 247295828
22 files changed:
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/StandardOps/Ops.cpp
mlir/test/FxpMathOps/lower-uniform-casts.mlir
mlir/test/FxpMathOps/lower-uniform-real-math-addew.mlir
mlir/test/FxpMathOps/lower-uniform-real-math-mulew.mlir
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir
mlir/test/IR/parser.mlir
mlir/test/LLVMIR/convert-argattrs.mlir
mlir/test/LLVMIR/convert-to-llvmir.mlir
mlir/test/Quantization/canonicalize.mlir
mlir/test/Quantization/convert-const.mlir
mlir/test/Transforms/Vectorize/lower_vector_transfers.mlir
mlir/test/Transforms/Vectorize/materialize.mlir
mlir/test/Transforms/Vectorize/materialize_vectors_1d_to_1d.mlir
mlir/test/Transforms/Vectorize/materialize_vectors_2d_to_1d.mlir
mlir/test/Transforms/Vectorize/materialize_vectors_2d_to_2d.mlir
mlir/test/Transforms/Vectorize/vector_utils.mlir
mlir/test/Transforms/Vectorize/vectorize_1d.mlir
mlir/test/Transforms/Vectorize/vectorize_2d.mlir
mlir/test/Transforms/canonicalize.mlir
mlir/test/Transforms/constant-fold.mlir