aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2012-12-20 22:42:20 +0000
committerSean Silva <silvas@purdue.edu>2012-12-20 22:42:20 +0000
commit12ae515945baa9bc1b524c0fc4005acd5c81587e (patch)
tree4e72f7926c98c9fc216a631b32363dce6da63643 /docs
parent1dd00fb4f2517d7b6fc3e01bd65174b33ece35e9 (diff)
downloadexternal_llvm-12ae515945baa9bc1b524c0fc4005acd5c81587e.zip
external_llvm-12ae515945baa9bc1b524c0fc4005acd5c81587e.tar.gz
external_llvm-12ae515945baa9bc1b524c0fc4005acd5c81587e.tar.bz2
docs: Improve navigation for Vectorizers.rst
Add links in the intro paragraph. Add table of contents. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/Vectorizers.rst20
1 files changed, 14 insertions, 6 deletions
diff --git a/docs/Vectorizers.rst b/docs/Vectorizers.rst
index fc1f212..d5bc90b 100644
--- a/docs/Vectorizers.rst
+++ b/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
==========================