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