[llvm-commits] [llvm] r77460 - /llvm/trunk/docs/LangRef.html

Dan Gohman gohman at apple.com
Wed Jul 29 09:00:31 PDT 2009


Author: djg
Date: Wed Jul 29 11:00:30 2009
New Revision: 77460

URL: http://llvm.org/viewvc/llvm-project?rev=77460&view=rev
Log:
Add one-past-the-end language to the inbounds keyword.

Modified:
    llvm/trunk/docs/LangRef.html

Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=77460&r1=77459&r2=77460&view=diff

==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Wed Jul 29 11:00:30 2009
@@ -3998,10 +3998,13 @@
 </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





More information about the llvm-commits mailing list