diff options
author | Devang Patel <dpatel@apple.com> | 2008-10-07 17:48:33 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-10-07 17:48:33 +0000 |
commit | 307e8ab581007eee66176cb008366ef486f3b87c (patch) | |
tree | 00f66041fbb704c593b40706a0eddf4514d479a4 | |
parent | 9e729a2de59593b03ddf8a0acb1128ad060548e3 (diff) |
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
-rw-r--r-- | docs/LangRef.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index ad8ee8e174..6f68c810ef 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.</p> + <h5>Syntax:</h5> + +<div class="doc_code"> +<pre> +define [<a href="#linkage">linkage</a>] [<a href="#visibility">visibility</a>] [<a href="#callingconv">cconv</a>] [<a href="#paramattrs">ret attrs</a>] <ResultType> @<FunctionName> ([argument list]) [<a href="#fnattrs">fn Attrs</a>] [section "name"] [align N] [<a href="#gc">gc</a>] { ... } +</pre> +</div> + </div> @@ -2046,8 +2054,7 @@ branches or with a lookup table.</p> <h5>Syntax:</h5> <pre> - <result> = invoke [<a href="#callingconv">cconv</a>] [<a href="#pa\ -ramattrs">RetAttrs</a>] <ptr to function ty> <function ptr val>(<function args>) + <result> = invoke [<a href="#callingconv">cconv</a>] [<a href="#paramattrs">ret attrs</a>] <ptr to function ty> <function ptr val>(<function args>) [<a href="#fnattrs">fn attrs</a>] to label <normal label> unwind label <exception label> </pre> @@ -2097,7 +2104,7 @@ continued at the dynamically nearest "exception" label. <li>'<tt>exception label</tt>': the label reached when a callee returns with the <a href="#i_unwind"><tt>unwind</tt></a> instruction. </li> - <li>The optional <a href="fnattrs">function attributes</a> list. Only + <li>The optional <a href="#fnattrs">function attributes</a> list. Only '<tt>noreturn</tt>', '<tt>nounwind</tt>', '<tt>readonly</tt>' and '<tt>readnone</tt>' attributes are valid here.</li> </ol> @@ -4249,7 +4256,7 @@ by element. <h5>Syntax:</h5> <pre> - <result> = [tail] call [<a href="#callingconv">cconv</a>] [<a href="#paramattrs">RetAttrs</a>] <ty> [<fnty>*] <fnptrval>(<param list>) + <result> = [tail] call [<a href="#callingconv">cconv</a>] [<a href="#paramattrs">ret attrs</a>] <ty> [<fnty>*] <fnptrval>(<function args>) [<a href="#fnattrs">fn attrs</a>] </pre> <h5>Overview:</h5> @@ -4305,7 +4312,7 @@ by element. arguments can be specified.</p> </li> <li> - <p>The optional <a href="fnattrs">function attributes</a> list. Only + <p>The optional <a href="#fnattrs">function attributes</a> list. Only '<tt>noreturn</tt>', '<tt>nounwind</tt>', '<tt>readonly</tt>' and '<tt>readnone</tt>' attributes are valid here.</p> </li> |