diff --git a/llvm/docs/WritingAnLLVMPass.rst b/llvm/docs/WritingAnLLVMPass.rst index b9ba13f302f1..88f481ba6b07 100644 --- a/llvm/docs/WritingAnLLVMPass.rst +++ b/llvm/docs/WritingAnLLVMPass.rst @@ -916,7 +916,7 @@ be registered with :ref:`RegisterAnalysisGroup As a concrete example of an Analysis Group in action, consider the `AliasAnalysis `_ analysis group. The default implementation of the alias analysis interface -(the `basicaa `_ pass) +(the `basic-aa `_ pass) just does a few simple checks that don't require significant analysis to compute (such as: two different globals can never alias each other, etc). Passes that use the `AliasAnalysis @@ -926,7 +926,7 @@ care which implementation of alias analysis is actually provided, they just use the designated interface. From the user's perspective, commands work just like normal. Issuing the -command ``opt -gvn ...`` will cause the ``basicaa`` class to be instantiated +command ``opt -gvn ...`` will cause the ``basic-aa`` class to be instantiated and added to the pass sequence. Issuing the command ``opt -somefancyaa -gvn ...`` will cause the ``gvn`` pass to use the ``somefancyaa`` alias analysis (which doesn't actually exist, it's just a hypothetical example) instead. @@ -970,7 +970,7 @@ Every implementation of an analysis group should join using this macro. namespace { // Declare that we implement the AliasAnalysis interface - INITIALIZE_AG_PASS(BasicAA, AliasAnalysis, "basicaa", + INITIALIZE_AG_PASS(BasicAA, AliasAnalysis, "basic-aa", "Basic Alias Analysis (default AA impl)", false, // Is CFG Only? true, // Is Analysis?