[llvm] [NFC][Docs] Update opt examples in AliasAnalysis.rst (PR #96918)

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 08:20:07 PDT 2024


https://github.com/danilaml created https://github.com/llvm/llvm-project/pull/96918

Use NPM syntax for examples

>From ac2ed45cafec8e80aec32a6e1835a9ce23e246ba Mon Sep 17 00:00:00 2001
From: Danila Malyutin <danilaml at users.noreply.github.com>
Date: Thu, 27 Jun 2024 19:17:41 +0400
Subject: [PATCH]  [NFC][Docs] Update opt examples in AliasAnalysis.rst

Use NPM syntax for examples
---
 llvm/docs/AliasAnalysis.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/docs/AliasAnalysis.rst b/llvm/docs/AliasAnalysis.rst
index 7afe0e277bd4f..cbdaad607e628 100644
--- a/llvm/docs/AliasAnalysis.rst
+++ b/llvm/docs/AliasAnalysis.rst
@@ -287,7 +287,7 @@ implementing, you just override the interfaces you can improve.
 -----------------------------------
 
 Every alias analysis pass chains to another alias analysis implementation (for
-example, the user can specify "``-basic-aa -ds-aa -licm``" to get the maximum
+example, the user can specify "``-aa-pipeline=basic-aa,ds-aa -passes=licm``" to get the maximum
 benefit from both alias analyses).  The alias analysis class automatically
 takes care of most of this for methods that you don't override.  For methods
 that you do override, in code paths that return a conservative MayAlias or
@@ -650,7 +650,7 @@ implementations.  You can use them with commands like:
 
 .. code-block:: bash
 
-  % opt -ds-aa -aa-eval foo.bc -disable-output -stats
+  % opt -aa-pipeline=basic-aa -passes=aa-eval foo.bc -disable-output -stats
 
 The ``-print-alias-sets`` pass
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -661,7 +661,7 @@ you're using the ``AliasSetTracker`` class.  To use it, use something like:
 
 .. code-block:: bash
 
-  % opt -ds-aa -print-alias-sets -disable-output
+  % opt -aa-pipeline=basic-aa -passes=print-alias-sets -disable-output
 
 The ``-aa-eval`` pass
 ^^^^^^^^^^^^^^^^^^^^^



More information about the llvm-commits mailing list