[llvm-commits] CVS: llvm/docs/LangRef.html

John Criswell criswell at cs.uiuc.edu
Tue Nov 25 15:46:01 PST 2003

Changes in directory llvm/docs:

LangRef.html updated: 1.41 -> 1.42

Log message:

Fixed a small grammatical error.
Explained that function return types cannot be aggregate types.
Explained that functions with the same name but different type signatures
are considered to be different functions.

Diffs of the changes:  (+11 -2)

Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.41 llvm/docs/LangRef.html:1.42
--- llvm/docs/LangRef.html:1.41	Mon Nov 24 19:02:51 2003
+++ llvm/docs/LangRef.html	Tue Nov 25 15:45:46 2003
@@ -407,9 +407,12 @@
 <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 when to build virtual function tables
+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>
+The return type of a function type cannot be an aggregate type.
 <pre>  <returntype> (<parameter list>)<br></pre>
 <p>Where '<tt><parameter list></tt>' is a comma-separated list of
@@ -638,6 +641,12 @@
 to have predecessor basic blocks (i.e. there can not be any branches to
 the entry block of a function).  Because the block can have no
 predecessors, it also cannot have any <a href="#i_phi">PHI nodes</a>.</p>
+LLVM functions are identified by their name and type signature.  Hence, two
+functions with the same name but different parameter lists or return values
+are considered different functions, and LLVM will resolves references to each
 <!-- *********************************************************************** -->
 <div class="doc_section"> <a name="instref">Instruction Reference</a> </div>
@@ -1683,6 +1692,6 @@
 <div class="doc_footer">
 <address><a href="mailto:sabre at nondot.org">Chris Lattner</a></address>
 <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a> <br>
-Last modified: $Date: 2003/11/25 01:02:51 $ </div>
+Last modified: $Date: 2003/11/25 21:45:46 $ </div>

More information about the llvm-commits mailing list