[PATCH] D46359: [Polly] Pass compiler arguments in the create_ll.sh script

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 2 08:31:16 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331364: Pass compiler arguments in the create_ll.sh script (authored by pfaffe, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46359?vs=144880&id=144891#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46359

Files:
  polly/trunk/test/create_ll.sh


Index: polly/trunk/test/create_ll.sh
===================================================================
--- polly/trunk/test/create_ll.sh
+++ polly/trunk/test/create_ll.sh
@@ -2,8 +2,11 @@
 
 LLFILE=`echo $1 | sed -e 's/\.c/.ll/g'`
 LLFILE_TMP=${LLFILE}.tmp
+SOURCE=$1
 
-clang -c -S -emit-llvm -O3 -mllvm -disable-llvm-optzns $1 -o ${LLFILE}
+shift
+
+clang -c -S -emit-llvm -O3 -mllvm -disable-llvm-optzns ${SOURCE} -o ${LLFILE} "$@"
 
 opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars \
 -instnamer ${LLFILE} -S -o ${LLFILE_TMP}
@@ -17,7 +20,7 @@
 echo ';' >> ${LLFILE}
 echo '; XFAIL: *' >> ${LLFILE}
 echo ';' >> ${LLFILE}
-clang-format $1 | sed -e 's/^[^$]/;    &/' -e 's/^$/;/' >> ${LLFILE}
+clang-format ${SOURCE} | sed -e 's/^[^$]/;    &/' -e 's/^$/;/' >> ${LLFILE}
 echo ';' >> ${LLFILE}
 
 cat ${LLFILE_TMP} >> ${LLFILE}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46359.144891.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180502/f4453626/attachment.bin>


More information about the llvm-commits mailing list