xref: /third_party/ltp/tools/sparse/sparse-src/sparse-llvm-dis
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/
1f08c3bdfSopenharmony_ci#!/bin/sh
2f08c3bdfSopenharmony_ci#
3f08c3bdfSopenharmony_ci# For testing sparse-llvm emitted bytecode
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciset +e
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ciDIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_ciif [ $# -eq 0 ]; then
10f08c3bdfSopenharmony_ci	echo "$(basename $0): no input files"
11f08c3bdfSopenharmony_ci	exit 1
12f08c3bdfSopenharmony_cifi
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ciDIRNAME=$(dirname $0)
15f08c3bdfSopenharmony_ci$DIRNAME/sparse-llvm "$@" | "$DIS" | grep -v '^target '
16

Indexes created Thu Nov 07 10:32:03 CST 2024