[polly] r268034 - doc: A source code with Polly does not use a separate module (by default)

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 05:35:47 PDT 2016


Author: grosser
Date: Fri Apr 29 07:35:46 2016
New Revision: 268034

URL: http://llvm.org/viewvc/llvm-project?rev=268034&view=rev
Log:
doc: A source code with Polly does not use a separate module (by default)

Modified:
    polly/trunk/docs/ReleaseNotes.rst
    polly/trunk/docs/UsingPollyWithClang.rst
    polly/trunk/www/index.html

Modified: polly/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/docs/ReleaseNotes.rst?rev=268034&r1=268033&r2=268034&view=diff
==============================================================================
--- polly/trunk/docs/ReleaseNotes.rst (original)
+++ polly/trunk/docs/ReleaseNotes.rst Fri Apr 29 07:35:46 2016
@@ -10,6 +10,27 @@ In Polly 3.9 the following important cha
   the new features that have recently been committed to our development
   branch.
 
+Polly directly available in clang/opt/bugpoint
+----------------------------------------------
+
+Polly supported since a long time to be directly linked into tools such as
+opt/clang/bugpoint. Since this release, the default for a source checkout that
+contains Polly is to provide Polly directly through these tools, rather than as
+an additional module. This makes using Polly significantly easier.
+
+Instead of
+
+.. code-block:: bash
+    opt -load lib/LLVMPolly.so -O3 -polly file.ll
+    clang -Xclang -load -Xclang lib/LLVMPolly.so -O3 -mllvm -polly file.ll
+
+one can now use
+
+.. code-block:: bash
+    opt -O3 -polly file.ll
+    clang -O3 -mllvm -polly file.c
+
+
 Increased analysis coverage
 ---------------------------
 

Modified: polly/trunk/docs/UsingPollyWithClang.rst
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/docs/UsingPollyWithClang.rst?rev=268034&r1=268033&r2=268034&view=diff
==============================================================================
--- polly/trunk/docs/UsingPollyWithClang.rst (original)
+++ polly/trunk/docs/UsingPollyWithClang.rst Fri Apr 29 07:35:46 2016
@@ -14,28 +14,8 @@ optimize C/C++ code during compilation.
 Make Polly available from Clang
 ===============================
 
-By default Polly is configured as a shared library plugin that is loaded in
-tools like clang, opt, and bugpoint when they start their execution. By loading
-Polly into clang (or opt) the Polly options become automatically available. You
-can load Polly either by adding the relevant commands to the CPPFLAGS or by
-creating an alias.
-
-.. code-block:: console
-
-  $ export CPPFLAGS="-Xclang -load -Xclang ${POLLY_BUILD_DIR}/lib/LLVMPolly.so"
-
-or
-
-.. code-block:: console
-
-  $ alias pollycc clang -Xclang -load -Xclang ${POLLY_BUILD_DIR}/lib/LLVMPolly.so
-
-To avoid having to load Polly in the tools, Polly can optionally be configured
-with cmake to be statically linked in the tools:
-
-.. code-block:: console
-
-  $ cmake -D LINK_POLLY_INTO_TOOLS:Bool=ON
+Polly is available through clang, opt, and bugpoint, if Polly was checked out
+into tools/polly before compilation. No further configuration is needed.
 
 Optimizing with Polly
 =====================
@@ -45,7 +25,7 @@ flags (Polly is only available at -O3).
 
 .. code-block:: console
 
-  pollycc -O3 -mllvm -polly file.c
+  clang -O3 -mllvm -polly file.c
 
 Automatic OpenMP code generation
 ================================
@@ -55,7 +35,7 @@ also need to add -mllvm -polly-parallel
 
 .. code-block:: console
 
-  pollycc -O3 -mllvm -polly -mllvm -polly-parallel -lgomp file.c
+  clang -O3 -mllvm -polly -mllvm -polly-parallel -lgomp file.c
 
 Automatic Vector code generation
 ================================
@@ -65,7 +45,7 @@ Automatic vector code generation can be
 
 .. code-block:: console
 
-  pollycc -O3 -mllvm -polly -mllvm -polly-vectorizer=stripmine file.c
+  clang -O3 -mllvm -polly -mllvm -polly-vectorizer=stripmine file.c
 
 Extract a preoptimized LLVM-IR file
 ===================================
@@ -78,7 +58,7 @@ preparing transformations have been appl
 
 .. code-block:: console
 
-  pollycc -O0 -mllvm -polly -S -emit-llvm file.c
+  clang -O0 -mllvm -polly -S -emit-llvm file.c
 
 Further options
 ===============

Modified: polly/trunk/www/index.html
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/index.html?rev=268034&r1=268033&r2=268034&view=diff
==============================================================================
--- polly/trunk/www/index.html (original)
+++ polly/trunk/www/index.html Fri Apr 29 07:35:46 2016
@@ -43,6 +43,14 @@
   <!--=====================================================================-->
 
   <table id="news">
+  <tr><td><b>2016</b></td></tr>
+  <tr><td width="120"><p>April</p></td>
+  <td>
+    A source checkout that contains Polly now provides Polly functionality
+    by default in clang/opt/bugpoint without the need to load an additional
+    module.
+  </td>
+  </tr>
   <tr><td><b>2015</b></td></tr>
   <tr><td width="120"><p>July</p></td>
   <td>




More information about the llvm-commits mailing list