[all-commits] [llvm/llvm-project] 16e9cc: Create TestReducer pass

Mauricio Sifontes via All-commits all-commits at lists.llvm.org
Fri Jul 10 17:47:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 16e9ccb2be7a2ebb04e781bbe4a4f9ce93a06c8e
      https://github.com/llvm/llvm-project/commit/16e9ccb2be7a2ebb04e781bbe4a4f9ce93a06c8e
  Author: Mauricio Sifontes <sifontes at google.com>
  Date:   2020-07-11 (Sat, 11 Jul 2020)

  Changed paths:
    M mlir/test/lib/CMakeLists.txt
    A mlir/test/lib/Reducer/CMakeLists.txt
    A mlir/test/lib/Reducer/MLIRTestReducer.cpp
    A mlir/test/mlir-reduce/test-reducer-pass.mlir
    M mlir/tools/mlir-opt/CMakeLists.txt
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  Create TestReducer pass

- Create a pass that generates bugs based on trivially defined behavior for the purpose of testing the MLIR Reduce Tool.
- Implement the functionality inside the pass to crash mlir-opt in the presence of an operation with the name "crashOp".
- Register the pass as a test pass in the mlir-opt tool.

Reviewed by: jpienaar

Differential Revision: https://reviews.llvm.org/D83422




More information about the All-commits mailing list