diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-24 05:35:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-24 05:35:41 +0000 |
commit | d4ba41de8e6ca9da13be033871d9d6d6dbe5a479 (patch) | |
tree | 81d9233f996641f4f601556510f23cf81ed1c917 /docs/LangRef.html | |
parent | e856f8e9a8d7e55f68162038b80c2d9d603fa7dc (diff) | |
download | external_llvm-d4ba41de8e6ca9da13be033871d9d6d6dbe5a479.zip external_llvm-d4ba41de8e6ca9da13be033871d9d6d6dbe5a479.tar.gz external_llvm-d4ba41de8e6ca9da13be033871d9d6d6dbe5a479.tar.bz2 |
Update Function type documentation to clarify how multiple return values are supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 096acf2..8122d43 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1225,8 +1225,10 @@ type "{ i32, [0 x float]}", for example.</p> <div class="doc_text"> <h5>Overview:</h5> <p>The function type can be thought of as a function signature. It -consists of a return type and a list of formal parameter types. -Function types are usually used to build virtual function tables +consists of a return type and a list of formal parameter types. The +return type of a function type is a scalar type or a struct type. If the +return type is a struct type then all struct elements must be of a first +class type. Function types are usually used to build virtual function tables (which are structures of pointers to functions), for indirect function calls, and when defining a function.</p> @@ -1260,6 +1262,11 @@ Variable argument functions can access their arguments with the <a which returns an integer. This is the signature for <tt>printf</tt> in LLVM. </td> + </tr><tr class="layout"> + <td class="left"><tt>{i32, i32} (i32)</tt></td> + <td class="left">A function taking an <tt>i32></tt>, returning two values + <tt> i32 </tt> as an arggregate of type <tt>{ i32, i32 }</tt> + </td> </tr> </table> |