diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-22 20:23:04 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-22 20:23:04 +0000 |
commit | 13e13f867ab6a322cdbdb382d805be98ab31f1b9 (patch) | |
tree | 059e19141a8d11daa4606a65b06ffc2d817dc166 /docs/LangRef.html | |
parent | 4cb604b00eeb4b8460be6dba3bf0c87f7a3a3b0c (diff) | |
download | external_llvm-13e13f867ab6a322cdbdb382d805be98ab31f1b9.zip external_llvm-13e13f867ab6a322cdbdb382d805be98ab31f1b9.tar.gz external_llvm-13e13f867ab6a322cdbdb382d805be98ab31f1b9.tar.bz2 |
Rename the 'const' parameter attribute to 'readnone',
and the 'pure' parameter attribute to 'readonly'.
Names suggested by DannyB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 9c4bbf0..0c2f8ca 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -813,13 +813,13 @@ 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> + <dt><tt>readonly</tt></dt> <dd>This function attribute indicates that the function has no side-effects - except for producing a return value. The value returned must only depend on - the function arguments and/or global variables. It may use values obtained - by dereferencing pointers.</dd> - <dt><tt>const</tt></dt> - <dd>A <tt>const</tt> function has the same restrictions as a <tt>pure</tt> + except for producing a return value or throwing an exception. The value + returned must only depend on the function arguments and/or global variables. + It may use values obtained by dereferencing pointers.</dd> + <dt><tt>readnone</tt></dt> + <dd>A <tt>readnone</tt> function has the same restrictions as a <tt>readonly</tt> function, but in addition it is not allowed to dereference any pointer arguments or global variables. </dl> |