[mlir][OpAsmParser] Add support for parsing integer literals without going through...
authorRiver Riddle <riddleriver@gmail.com>
Mon, 14 Dec 2020 19:53:43 +0000 (11:53 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 14 Dec 2020 20:00:43 +0000 (12:00 -0800)
commit6bc9439f59acbcc5e46a108c2f74a4d5ffe55a3b
tree83de8ef929354204259f0f757e1e3e1aa26ca57c
parentc234b65cef07b38c91b9ab7dec6a35f8b390e658
[mlir][OpAsmParser] Add support for parsing integer literals without going through IntegerAttr

Some operations use integer literals as part of their custom format that don't necessarily map to an internal IntegerAttr. This revision exposes the same `parseInteger` functions as the DialectAsmParser to allow for these operations to parse integer literals without incurring the otherwise unnecessary roundtrip through IntegerAttr.

Differential Revision: https://reviews.llvm.org/D93152
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/Parser/DialectSymbolParser.cpp
mlir/lib/Parser/Parser.cpp
mlir/lib/Parser/Parser.h
mlir/test/IR/parser.mlir
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestOps.td