From f04d584cae72b1172e83c47c69ea65cc55c190ac Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 14 Nov 2007 21:14:02 +0000 Subject: [PATCH] Tweak the descriptions of the new 'const' and 'pure' attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44132 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index f40e8b67506..c6cbe295465 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -814,14 +814,14 @@ a power of 2.

This indicates that the parameter can be excised using the trampoline intrinsics.
pure
-
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.
+
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.
const
-
This function attribute is slightly more stricter version - of pure function attribute. const functions are not - allowed to read global memory, so such function only examines its arguments - and has no effects except return value.
+
A const function has the same restrictions as a pure + function, but in addition it is not allowed to dereference any pointer arguments + or global variables. -- 2.34.1