[llvm-branch-commits] [polly] 002af01 - [Polly][docs] Polly release notes.

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 25 20:42:39 PST 2020


Author: Michael Kruse
Date: 2020-02-25T22:38:36-06:00
New Revision: 002af0119286297dbd76b08a4a6cc4b6b87d3f26

URL: https://github.com/llvm/llvm-project/commit/002af0119286297dbd76b08a4a6cc4b6b87d3f26
DIFF: https://github.com/llvm/llvm-project/commit/002af0119286297dbd76b08a4a6cc4b6b87d3f26.diff

LOG: [Polly][docs] Polly release notes.

In release 10.0, Polly is not linked into opt/bugpoint/clang by default
anymore. Add workarounds in release notes.

Added: 
    

Modified: 
    polly/docs/ReleaseNotes.rst

Removed: 
    


################################################################################
diff  --git a/polly/docs/ReleaseNotes.rst b/polly/docs/ReleaseNotes.rst
index 1d9aacc9aa68..5f49e619976d 100644
--- a/polly/docs/ReleaseNotes.rst
+++ b/polly/docs/ReleaseNotes.rst
@@ -10,4 +10,44 @@ In Polly 10 the following important changes have been incorporated.
   the new features that have recently been committed to our development
   branch.
 
-- Change ...
+Statically Linking of Polly
+===========================
+
+The mechanism that Polly uses to link itself statically into the opt, bugpoint and clang executables has been generalized such that it can be used by other pass plugins. An example plugin "Bye" has been added to illustate the mechanism. A consequence of this change is that Polly, like the "Bye" plugin, by default is not linked statically into aforementioned executables anymore.
+
+If Polly is not available, the executable will report an unkown argument `-polly`, such as
+
+.. code-block:: console
+
+    $ clang -mllvm -polly -x c -
+    clang (LLVM option parsing): Unknown command line argument '-polly'.  Try: 'clang (LLVM option parsing) --help'
+    clang (LLVM option parsing): Did you mean '--color'?
+
+.. code-block:: console
+
+    $ opt -polly
+    opt: for the -o option: may not occur within a group!
+    opt: Unknown command line argument '-polly'.  Try: 'opt --help'
+    opt: Did you mean '-o'?
+
+Polly can be made available using the following methods.
+
+- Configure LLVM/Clang with the CMake options LLVM_POLLY_LINK_INTO_TOOLS=ON and LLVM_ENABLE_PROJECTS=polly.
+
+  .. code-block:: console
+
+    $ cmake -DLLVM_POLLY_LINK_INTO_TOOLS=ON -DLLVM_ENABLE_PROJECTS=clang;polly ...
+
+  In future versions, LLVM_POLLY_LINK_INTO_TOOLS=ON will be default again if Polly has been enabled.
+
+- Use the `-load` option to load the Polly module.
+
+  .. code-block:: console
+
+    $ clang -Xclang -load -Xclang path/to/LLVMPolly.so ...
+
+  .. code-block:: console
+
+    $ opt -load path/to/LLVMPolly.so ...
+
+  The LLVMPolly.so module can be found in the `lib/` directory of the build or install-prefix directory.


        


More information about the llvm-branch-commits mailing list