SingleBlockImplicitTerminator: report the wrong terminator op found
authorAlex Zinenko <zinenko@google.com>
Mon, 22 Jul 2019 09:41:39 +0000 (02:41 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 22 Jul 2019 09:42:06 +0000 (02:42 -0700)
commitfa86c8991701edc02f1e861b4274abdefba4e2bb
tree7b848832ede0dc93e69bac3ee6252117b4329bbd
parent00bdc8e070ec54c5df3eb57c10eb830d2f369d5e
SingleBlockImplicitTerminator: report the wrong terminator op found

In the trait verifier of SingleBlockImplicitTerminator, report the name of the
unexpected terminator op found in the end of the block in addition to the name
of the expected terminator op.  This may simplify debugging, especially in
cases where the terminator is omitted for brevity and/or after a long series of
conversions.

PiperOrigin-RevId: 259287452
mlir/include/mlir/IR/OpDefinition.h
mlir/test/IR/invalid.mlir