[MLIR] Add unit test for tblgen Op build methods
authorRahul Joshi <jurahul@google.com>
Tue, 28 Jul 2020 17:29:43 +0000 (10:29 -0700)
committerRahul Joshi <jurahul@google.com>
Tue, 28 Jul 2020 22:43:37 +0000 (15:43 -0700)
commit0b161def6cacff1a63d3cf1a1efe95b550814d7a
tree8a95047f865248a350796978c2c2a56e7e763162
parent450dc09d69df343386865d279983de9d51d1e984
[MLIR] Add unit test for tblgen Op build methods

- Initiate the unit test with a test that tests variants of build() methods
  generated for ops with variadic operands and results.
- The intent is to migrate unit .td tests in mlir/test/mlir-tblgen that check for
  generated C++ code to these unit tests which test both that the generated code
  compiles and also is functionally correct.

Differential Revision: https://reviews.llvm.org/D84074
mlir/test/lib/Dialect/Test/TestOps.td
mlir/unittests/TableGen/CMakeLists.txt
mlir/unittests/TableGen/OpBuildGen.cpp [new file with mode: 0644]