From: Devang Patel Date: Tue, 7 Oct 2008 17:48:33 +0000 (+0000) Subject: Improve function definition, call and invoke instruction docs. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=307e8ab581007eee66176cb008366ef486f3b87c;p=oota-llvm.git Improve function definition, call and invoke instruction docs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index ad8ee8e174f..6f68c810ef7 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -784,6 +784,14 @@ to whatever it feels convenient. If an explicit alignment is specified, the function is forced to have at least that much alignment. All alignments must be a power of 2.

+
Syntax:
+ +
+
+define [linkage] [visibility] [cconv] [ret attrs] <ResultType> @<FunctionName> ([argument list]) [fn Attrs] [section "name"] [align N] [gc] { ... }
+
+
+ @@ -2046,8 +2054,7 @@ branches or with a lookup table.

Syntax:
-  <result> = invoke [cconv] [RetAttrs] <ptr to function ty> <function ptr val>(<function args>) 
+  <result> = invoke [cconv] [ret attrs] <ptr to function ty> <function ptr val>(<function args>) [fn attrs]
                 to label <normal label> unwind label <exception label>
 
@@ -2097,7 +2104,7 @@ continued at the dynamically nearest "exception" label.
  • 'exception label': the label reached when a callee returns with the unwind instruction.
  • -
  • The optional function attributes list. Only +
  • The optional function attributes list. Only 'noreturn', 'nounwind', 'readonly' and 'readnone' attributes are valid here.
  • @@ -4249,7 +4256,7 @@ by element.
    Syntax:
    -  <result> = [tail] call [cconv] [RetAttrs] <ty> [<fnty>*] <fnptrval>(<param list>)
    +  <result> = [tail] call [cconv] [ret attrs] <ty> [<fnty>*] <fnptrval>(<function args>) [fn attrs]
     
    Overview:
    @@ -4305,7 +4312,7 @@ by element. arguments can be specified.

  • -

    The optional function attributes list. Only +

    The optional function attributes list. Only 'noreturn', 'nounwind', 'readonly' and 'readnone' attributes are valid here.