[PATCH] D41861: [LangRef] Clarify Varargs forwarding for musttail calls.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 15:30:52 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL322786: [LangRef] Clarify Varargs forwarding for musttail calls. (authored by fhahn, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41861?vs=129263&id=130298#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41861

Files:
  llvm/trunk/docs/LangRef.rst


Index: llvm/trunk/docs/LangRef.rst
===================================================================
--- llvm/trunk/docs/LangRef.rst
+++ llvm/trunk/docs/LangRef.rst
@@ -9033,9 +9033,11 @@
    #. Arguments with the :ref:`inalloca <attr_inalloca>` attribute are
       forwarded in place.
 
-   Both markers imply that the callee does not access allocas or varargs from
-   the caller. Calls marked ``musttail`` must obey the following additional
-   rules:
+   Both markers imply that the callee does not access allocas from the caller.
+   The ``tail`` marker additionally implies that the callee does not access
+   varargs from the caller, while ``musttail`` implies that varargs from the
+   caller are passed to the callee. Calls marked ``musttail`` must obey the
+   following additional  rules:
 
    - The call must immediately precede a :ref:`ret <i_ret>` instruction,
      or a pointer bitcast followed by a ret instruction.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41861.130298.patch
Type: text/x-patch
Size: 937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/0d77a2bc/attachment.bin>


More information about the llvm-commits mailing list