From 2fa87ab52476fcf5554c0e57a555dcc10b8730e1 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 10 Feb 2022 14:24:04 -0800 Subject: [docs] Replace `opt -analyze` with better alternatives. `opt -analyze` is legacy PM-specific. Show better ways of doing the same thing, generally with some sort of `-passes=print`. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D119486 --- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend') diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst index cc7ffe5..b517844 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl05.rst @@ -214,7 +214,7 @@ Kaleidoscope looks like this: To visualize the control flow graph, you can use a nifty feature of the LLVM '`opt `_' tool. If you put this LLVM -IR into "t.ll" and run "``llvm-as < t.ll | opt -analyze -view-cfg``", `a +IR into "t.ll" and run "``llvm-as < t.ll | opt -passes=view-cfg``", `a window will pop up <../../ProgrammersManual.html#viewing-graphs-while-debugging-code>`_ and you'll see this graph: -- cgit v1.1