Refactor LinalgDialect::parseType to use the DialectAsmParser methods directly.
authorRiver Riddle <riverriddle@google.com>
Fri, 1 Nov 2019 23:13:37 +0000 (16:13 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 1 Nov 2019 23:14:10 +0000 (16:14 -0700)
commit68cfc89a0da4777caf78654d5a75444971175a92
tree551851d0238c0590afa9dcc7493cf1089f94d0ad
parente94a8bfca8f9dadda5d8a548c210ae39d97a45c1
Refactor LinalgDialect::parseType to use the DialectAsmParser methods directly.

This simplifies the implementation, and removes the need to do explicit string manipulation. A utility method 'parseDimensionList' is added to the DialectAsmParser to simplify defining types and attributes that contain shapes.

PiperOrigin-RevId: 278020604
mlir/include/mlir/IR/DialectImplementation.h
mlir/lib/Dialect/Linalg/IR/LinalgTypes.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/Dialect/Linalg/invalid.mlir