<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Tobi,<div><br></div><div>My CLang version is very old (1.0.2), I have manually installed the latest version from SVN and I am compiling LLVM again right now. Is it right that CLang is not in the standard LLVM repos (<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: monospace; white-space: pre; ">svn checkout <a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a></span>) as indicated on <a href="http://polly.grosser.es/get_started.html">http://polly.grosser.es/get_started.html</a>? This are the instructions I followed to install my tools.</div><div><br></div><div>I will get back to you when I've results.</div><div><br></div><div>Cheers, Pieter</div><div><br></div><div><div>On 16 jan 2012, at 15:56, Tobias Grosser wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 01/16/2012 03:37 PM, Pieter Custers wrote:<br><blockquote type="cite">Hello Tobi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thank you for the quick reply.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I updated my complete build suite with your script (<a href="http://polly.grosser.es/polly.sh">http://polly.grosser.es/polly.sh</a>). The make-test fails with some errors, the rest went smoothly;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Exit Code: 1<br></blockquote><blockquote type="cite">Command Output (stderr):<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">LLVM ERROR: Could not resolve external global address: stdout<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">********************<br></blockquote><blockquote type="cite">Testing Time: 10.01s<br></blockquote><blockquote type="cite">********************<br></blockquote><blockquote type="cite">Failing Tests (3):<br></blockquote><blockquote type="cite">     Polly :: CodeGen/do_pluto_matmult.ll<br></blockquote><blockquote type="cite">     Polly :: CodeGen/single_do_loop_int_max_iterations.ll<br></blockquote><blockquote type="cite">     Polly :: CodeGen/single_do_loop_scev_replace.ll<br></blockquote><br>That is interesting. Can you send me the individual error messages? Are you using a 32bit platform?<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">   Expected Passes    : 104<br></blockquote><blockquote type="cite">   Expected Failures  : 29<br></blockquote><blockquote type="cite">   Unexpected Failures: 3<br></blockquote><blockquote type="cite">make: *** [polly-test] Error 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I try your command 'clang -Xclang -load ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll -S -emit-llvm -mllvm -polly -O0' if fails with the following errors:<br></blockquote><br>The command to prepare the code for Polly was incorrect. I missed a '-Xclang' option. The correct one is:<br><br>clang -Xclang -load -Xclang ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll -S -emit-llvm -mllvm -polly -O0<br><br>to also enable -enable-iv-rewrite you need:<br><br>clang -Xclang -load -Xclang ${POLLY_DLIB} ${FILE}.c -o ${FILE}.ll -S -emit-llvm -mllvm -polly -O0 -mllvm -enable-iv-rewrite.<br><br>I just tried to detect the scops myself. I used for this the following command:<br><br>alias pollycc='~/Projekte/polly/build_clang/bin/clang -Xclang -load \<br>               -Xclang ~/Projekte/polly/build_clang/lib/LLVMPolly.so'<br><br>pollycc -mllvm -polly-show test.c -c -mllvm -enable-iv-rewrite -mllvm -polly -O3<br><br>It detects all three loops. Can you reproduce this?<br><br>Cheers<br>Tobi<br><span><test.c></span></div></blockquote></div><br></body></html>