]> granicus.if.org Git - llvm/commitdiff
Fix a misleading phrase in the LangRef
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 13 Sep 2017 18:49:22 +0000 (18:49 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 13 Sep 2017 18:49:22 +0000 (18:49 +0000)
Reviewers: hfinkel, dberlin

Subscribers: mcrosier, llvm-commits

Differential Revision: https://reviews.llvm.org/D37432

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313170 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index 7496863029fd41cc9447b14776470eb3ce132aa2..9fd7965cb51eb5370007e08ea9effbc2d473a952 100644 (file)
@@ -2033,8 +2033,11 @@ to the following rules:
 A pointer value is *based* on another pointer value according to the
 following rules:
 
--  A pointer value formed from a ``getelementptr`` operation is *based*
-   on the second value operand of the ``getelementptr``.
+-  A pointer value formed from a scalar ``getelementptr`` operation is *based* on
+   the pointer-typed operand of the ``getelementptr``.
+-  The pointer in lane *l* of the result of a vector ``getelementptr`` operation
+   is *based* on the pointer in lane *l* of the vector-of-pointers-typed operand
+   of the ``getelementptr``.
 -  The result value of a ``bitcast`` is *based* on the operand of the
    ``bitcast``.
 -  A pointer value formed by an ``inttoptr`` is *based* on all pointer