diff options
| author | Dan Gohman <gohman@apple.com> | 2009-11-09 19:01:53 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-11-09 19:01:53 +0000 |
| commit | c74bc28297070c0e99d638b5326c014287473531 (patch) | |
| tree | ded76051406f6bd37532cf65b8f0330783167b22 /llvm/docs/LangRef.html | |
| parent | f324dd65f846981511135ba02285421b9f56dccb (diff) | |
| download | bcm5719-llvm-c74bc28297070c0e99d638b5326c014287473531.tar.gz bcm5719-llvm-c74bc28297070c0e99d638b5326c014287473531.zip | |
The inbounds keyword isn't relevant to overindexing of
static array types. Thanks to Duncan for pointing this out!
llvm-svn: 86576
Diffstat (limited to 'llvm/docs/LangRef.html')
| -rw-r--r-- | llvm/docs/LangRef.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index be2b93b5a03..ab656d89a7e 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -1576,13 +1576,12 @@ Classifications</a> </div> </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 |

