Skip to content

Commit

Permalink
Revert "[Polly][docs] Polly release notes."
Browse files Browse the repository at this point in the history
It no longer applies after d7afdb5.

This reverts commit 002af01.
  • Loading branch information
zmodem committed Feb 26, 2020
1 parent d7afdb5 commit 00f4618
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions polly/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,4 @@ In Polly 10 the following important changes have been incorporated.
the new features that have recently been committed to our development
branch.

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.
- Change ...

0 comments on commit 00f4618

Please sign in to comment.