Add -pass-pipeline-crash-reproducer to npcomp-opt alias.

pull/214/head
Sean Silva 2021-05-03 14:44:12 -07:00
parent 45ba5fac6c
commit 099bb7e29b
1 changed files with 4 additions and 14 deletions

View File

@ -12,7 +12,10 @@ npcomp-opt() {
# Usage:
# $ npcomp-opt <regular npcomp-opt options>
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 <regular mnist-playground options>
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,