Clean up some typos and formatting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-31 07:18:34 +00:00
parent ca86e16032
commit 92f8230f01

View File

@ -652,10 +652,10 @@ an optional <a href="#linkage">linkage type</a>, an optional
<a href="#callingconv">calling convention</a>, a return type, an optional <a href="#callingconv">calling convention</a>, a return type, an optional
<a href="#paramattrs">parameter attribute</a> for the return type, a function <a href="#paramattrs">parameter attribute</a> for the return type, a function
name, a (possibly empty) argument list (each with optional name, a (possibly empty) argument list (each with optional
<a href="#paramattrs">parameter attributes</a>, an optional section, an optional <a href="#paramattrs">parameter attributes</a>), an optional section, an
alignment, an opening curly brace, a list of basic blocks, and a closing curly optional alignment, an opening curly brace, a list of basic blocks, and a
brace. LLVM function declarations closing curly brace. LLVM function declarations
are consist of the "<tt>declare</tt>" keyword, an optional <a consist of the "<tt>declare</tt>" keyword, an optional <a
href="#callingconv">calling convention</a>, a return type, an optional href="#callingconv">calling convention</a>, a return type, an optional
<a href="#paramattrs">parameter attribute</a> for the return type, a function <a href="#paramattrs">parameter attribute</a> for the return type, a function
name, a possibly empty list of arguments, and an optional alignment.</p> name, a possibly empty list of arguments, and an optional alignment.</p>
@ -698,12 +698,12 @@ a power of 2.</p>
type so two functions types that differ only by the parameter attributes type so two functions types that differ only by the parameter attributes
are different function types.</p> are different function types.</p>
<p>Parameter attributes consist of a at sign (@) followed by either a single <p>Parameter attributes consist of an at sign (@) followed by either a single
keyword or a comma separate list of keywords enclosed in parentheses. For keyword or a comma separate list of keywords enclosed in parentheses. For
example:<pre> example:<pre>
%someFunc = i16 @zext (i8 @(sext) %someParam) %someFunc = i16 @zext (i8 @(sext) %someParam)
%someFunc = i16 @zext (i8 @zext %someParam) %someFunc = i16 @zext (i8 @zext %someParam)</pre>
</pre>Note that the two function types above are unique because the parameter Note that the two function types above are unique because the parameter
has a different attribute (@sext in the first one, @zext in the second).</p> has a different attribute (@sext in the first one, @zext in the second).</p>
<p>Currently, only the following parameter attributes are defined: <p>Currently, only the following parameter attributes are defined:
@ -938,20 +938,22 @@ Variable argument functions can access their arguments with the <a
<h5>Examples:</h5> <h5>Examples:</h5>
<table class="layout"> <table class="layout">
<tr class="layout"> <tr class="layout">
<td class="left"> <td class="left"><tt>i32 (i32)</tt></td>
<tt>i32 (i32)</tt> <br/> <td class="left">function taking an <tt>i32</tt>, returning an <tt>i32</tt>
<tt>float (i16 @sext, i32 *) *</tt><br/>
<tt>i32 (i8*, ...)</tt><br/>
</td> </td>
<td class="left"> </tr><tr class="layout">
function taking an <tt>i32</tt>, returning an <tt>i32</tt><br/> <td class="left"><tt>float (i16 @sext, i32 *) *</tt></td>
<a href="#t_pointer">Pointer</a> to a function that takes an <td class="left"><a href="#t_pointer">Pointer</a> to a function that takes
<tt>i16</tt> that should be sign extended and a an <tt>i16</tt> that should be sign extended and a
<a href="#t_pointer">pointer</a> to <tt>i32</tt>, returning <a href="#t_pointer">pointer</a> to <tt>i32</tt>, returning
<tt>float</tt>.<br/> <tt>float</tt>.
A vararg function that takes at least one <a href="#t_pointer">pointer</a> </td>
to <tt>i8 </tt> (signed char in C), which returns an integer. This is </tr><tr class="layout">
the signature for <tt>printf</tt> in LLVM.<br/> <td class="left"><tt>i32 (i8*, ...)</tt></td>
<td class="left">A vararg function that takes at least one
<a href="#t_pointer">pointer</a> to <tt>i8 </tt> (signed char in C),
which returns an integer. This is the signature for <tt>printf</tt> in
LLVM.
</td> </td>
</tr> </tr>
</table> </table>