Parse locations in parseGenericOperation
authorSean Silva <silvasean@google.com>
Mon, 28 Oct 2019 22:11:00 +0000 (15:11 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 28 Oct 2019 22:11:26 +0000 (15:11 -0700)
commit66ec24d83310dd623d79619840313f98e9a72644
tree45be6b535e9d51d76fafde9f31dd4d06c3e18956
parent98226e62ecf4d64323e4531daff39183691800cf
Parse locations in parseGenericOperation

For ops that recursively re-enter the parser to parse an operation (such as
ops with a "wraps" pretty form), this ensures that the wrapped op will parse
its location, which can then be used for the locations of the wrapping op
and any other implicit ops.

PiperOrigin-RevId: 277152636
mlir/lib/Parser/Parser.cpp
mlir/test/IR/wrapping_op.mlir
mlir/test/lib/TestDialect/TestDialect.cpp