summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.html
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-11-24 03:41:24 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-11-24 03:41:24 +0000
commitf5ffcbcd0bd533ace574d57631ee079df73ad35f (patch)
treee67e88180767e41b0eb30d276a2229a710905ecd /llvm/docs/LangRef.html
parente4b95698df99424e287b34c76da92add5a773392 (diff)
downloadbcm5719-llvm-f5ffcbcd0bd533ace574d57631ee079df73ad35f.tar.gz
bcm5719-llvm-f5ffcbcd0bd533ace574d57631ee079df73ad35f.zip
Extend the 'noalias' attribute to function return values. This is intended to
indicate functions that allocate, such as operator new, or list::insert. The actual definition is slightly less strict (for now). No changes to the bitcode reader/writer, asm printer or verifier were needed. llvm-svn: 59934
Diffstat (limited to 'llvm/docs/LangRef.html')
-rw-r--r--llvm/docs/LangRef.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index b6ea8e9b423..bc3b40b460e 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -890,10 +890,11 @@ declare signext i8 @returns_signed_char()
return values. </dd>
<dt><tt>noalias</tt></dt>
- <dd>This indicates that the parameter does not alias any global or any other
- parameter. The caller is responsible for ensuring that this is the case,
- usually by placing the value in a stack allocation. This is not a valid
- attribute for return values.</dd>
+ <dd>This indicates that the pointer does not alias any global or any other
+ parameter. The caller is responsible for ensuring that this is the
+ case. Additionally, on a function return value <tt>noalias</tt> indicates
+ that the pointer does not alias the return value from other calls of
+ itself or other noalias functions.</dd>
<dt><tt>nest</tt></dt>
<dd>This indicates that the pointer parameter can be excised using the
@@ -3155,7 +3156,7 @@ choose to align the allocation on any convenient boundary.</p>
<h5>Semantics:</h5>
<p>Memory is allocated using the system "<tt>malloc</tt>" function, and
-a pointer is returned. The result of a zero byte allocattion is undefined. The
+a pointer is returned. The result of a zero byte allocation is undefined. The
result is null if there is insufficient memory available.</p>
<h5>Example:</h5>
OpenPOWER on IntegriCloud