From eea217681d01af8935e7db7ff981daaa0541eaee Mon Sep 17 00:00:00 2001 From: youkaichao Date: Sun, 24 Dec 2023 20:11:27 +0800 Subject: [PATCH] [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=` (or the `-p` alias for a more concise version). Update the usage now. --- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst index 0347127d0cdf..8fd4c39d3ff4 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