Document pure/const parameter attributes

llvm-svn: 44111
This commit is contained in:
Anton Korobeynikov 2007-11-14 10:30:13 +00:00
parent 6ca98cd532
commit 46f4446bba
1 changed files with 9 additions and 0 deletions

View File

@ -813,6 +813,15 @@ a power of 2.</p>
<dt><tt>nest</tt></dt>
<dd>This indicates that the parameter can be excised using the
<a href="#int_trampoline">trampoline intrinsics</a>.</dd>
<dt><tt>pure</tt></dt>
<dd>This function attribute indicates, that the function have no effects
except the return value and its return value depends only on the
arguments and/or global variables.</dd>
<dt><tt>const</tt></dt>
<dd>This function attribute is slightly more stricter version
of <tt>pure</tt> function attribute. <tt>const</tt> functions are not
allowed to read global memory, so such function only examines its arguments
and has no effects except return value.</dd>
</dl>
</div>