[llvm-commits] CVS: llvm/docs/LangRef.html
Chris Lattner
clattner at apple.com
Sun Jan 28 07:07:09 PST 2007
> Document 'inreg' & 'sret'
Nice.
> @@ -743,14 +730,15 @@
> <dt><tt>sext</tt></dt>
> <dd>This indicates that the parameter should be sign extended
> just before
> a call to this function.</dd>
> + <dt><tt>inreg</tt></dt>
> + <dd>This indicates that the parameter should be placed in
> register (if
> + possible) during assembling function call. It's currently
> supported in x86
> + backend only.</dd>
Please say "Support for this attribute is target-specific." instead
of saying that only the x86 backend implements it. I'd prefer to
keep 'current status' out of LangRef.html.
> + <dt><tt>sret</tt></dt>
> + <dd>This indicates, that the parameter is special hidden
> pointer to struct
> + to return.
Grammar, I suggest: "This indicates that the parameter specifies the
address of a structure that is the return value of the function in
the source program."
Thanks Anton!
-Chris
> Usually such parameter needs special handling during codegen.</dd>
> </dl>
>
> - <p>The current motivation for parameter attributes is to enable
> the sign and
> - zero extend information necessary for the C calling convention
> to be passed
> - from the front end to LLVM. The <tt>zext</tt> and <tt>sext</tt>
> attributes
> - are used by the code generator to perform the required
> extension. However,
> - parameter attributes are an orthogonal feature to calling
> conventions and
> - may be used for other purposes in the future.</p>
> </div>
>
> <!--
> ======================================================================
> = -->
> @@ -4519,7 +4507,7 @@
>
> <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
> - Last modified: $Date: 2007/01/23 12:35:46 $
> + Last modified: $Date: 2007/01/28 14:30:45 $
> </address>
> </body>
> </html>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list