[llvm-commits] [llvm] r170790 - /llvm/trunk/docs/Vectorizers.rst

Sean Silva silvas at purdue.edu
Thu Dec 20 14:42:20 PST 2012


Author: silvas
Date: Thu Dec 20 16:42:20 2012
New Revision: 170790

URL: http://llvm.org/viewvc/llvm-project?rev=170790&view=rev
Log:
docs: Improve navigation for Vectorizers.rst

Add links in the intro paragraph.
Add table of contents.

Modified:
    llvm/trunk/docs/Vectorizers.rst

Modified: llvm/trunk/docs/Vectorizers.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Vectorizers.rst?rev=170790&r1=170789&r2=170790&view=diff
==============================================================================
--- llvm/trunk/docs/Vectorizers.rst (original)
+++ llvm/trunk/docs/Vectorizers.rst Thu Dec 20 16:42:20 2012
@@ -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 @@
 .. image:: gcc-loops.png
    :width: 100%
 
+.. _bb-vectorizer:
+
 The Basic Block Vectorizer
 ==========================
 





More information about the llvm-commits mailing list