[llvm] r355930 - [Docs] Add note about legacy PM to Ch4 of tutorial
Kristina Brooks via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 08:44:19 PDT 2019
Author: kristina
Date: Tue Mar 12 08:44:18 2019
New Revision: 355930
URL: http://llvm.org/viewvc/llvm-project?rev=355930&view=rev
Log:
[Docs] Add note about legacy PM to Ch4 of tutorial
Add a note about legacy FunctionPassManager to the LLVM tutorial.
It seems to confuse some people, worth adding a warning to the tutorial
to elaborate and suggest using `llvm::legacy::FunctionPassManager` for
now. Not a perfect solution but hopefully will avoid confusion
in the meantime.
Differential Revision: https://reviews.llvm.org/D59258
Modified:
llvm/trunk/docs/tutorial/LangImpl04.rst
Modified: llvm/trunk/docs/tutorial/LangImpl04.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl04.rst?rev=355930&r1=355929&r2=355930&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl04.rst (original)
+++ llvm/trunk/docs/tutorial/LangImpl04.rst Tue Mar 12 08:44:18 2019
@@ -94,6 +94,14 @@ use, in the form of "passes".
LLVM Optimization Passes
========================
+.. warning::
+
+ Due to the transition to the new PassManager infrastructure this tutorial
+ is based on ``llvm::legacy::FunctionPassManager`` which can be found in
+ `LegacyPassManager.h <http://llvm.org/doxygen/classllvm_1_1legacy_1_1FunctionPassManager.html>`_.
+ For the purpose of the this tutorial the above should be used until
+ the pass manager transition is complete.
+
LLVM provides many optimization passes, which do many different sorts of
things and have different tradeoffs. Unlike other systems, LLVM doesn't
hold to the mistaken notion that one set of optimizations is right for
More information about the llvm-commits
mailing list