Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 0ea6d44

Browse files
committed
Add note to LangRef about how function arguments can be unnamed and
how this affects the numbering of unnamed temporaries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216070 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a2bec69 commit 0ea6d44

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/LangRef.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ lexical features of LLVM:
129129
#. Unnamed temporaries are created when the result of a computation is
130130
not assigned to a named value.
131131
#. Unnamed temporaries are numbered sequentially (using a per-function
132-
incrementing counter, starting with 0). Note that basic blocks are
133-
included in this numbering. For example, if the entry basic block is not
134-
given a label name, then it will get number 0.
132+
incrementing counter, starting with 0). Note that basic blocks and unnamed
133+
function parameters are included in this numbering. For example, if the
134+
entry basic block is not given a label name and all function parameters are
135+
named, then it will get number 0.
135136

136137
It also shows a convention that we follow in this document. When
137138
demonstrating instructions, we will follow an instruction with a comment
@@ -681,6 +682,14 @@ Syntax::
681682
[unnamed_addr] [fn Attrs] [section "name"] [comdat $<ComdatName>]
682683
[align N] [gc] [prefix Constant] { ... }
683684

685+
The argument list is a comma seperated sequence of arguments where each
686+
argument is of the following form
687+
688+
Syntax::
689+
690+
<type> [parameter Attrs] [name]
691+
692+
684693
.. _langref_aliases:
685694

686695
Aliases

0 commit comments

Comments
 (0)