diff options
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/LoopTerminology.rst | 1 | ||||
-rw-r--r-- | llvm/docs/WritingAnLLVMPass.rst | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/LoopTerminology.rst b/llvm/docs/LoopTerminology.rst index 7306167de65..e901720e23e 100644 --- a/llvm/docs/LoopTerminology.rst +++ b/llvm/docs/LoopTerminology.rst @@ -1,3 +1,4 @@ +.. _loop-terminology: =========================================== LLVM Loop Terminology (and Canonical Forms) =========================================== diff --git a/llvm/docs/WritingAnLLVMPass.rst b/llvm/docs/WritingAnLLVMPass.rst index 386f3d61d0e..ddf045acb74 100644 --- a/llvm/docs/WritingAnLLVMPass.rst +++ b/llvm/docs/WritingAnLLVMPass.rst @@ -538,9 +538,9 @@ compiled. The ``LoopPass`` class ---------------------- -All ``LoopPass`` execute on each loop in the function independent of all of the -other loops in the function. ``LoopPass`` processes loops in loop nest order -such that outer most loop is processed last. +All ``LoopPass`` execute on each :ref:`loop <loop-terminology>` in the function +independent of all of the other loops in the function. ``LoopPass`` processes +loops in loop nest order such that outer most loop is processed last. ``LoopPass`` subclasses are allowed to update loop nest using ``LPPassManager`` interface. Implementing a loop pass is usually straightforward. |