From e3dfc1cbf1e9ec1ef0c3e2574cde8f3a9e796558 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 24 Mar 2008 05:35:41 +0000 Subject: Update Function type documentation to clarify how multiple return values are supported. llvm-svn: 48721 --- llvm/docs/LangRef.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'llvm/docs') diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 096acf294a9..8122d4356cd 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -1225,8 +1225,10 @@ type "{ i32, [0 x float]}", for example.

Overview:

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.

@@ -1260,6 +1262,11 @@ Variable argument functions can access their arguments with the printf in LLVM. + + {i32, i32} (i32) + A function taking an i32>, returning two values + i32 as an arggregate of type { i32, i32 } + -- cgit v1.2.3