[llvm-commits] [polly] r143008 - /polly/trunk/www/example_load_Polly_into_clang.html
Tobias Grosser
grosser at fim.uni-passau.de
Tue Oct 25 19:14:40 PDT 2011
Author: grosser
Date: Tue Oct 25 21:14:40 2011
New Revision: 143008
URL: http://llvm.org/viewvc/llvm-project?rev=143008&view=rev
Log:
Add forgotten -Xclang option
Reported by: yabin.hwu at gmail.com
Modified:
polly/trunk/www/example_load_Polly_into_clang.html
Modified: polly/trunk/www/example_load_Polly_into_clang.html
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/example_load_Polly_into_clang.html?rev=143008&r1=143007&r2=143008&view=diff
==============================================================================
--- polly/trunk/www/example_load_Polly_into_clang.html (original)
+++ polly/trunk/www/example_load_Polly_into_clang.html Tue Oct 25 21:14:40 2011
@@ -22,7 +22,7 @@
database</a> and consider reporting the bug.
<h2>Compiling code with Polly</h2>
-To compile code with Polly you only need to add '-load
+To compile code with Polly you only need to add '-Xclang -load -Xclang
${POLLY_BUILD_DIR}/lib/LLVMPolly.so' to your command line or your CFLAGS and
Polly is automatically executed at -O3.
@@ -31,21 +31,21 @@
you need to compile them yourself from a recent svn/git checkout</b>
</p>
-<pre class="code">clang -load ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 file.c</pre>
+<pre class="code">clang -Xclang -load -Xclang ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 file.c</pre>
<h2>Automatic OpenMP code generation</h2>
To automatically detect parallel loops and generate OpenMP code for them you
also need to add '-mllvm -enable-polly-openmp -lgomp' to your CFLAGS.
-<pre class="code">clang -load ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 -mllvm -enable-polly-openmp -lgomp file.c</pre>
+<pre class="code">clang -Xclang -load -Xclang ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 -mllvm -enable-polly-openmp -lgomp file.c</pre>
<h2>Automatic Vector code generation</h2>
Automatic vector code generation can be enabled by adding '-mllvm
-enable-polly-vector' to your CFLAGS.
-<pre class="code">clang -load ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 -mllvm -enable-polly-vector file.c</pre>
+<pre class="code">clang -Xclang -load -Xclang ${POLLY_BUILD_DIR}/lib/LLVMPolly.so -O3 -mllvm -enable-polly-vector file.c</pre>
<h2>Further options</h2>
More information about the llvm-commits
mailing list