aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/mlir-opt
diff options
context:
space:
mode:
authorLukas Sommer <sommer@esa.tu-darmstadt.de>2020-04-08 03:24:08 +0000
committerMehdi Amini <joker.eph@gmail.com>2020-04-08 03:37:45 +0000
commitd86ece13d93870241d838d2873f123aa771b7077 (patch)
tree1cf0810645a3ba6c9ef5b8a3c7b1de82b36028af /mlir/test/mlir-opt
parent91eb442fdef0aacb996442042d2eeed52d71270b (diff)
downloadllvm-d86ece13d93870241d838d2873f123aa771b7077.zip
llvm-d86ece13d93870241d838d2873f123aa771b7077.tar.gz
llvm-d86ece13d93870241d838d2873f123aa771b7077.tar.bz2
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
Diffstat (limited to 'mlir/test/mlir-opt')
-rw-r--r--mlir/test/mlir-opt/outputfile.mlir2
1 files changed, 2 insertions, 0 deletions
diff --git a/mlir/test/mlir-opt/outputfile.mlir b/mlir/test/mlir-opt/outputfile.mlir
new file mode 100644
index 0000000..cd7135e
--- /dev/null
+++ b/mlir/test/mlir-opt/outputfile.mlir
@@ -0,0 +1,2 @@
+// RUN: mlir-opt %s -o %t
+// RUN: test -f %t