diff options
| author | Sean Silva <silvas@purdue.edu> | 2012-12-20 22:42:20 +0000 |
|---|---|---|
| committer | Sean Silva <silvas@purdue.edu> | 2012-12-20 22:42:20 +0000 |
| commit | 99e12f91a6a68cda22e6af3d25f44d025d2ff58a (patch) | |
| tree | 1d4efe050b8218959546a0a034fd69030f6b5e62 | |
| parent | 9453721985364c5b892cb81b79cdf88a4cd8315a (diff) | |
| download | bcm5719-llvm-99e12f91a6a68cda22e6af3d25f44d025d2ff58a.tar.gz bcm5719-llvm-99e12f91a6a68cda22e6af3d25f44d025d2ff58a.zip | |
docs: Improve navigation for Vectorizers.rst
Add links in the intro paragraph.
Add table of contents.
llvm-svn: 170790
| -rw-r--r-- | llvm/docs/Vectorizers.rst | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/llvm/docs/Vectorizers.rst b/llvm/docs/Vectorizers.rst index fc1f212ca9e..d5bc90b0a4e 100644 --- a/llvm/docs/Vectorizers.rst +++ b/llvm/docs/Vectorizers.rst @@ -2,12 +2,18 @@ Auto-Vectorization in LLVM ========================== -LLVM has two vectorizers: The *Loop Vectorizer*, which operates on Loops, -and the *Basic Block Vectorizer*, which optimizes straight-line code. These -vectorizers focus on different optimization opportunities and use different -techniques. The BB vectorizer merges multiple scalars that are found in the -code into vectors while the Loop Vectorizer widens instructions in the -original loop to operate on multiple consecutive loop iterations. +.. contents:: + :local: + +LLVM has two vectorizers: The :ref:`Loop Vectorizer <loop-vectorizer>`, +which operates on Loops, and the :ref:`Basic Block Vectorizer +<bb-vectorizer>`, which optimizes straight-line code. These vectorizers +focus on different optimization opportunities and use different techniques. +The BB vectorizer merges multiple scalars that are found in the code into +vectors while the Loop Vectorizer widens instructions in the original loop +to operate on multiple consecutive loop iterations. + +.. _loop-vectorizer: The Loop Vectorizer =================== @@ -209,6 +215,8 @@ The Y-axis shows the time in msec. Lower is better. The last column shows the ge .. image:: gcc-loops.png :width: 100% +.. _bb-vectorizer: + The Basic Block Vectorizer ========================== |

