llvm-capstone/polly/test/create_ll.sh
Tobias Grosser 758053788b Add initial version of Polly
This version is equivalent to commit ba26ebece8f5be84e9bd6315611d412af797147e
in the old git repository.

llvm-svn: 130476
2011-04-29 06:27:02 +00:00

12 lines
242 B
Bash
Executable File

#!/bin/sh
clang -S -emit-llvm -O0 $1
SFILE=`echo $1 | sed -e 's/\.c/.s/g'`
LLFILE=`echo $1 | sed -e 's/\.c/.ll/g'`
opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars \
-instnamer ${SFILE} -S > ${LLFILE}
rm ${SFILE}