diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-29 16:00:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-29 16:00:30 +0000 |
commit | 61acaaa0f0a136991451d6e5bef06a27479a9934 (patch) | |
tree | 4ac2e90354ef024af422876e797981b254755088 | |
parent | 16cbbe43d80387bf1dfa580b6c3ae7a352f91a7c (diff) | |
download | bcm5719-llvm-61acaaa0f0a136991451d6e5bef06a27479a9934.tar.gz bcm5719-llvm-61acaaa0f0a136991451d6e5bef06a27479a9934.zip |
Add one-past-the-end language to the inbounds keyword.
llvm-svn: 77460
-rw-r--r-- | llvm/docs/LangRef.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 2589771915f..33fc7d4ff6c 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -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 |