[llvm-commits] [llvm] r44111 - /llvm/trunk/docs/LangRef.html
Anton Korobeynikov
asl at math.spbu.ru
Wed Nov 14 02:30:19 PST 2007
Author: asl
Date: Wed Nov 14 04:30:13 2007
New Revision: 44111
URL: http://llvm.org/viewvc/llvm-project?rev=44111&view=rev
Log:
Document pure/const parameter attributes
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=44111&r1=44110&r2=44111&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Wed Nov 14 04:30:13 2007
@@ -813,6 +813,15 @@
<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>
More information about the llvm-commits
mailing list