summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-15 04:34:22 +0000
committerChris Lattner <sabre@nondot.org>2008-01-15 04:34:22 +0000
commit352ab9b4a2a6ac23865f37ee129bfdcbab3aed07 (patch)
tree443e9f14a1e8663fab9bb477c3859991ac5e94c3 /llvm/docs
parent4d70ba313408957ed5614d06cb887b071d5f3576 (diff)
downloadbcm5719-llvm-352ab9b4a2a6ac23865f37ee129bfdcbab3aed07.tar.gz
bcm5719-llvm-352ab9b4a2a6ac23865f37ee129bfdcbab3aed07.zip
clarify that byval is valid for any pointer argument.
llvm-svn: 45998
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index fa5019370a4..49bcc974f08 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -810,11 +810,12 @@ declare i32 @atoi(i8*) nounwind readonly
target-specific</dd>
<dt><tt>byval</tt></dt>
- <dd>This indicates that the pointer parameter is really an aggregate that
- was passed by value to the function. The attribute implies that a hidden
- copy of the struct is made between the caller and the callee, so the
- callee is unable to modify the struct in the callee. This attribute is only
- valid on llvm pointer arguments.</dd>
+ <dd>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 is unable
+ to modify the value in the callee. This attribute is only valid on llvm
+ pointer arguments. It is generally used to pass structs and arrays by
+ value, but is also valid on scalars (even though this is silly).</dd>
<dt><tt>sret</tt></dt>
<dd>This indicates that the parameter specifies the address of a structure
OpenPOWER on IntegriCloud