aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authoryoukaichao <youkaichao@gmail.com>2023-12-24 20:11:27 +0800
committerGitHub <noreply@github.com>2023-12-24 20:11:27 +0800
commiteea217681d01af8935e7db7ff981daaa0541eaee (patch)
tree50007ca87b01b07ea57a1e841f9b82465e5acb56 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent1479fe849249ce628ebd3058bed5d9db7d413a3e (diff)
downloadllvm-eea217681d01af8935e7db7ff981daaa0541eaee.zip
llvm-eea217681d01af8935e7db7ff981daaa0541eaee.tar.gz
llvm-eea217681d01af8935e7db7ff981daaa0541eaee.tar.bz2
[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.
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
index 0347127..8fd4c39d 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