diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-13 18:49:22 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-13 18:49:22 +0000 |
commit | 65bdf0ae4a87e6992c24f06e2612909952468710 (patch) | |
tree | 7965a7b4bfc441fd7e0a1a4222f7d917fdfbb682 /docs | |
parent | c208bb49457f0ce2f71060a0ba93ee4bbde2d58a (diff) | |
download | llvm-65bdf0ae4a87e6992c24f06e2612909952468710.tar.gz |
Fix a misleading phrase in the LangRef
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 7496863029f..9fd7965cb51 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -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 |