xref: /third_party/ltp/tools/sparse/sparse-src/sparsei (revision f08c3bdf)
  • 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_ciset +e
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciSPARSEOPTS=
6f08c3bdfSopenharmony_ciJIT_OPT=
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ciDIRNAME=`dirname $0`
9f08c3bdfSopenharmony_ciLLI=`"${LLVM_CONFIG:-llvm-config}" --bindir`/lli
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ciif [ $# -eq 0 ]; then
12f08c3bdfSopenharmony_ci  echo "`basename $0`: no input files"
13f08c3bdfSopenharmony_ci  exit 1
14f08c3bdfSopenharmony_cifi
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_ciwhile [ $# -gt 0 ]; do
17f08c3bdfSopenharmony_ci	case $1 in
18f08c3bdfSopenharmony_ci	--jit)
19f08c3bdfSopenharmony_ci		JIT_OPT=
20f08c3bdfSopenharmony_ci		;;
21f08c3bdfSopenharmony_ci	--no-jit)
22f08c3bdfSopenharmony_ci		JIT_OPT="-force-interpreter"
23f08c3bdfSopenharmony_ci		;;
24f08c3bdfSopenharmony_ci	*)
25f08c3bdfSopenharmony_ci		SPARSEOPTS="$SPARSEOPTS $1 "
26f08c3bdfSopenharmony_ci		;;
27f08c3bdfSopenharmony_ci	esac
28f08c3bdfSopenharmony_ci	shift
29f08c3bdfSopenharmony_cidone
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci$DIRNAME/sparse-llvm ${SPARSEOPTS} | $LLI ${JIT_OPT}
32

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