From 099bb7e29b50633c6d80278195255055e6aedf7b Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Mon, 3 May 2021 14:44:12 -0700 Subject: [PATCH] Add -pass-pipeline-crash-reproducer to npcomp-opt alias. --- tools/bash_helpers.sh | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/tools/bash_helpers.sh b/tools/bash_helpers.sh index 9946e75e8..c9504be7c 100644 --- a/tools/bash_helpers.sh +++ b/tools/bash_helpers.sh @@ -12,7 +12,10 @@ npcomp-opt() { # Usage: # $ npcomp-opt ninja -C "$build_dir" npcomp-opt 1>&2 || return 1 - "${build_dir}/bin/npcomp-opt" "$@" + # Also produce a reproducer by default. + "${build_dir}/bin/npcomp-opt" \ + "-pass-pipeline-crash-reproducer=/tmp/reproducer.mlir" \ + "$@" } npcomp-run-mlir() { @@ -28,19 +31,6 @@ npcomp-run-mlir() { -shared-libs="${build_dir}/lib/libNPCOMPCompilerRuntimeShlib.so" "$@" } -mnist-playground() { - # Helper for building and invoking mnist-playground - # - # This also automatically builds and adds the npcomp runtime shared - # library. - # - # Usage: - # $ mnist-playground - ninja -C "$build_dir" mnist-playground NPCOMPCompilerRuntimeShlib 1>&2 || return 1 - "$build_dir/bin/mnist-playground" \ - -shared-libs="${build_dir}/lib/libNPCOMPCompilerRuntimeShlib.so" "$@" -} - # Go to the root of your npcomp checkout. alias npd="cd $td" # Handy so that `npctest -v` runs lit with -v and thus prints out errors,