summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-05-29 20:46:38 +0000
committerTim Northover <tnorthover@apple.com>2019-05-29 20:46:38 +0000
commit71ee3d02372af7361eda0b59163cf92653ac2bbb (patch)
tree6e62b423c129caa0b420c5e10382284d65898514 /llvm/docs
parent4b281755ae4951ca83c287680b47d77433f3ee0a (diff)
downloadbcm5719-llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.tar.gz
bcm5719-llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.zip
Revert "IR: add optional type to 'byval' function parameters"
The IRLinker doesn't delve into the new byval attribute when mapping types, and this breaks LTO. llvm-svn: 362029
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 2105ce9d669..840272df33f 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -1017,7 +1017,7 @@ Currently, only the following parameter attributes are defined:
opposed to memory, though some targets use it to distinguish between
two different kinds of registers). Use of this attribute is
target-specific.
-``byval`` or ``byval(<ty>)``
+``byval``
This indicates that the pointer parameter should really be passed by
value to the function. The attribute implies that a hidden copy of
the pointee is made between the caller and the callee, so the callee
@@ -1029,9 +1029,6 @@ Currently, only the following parameter attributes are defined:
``byval`` parameters). This is not a valid attribute for return
values.
- The byval attribute also supports an optional type argument, which must be
- the same as the pointee type of the argument.
-
The byval attribute also supports specifying an alignment with the
align attribute. It indicates the alignment of the stack slot to
form and the known alignment of the pointer specified to the call
OpenPOWER on IntegriCloud