[llvm] eea2176 - [Doc] update the usage of opt with mem2reg pass in tutorial (#76282)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 24 04:11:32 PST 2023
Author: youkaichao
Date: 2023-12-24T20:11:27+08:00
New Revision: eea217681d01af8935e7db7ff981daaa0541eaee
URL: https://github.com/llvm/llvm-project/commit/eea217681d01af8935e7db7ff981daaa0541eaee
DIFF: https://github.com/llvm/llvm-project/commit/eea217681d01af8935e7db7ff981daaa0541eaee.diff
LOG: [Doc] update the usage of opt with mem2reg pass in tutorial (#76282)
The current command will raise an error:
> The `opt -passname` syntax for the new pass manager is not supported,
please use `opt -passes=<pipeline>` (or the `-p` alias for a more
concise version).
Update the usage now.
Added:
Modified:
llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
Removed:
################################################################################
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
index 0347127d0cdf1d..8fd4c39d3ff47b 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
@@ -182,7 +182,7 @@ example through the pass, for example, you'll get:
.. code-block:: bash
- $ llvm-as < example.ll | opt -mem2reg | llvm-dis
+ $ llvm-as < example.ll | opt -passes=mem2reg | llvm-dis
@G = weak global i32 0
@H = weak global i32 0
More information about the llvm-commits
mailing list