Modify the syntax of the the ElementsAttrs to print the type as a colon type.
authorRiver Riddle <riverriddle@google.com>
Tue, 25 Jun 2019 23:06:13 +0000 (16:06 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 25 Jun 2019 23:06:58 +0000 (16:06 -0700)
commit4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c
tree04fefb7f46510e3d39bdb61d5bdcab903810f908
parent1df5f3159e538fdc12c451f09f3f879ca0200d66
Modify the syntax of the the ElementsAttrs to print the type as a colon type.

This is the standard syntax for types on operations, and is also already used by IntegerAttr and FloatAttr.

Example:
  dense<5> : tensor<i32>
  dense<[3]> : tensor<1xi32>
PiperOrigin-RevId: 255069157
37 files changed:
mlir/g3doc/LangRef.md
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/Dialect/FxpMathOps/lower-uniform-casts.mlir
mlir/test/Dialect/FxpMathOps/lower-uniform-real-math-addew.mlir
mlir/test/Dialect/FxpMathOps/lower-uniform-real-math-mulew.mlir
mlir/test/Dialect/QuantOps/canonicalize.mlir
mlir/test/Dialect/QuantOps/convert-const.mlir
mlir/test/Dialect/QuantOps/parse-ops-invalid.mlir
mlir/test/Dialect/QuantOps/parse-ops.mlir
mlir/test/Examples/Toy/Ch2/codegen.toy
mlir/test/Examples/Toy/Ch3/codegen.toy
mlir/test/Examples/Toy/Ch3/scalar.toy
mlir/test/Examples/Toy/Ch4/codegen.toy
mlir/test/Examples/Toy/Ch4/scalar.toy
mlir/test/Examples/Toy/Ch5/codegen.toy
mlir/test/Examples/Toy/Ch5/scalar.toy
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir
mlir/test/IR/invalid.mlir
mlir/test/IR/parser.mlir
mlir/test/IR/repro_b120295301.mlir
mlir/test/LLVMIR/convert-to-llvmir.mlir
mlir/test/Quantizer/matmul.mlir
mlir/test/Quantizer/remove-instrumentation.mlir
mlir/test/SPIRV/structure-ops.mlir
mlir/test/Target/llvmir.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