diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-14 10:30:13 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-14 10:30:13 +0000 |
| commit | 46f4446bba5655a82e73439b5fd2139fd6ed3e2b (patch) | |
| tree | 6accd600762730f1be72f932b2c67a74624f272f /llvm/docs/LangRef.html | |
| parent | 6ca98cd5328f862586d4908449a38d105cee643d (diff) | |
| download | bcm5719-llvm-46f4446bba5655a82e73439b5fd2139fd6ed3e2b.tar.gz bcm5719-llvm-46f4446bba5655a82e73439b5fd2139fd6ed3e2b.zip | |
Document pure/const parameter attributes
llvm-svn: 44111
Diffstat (limited to 'llvm/docs/LangRef.html')
| -rw-r--r-- | llvm/docs/LangRef.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 46ec87eed26..f40e8b67506 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -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> |

