[MLIR] Better message for FuncOp type mismatch
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Thu, 30 Jul 2020 21:47:42 +0000 (14:47 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Fri, 2 Oct 2020 16:31:44 +0000 (09:31 -0700)
commit34d12c15f7d8336c74bd4493e8d284dc169587b9
treea1ec889a20e76d601032e71d671efd44835c32fc
parent33fa3dbce91c8e75af57beeb013d82f08cccb733
[MLIR] Better message for FuncOp type mismatch

Previously the actual types were not shown, which makes the message
difficult to grok in the context of long lowering chains.  Also, it
appears that there were no actual tests for this.

Differential Revision: https://reviews.llvm.org/D88318
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/IR/operand.mlir