[all-commits] [llvm/llvm-project] 0b161d: [MLIR] Add unit test for tblgen Op build methods

Rahul Joshi via All-commits all-commits at lists.llvm.org
Tue Jul 28 15:44:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b161def6cacff1a63d3cf1a1efe95b550814d7a
      https://github.com/llvm/llvm-project/commit/0b161def6cacff1a63d3cf1a1efe95b550814d7a
  Author: Rahul Joshi <jurahul at google.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/unittests/TableGen/CMakeLists.txt
    A mlir/unittests/TableGen/OpBuildGen.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list