mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 05:11:15 +00:00
Adjust documentation to old -enable-polly-openmp -> -polly-parallel rename
Reported-by: Tomofumi Yuki <tomofumi.yuki@gmail.com> llvm-svn: 234124
This commit is contained in:
parent
67e6a5499c
commit
51b7298fa8
@ -59,9 +59,9 @@ compiler flags (Polly is only available at -O3).
|
||||
<h2>Automatic OpenMP code generation</h2>
|
||||
|
||||
To automatically detect parallel loops and generate OpenMP code for them you
|
||||
also need to add <b>-mllvm -enable-polly-openmp -lgomp</b> to your CFLAGS.
|
||||
also need to add <b>-mllvm -polly-parallel -lgomp</b> to your CFLAGS.
|
||||
|
||||
<pre class="code">pollycc -O3 -mllvm -polly -mllvm -enable-polly-openmp -lgomp file.c</pre>
|
||||
<pre class="code">pollycc -O3 -mllvm -polly -mllvm -polly-parallel -lgomp file.c</pre>
|
||||
|
||||
<h2>Automatic Vector code generation</h2>
|
||||
|
||||
|
@ -401,7 +401,7 @@ Reading JScop 'for.cond => for.end30' in function 'main' from
|
||||
<pre class="code">
|
||||
opt -basicaa \
|
||||
-polly-import-jscop -polly-import-jscop-postfix=interchanged+tiled+vector \
|
||||
-polly-codegen -polly-vectorizer=polly -enable-polly-openmp matmul.preopt.ll \
|
||||
-polly-codegen -polly-vectorizer=polly -polly-parallel matmul.preopt.ll \
|
||||
| opt -O3 > matmul.polly.interchanged+tiled+openmp.ll</pre>
|
||||
<pre>
|
||||
Reading JScop 'for.cond => for.end19' in function 'init_array' from
|
||||
|
@ -60,7 +60,7 @@ opt -basicaa -polly-import-jscop \
|
||||
| opt -O3 > matmul.polly.interchanged+tiled+vector.ll
|
||||
opt -basicaa -polly-import-jscop \
|
||||
-polly-import-jscop-postfix=interchanged+tiled+vector -polly-codegen \
|
||||
matmul.preopt.ll -polly-vectorizer=polly -enable-polly-openmp\
|
||||
matmul.preopt.ll -polly-vectorizer=polly -polly-parallel\
|
||||
| opt -O3 > matmul.polly.interchanged+tiled+vector+openmp.ll
|
||||
opt matmul.preopt.ll | opt -O3 > matmul.normalopt.ll
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user