1 printf "Running nir code generators-->\n"
2 mkdir
-p $build_dir/src
/compiler
/nir
3 #===============================================================================
4 # removing the braindamaged qsort class
5 cp -f $src_dir/src
/compiler
/nir
/nir.c
$build_dir/src
/compiler
/nir
/nir.c
6 sed -i $build_dir/src
/compiler
/nir
/nir.c \
8 -e 's/util_qsort_r/qsort_r/' &
9 #===============================================================================
10 export PYTHONPATH
=$mako
11 $python3 $src_dir/src
/compiler
/nir
/nir_builder_opcodes_h.py \
12 >$build_dir/src
/compiler
/nir
/nir_builder_opcodes.h
&
13 #------------------------------------------------------------------------------
14 $python3 $src_dir/src
/compiler
/nir
/nir_constant_expressions.py \
15 >$build_dir/src
/compiler
/nir
/nir_constant_expressions.c
&
16 #------------------------------------------------------------------------------
17 $python3 $src_dir/src
/compiler
/nir
/nir_opcodes_h.py \
18 >$build_dir/src
/compiler
/nir
/nir_opcodes.h
&
19 #------------------------------------------------------------------------------
20 $python3 $src_dir/src
/compiler
/nir
/nir_opcodes_c.py \
21 >$build_dir/src
/compiler
/nir
/nir_opcodes.c
&
22 #------------------------------------------------------------------------------
23 $python3 $src_dir/src
/compiler
/nir
/nir_opt_algebraic.py \
24 --out $build_dir/src
/compiler
/nir
/nir_opt_algebraic.c
&
25 #------------------------------------------------------------------------------
26 $python3 $src_dir/src
/compiler
/nir
/nir_intrinsics_h.py \
27 --outdir $build_dir/src
/compiler
/nir
&
28 #------------------------------------------------------------------------------
29 $python3 $src_dir/src
/compiler
/nir
/nir_intrinsics_c.py \
30 --outdir $build_dir/src
/compiler
/nir
&
31 #------------------------------------------------------------------------------
32 $python3 $src_dir/src
/compiler
/nir
/nir_intrinsics_indices_h.py \
33 --outdir $build_dir/src
/compiler
/nir
&
36 printf "<--nir code generation done\n"