Create the framework and testing environment for MLIR Reduce - a tool
authorMauricio Sifontes <sifontes@google.com>
Tue, 7 Jul 2020 01:59:11 +0000 (01:59 +0000)
committerMauricio Sifontes <sifontes@google.com>
Tue, 7 Jul 2020 01:59:11 +0000 (01:59 +0000)
commit28a45d54a7fe722248233165fc7fdbd18d18d233
tree824e079fd1bd7909e106bfb010f16ac10cb2c98b
parent0c6b6e28e70c06a3cb4704d2d8f90829a689e230
Create the framework and testing environment for MLIR Reduce - a tool
with the objective to reduce large test cases into smaller ones while
preserving their interesting behavior.

Implement the framework to parse the command line arguments, parse the
input MLIR test case into a module and call reduction passes on the MLIR module.

Implement the Tester class which allows the different reduction passes to test the
interesting behavior of the generated reduced variants of the test case and keep track
of the most reduced generated variant.
12 files changed:
mlir/include/mlir/Reducer/Tester.h [new file with mode: 0644]
mlir/lib/CMakeLists.txt
mlir/lib/Reducer/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Reducer/Tester.cpp [new file with mode: 0644]
mlir/test/CMakeLists.txt
mlir/test/mlir-reduce/test.bat [new file with mode: 0644]
mlir/test/mlir-reduce/test.sh [new file with mode: 0755]
mlir/test/mlir-reduce/testcase-linux.mlir [new file with mode: 0644]
mlir/test/mlir-reduce/testcase-windows.mlir [new file with mode: 0644]
mlir/tools/CMakeLists.txt
mlir/tools/mlir-reduce/CMakeLists.txt [new file with mode: 0644]
mlir/tools/mlir-reduce/mlir-reduce.cpp [new file with mode: 0644]