[all-commits] [llvm/llvm-project] d86ece: Keep output file after successful execution of mli...

Lukas Sommer via All-commits all-commits at lists.llvm.org
Tue Apr 7 20:37:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d86ece13d93870241d838d2873f123aa771b7077
      https://github.com/llvm/llvm-project/commit/d86ece13d93870241d838d2873f123aa771b7077
  Author: Lukas Sommer <sommer at esa.tu-darmstadt.de>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M mlir/examples/standalone/standalone-opt/standalone-opt.cpp
    A mlir/test/mlir-opt/outputfile.mlir
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  Keep output file after successful execution of mlir-opt

Invoke `keep()` on the output file of `mlir-opt` in case the invocation of `MlirOptMain` was successful, to make sure the output file is not deleted on exit from `mlir-opt`.
Fixes a similar problem in `standalone-opt` from the example for an out-of-tree, standalone MLIR dialect.

This revision also adds a missing parameter to the invocation of `MlirOptMain` in `standalone-opt`.

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




More information about the All-commits mailing list