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

Dan Gohman gohman at apple.com
Mon Nov 9 11:01:53 PST 2009


Author: djg
Date: Mon Nov  9 13:01:53 2009
New Revision: 86576

URL: http://llvm.org/viewvc/llvm-project?rev=86576&view=rev
Log:
The inbounds keyword isn't relevant to overindexing of
static array types. Thanks to Duncan for pointing this out!

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=86576&r1=86575&r2=86576&view=diff

==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Mon Nov  9 13:01:53 2009
@@ -1576,13 +1576,12 @@
   </tr>
 </table>
 
-<p>Except when the <tt>inbounds</tt> keyword is present, there is no limitation
-   on indexing beyond the end of the array implied by the static type (though
-   any loads or stores must of course be within the bounds of the allocated
-   object!). This means that single-dimension 'variable sized array' addressing
-   can be implemented in LLVM with a zero length array type. An implementation
-   of 'pascal style arrays' in LLVM could use the type
-   "<tt>{ i32, [0 x float]}</tt>", for example.</p>
+<p>There is no restriction on indexing beyond the end of the array implied by
+   a static type (though there are restrictions on indexing beyond the bounds
+   of an allocated object in some cases). This means that single-dimension
+   'variable sized array' addressing can be implemented in LLVM with a zero
+   length array type. An implementation of 'pascal style arrays' in LLVM could
+   use the type "<tt>{ i32, [0 x float]}</tt>", for example.</p>
 
 <p>Note that the code generator does not yet support large aggregate types to be
    used as function return types. The specific limit on how large an aggregate





More information about the llvm-commits mailing list