[mlir][ods] Look through OpVariable for type constraint
authorJacques Pienaar <jpienaar@google.com>
Thu, 18 Jun 2020 19:51:51 +0000 (12:51 -0700)
committerJacques Pienaar <jpienaar@google.com>
Thu, 18 Jun 2020 19:51:51 +0000 (12:51 -0700)
commit7c59120f6e4ca769ab2bfb26484eb8eaca2eadc0
tree047e5da4ae06041848479a097d239d70623d09bf
parent41d53194fb9d5aba3e4861233b1af9cb62cc999a
[mlir][ods] Look through OpVariable for type constraint

If one uses an OpVariable (such as via Res) then the result type constraint
should be returned.

Differential Revision: https://reviews.llvm.org/D82119
mlir/lib/TableGen/Constraint.cpp
mlir/test/mlir-tblgen/op-decl.td