summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2014-08-20 15:06:30 +0000
committerDan Liew <dan@su-root.co.uk>2014-08-20 15:06:30 +0000
commit2661dfc7b970e68c378422678f37e213bb860a38 (patch)
tree60b47c183f50cfe749ff9cd9012eb27589485012 /llvm/docs
parentf991505d02dae4c2e9cd9ae02372a3116da2a14b (diff)
downloadbcm5719-llvm-2661dfc7b970e68c378422678f37e213bb860a38.tar.gz
bcm5719-llvm-2661dfc7b970e68c378422678f37e213bb860a38.zip
Add note to LangRef about how function arguments can be unnamed and
how this affects the numbering of unnamed temporaries. llvm-svn: 216070
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst15
1 files changed, 12 insertions, 3 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 652aeef2e20..a310240804d 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -129,9 +129,10 @@ lexical features of LLVM:
#. Unnamed temporaries are created when the result of a computation is
not assigned to a named value.
#. Unnamed temporaries are numbered sequentially (using a per-function
- incrementing counter, starting with 0). Note that basic blocks are
- included in this numbering. For example, if the entry basic block is not
- given a label name, then it will get number 0.
+ incrementing counter, starting with 0). Note that basic blocks and unnamed
+ function parameters are included in this numbering. For example, if the
+ entry basic block is not given a label name and all function parameters are
+ named, then it will get number 0.
It also shows a convention that we follow in this document. When
demonstrating instructions, we will follow an instruction with a comment
@@ -681,6 +682,14 @@ Syntax::
[unnamed_addr] [fn Attrs] [section "name"] [comdat $<ComdatName>]
[align N] [gc] [prefix Constant] { ... }
+The argument list is a comma seperated sequence of arguments where each
+argument is of the following form
+
+Syntax::
+
+ <type> [parameter Attrs] [name]
+
+
.. _langref_aliases:
Aliases
OpenPOWER on IntegriCloud