[llvm-commits] [llvm] r70788 - /llvm/trunk/docs/LangRef.html
    Chris Lattner 
    sabre at nondot.org
       
    Sun May  3 11:49:38 PDT 2009
    
    
  
Author: lattner
Date: Sun May  3 13:49:37 2009
New Revision: 70788
URL: http://llvm.org/viewvc/llvm-project?rev=70788&view=rev
Log:
be very explicit that readnone/readonly functions can't
throw exceptions.
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=70788&r1=70787&r2=70788&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Sun May  3 13:49:37 2009
@@ -1066,7 +1066,8 @@
 pointer arguments or otherwise accessing any mutable state (e.g. memory, control
 registers, etc) visible to caller functions.  It does not write through any
 pointer arguments (including <tt><a href="#byval">byval</a></tt> arguments) and
-never changes any state visible to callers.</dd>
+never changes any state visible to callers.  readnone functions may not throw
+an exception that escapes into the caller.</dd>
 
 <dt><tt><a name="readonly">readonly</a></tt></dt>
 <dd>This attribute indicates that the function does not write through any
@@ -1075,7 +1076,8 @@
 caller functions.  It may dereference pointer arguments and read state that may
 be set in the caller.  A readonly function always returns the same value (or
 throws the same exception) when called with the same set of arguments and global
-state.</dd>
+state.  readonly functions may not throw an exception that escapes into the
+caller.</dd>
 
 <dt><tt><a name="ssp">ssp</a></tt></dt>
 <dd>This attribute indicates that the function should emit a stack smashing
    
    
More information about the llvm-commits
mailing list