1#!/bin/sh 2# 3# For testing sparse-llvm emitted bytecode 4 5set +e 6 7DIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis 8 9if [ $# -eq 0 ]; then 10 echo "$(basename $0): no input files" 11 exit 1 12fi 13 14DIRNAME=$(dirname $0) 15$DIRNAME/sparse-llvm "$@" | "$DIS" | grep -v '^target ' 16