Add one-past-the-end language to the inbounds keyword.
authorDan Gohman <gohman@apple.com>
Wed, 29 Jul 2009 16:00:30 +0000 (16:00 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 29 Jul 2009 16:00:30 +0000 (16:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77460 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 2589771915f1cd1349b5c96da245c9d43da26b9b..33fc7d4ff6cbc23b1596a8109623810510ae6741 100644 (file)
@@ -3998,10 +3998,13 @@ entry:
 </pre>
 
 <p>If the <tt>inbounds</tt> keyword is present, the result value of the
-   <tt>getelementptr</tt> is undefined if the base pointer is not pointing
-   into an allocated object, or if any of the addresses formed by successive
-   addition of the offsets implied by the indices to the base address is
-   outside of the allocated object into which the base pointer points.</p>
+   <tt>getelementptr</tt> is undefined if the base pointer is not an
+   <i>in bounds</i> address of an allocated object, or if any of the addresses
+   formed by successive addition of the offsets implied by the indices to
+   the base address are not an <i>in bounds</i> address of that allocated
+   object.
+   The <i>in bounds</i> addresses for an allocated object are all the addresses
+   that point into the object, plus the address one past the end.</p>
 
 <p>If the <tt>inbounds</tt> keyword is not present, the offsets are added to
    the base address with silently-wrapping two's complement arithmetic, and