Tweak to the pretty type parser to recognize that `->` is a special token.
authorEric Schweitz <eric.schweitz@pgroup.com>
Wed, 28 Aug 2019 20:55:11 +0000 (13:55 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 28 Aug 2019 20:55:42 +0000 (13:55 -0700)
commit22254116903763d49be0a9fff226fcce498c6772
treec6207577082aa119760235a866fa3c8e6e008767
parentc60c490356a8908b21315a72d813d148eddf146f
Tweak to the pretty type parser to recognize that `->` is a special token.

Tweak to the pretty type parser to recognize that `->` is a special token that
shouldn't be split into two characters.  This change allows dialect
types to wrap function types as in `!my.ptr_type<(i32) -> i32>`.

Closes tensorflow/mlir#105

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/105 from schweitzpgi:parse-arrow 8b2d768053f419daae5a1a864121a44c4319acbe
PiperOrigin-RevId: 265986240
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/invalid.mlir
mlir/test/IR/parser.mlir