#!/bin/bash echo "Producing executable.bc"; llvm-gcc -DSPEC_CPU2000 acceptt.c addimp.c alignfeed.c buildimp.c changrid.c clean.c closepins.c config1.c configure.c configuref.c controlf.c countf.c date.c debug.c dimbox.c finalwire.c findcost.c findcostf.c findest.c findfeeds.c findrchk.c findrcost.c findunlap.c globe.c globedbg.c globroute.c gparser.c grdcell.c hash.c implfeeds.c main.c mergplist.c move.c mt.c okmalloc.c outcm.c outpins.c output.c parser.c purcost.c qsorte.c qsortg.c qsortgdx.c qsortx.c rand.c readblck.c readcell.c readnets.c readpar.c readseg.c savewolf.c sortpin.c stats.c uc0.c ucg0.c ucgxp.c uclosepns.c ucxx1.c ucxx2.c ucxxo1.c ucxxo2.c ucxxp.c uglobe.c uglobrout.c ugpair.c uloop.c uloop2.c unetseg.c unlap.c upair.c urcost.c utemp.c utils.c xcompact.c xpickint.c -o executable echo "Producing exec_ln..."; llc -f -stats -regalloc=linearscan executable.bc -o ln.s; gcc ln.s -o exec_ln; echo "Producing exec_ch..."; llc -f -stats -regalloc=chordal executable.bc -o ch.s; gcc ch.s -o exec_ch; stats_sh ch.s ln.s; echo "Running exec_ln:"; time ./exec_ln train > /dev/null echo "Running exec_ch:"; time ./exec_ch train > /dev/null