summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-02-09 22:24:34 +0000
committerGabor Greif <ggreif@gmail.com>2008-02-09 22:24:34 +0000
commitdd1fc981b543d5144df88f039099864d0ec2a95d (patch)
tree2df7a7ac9133dd8c0821bccb818f8fccfa41ca0a /llvm/docs
parentc0b0e5964370d086d06d53009d079e170fb4f694 (diff)
downloadbcm5719-llvm-dd1fc981b543d5144df88f039099864d0ec2a95d.tar.gz
bcm5719-llvm-dd1fc981b543d5144df88f039099864d0ec2a95d.zip
explain that NumElements in alloca and malloc defaults to one
llvm-svn: 46912
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 90ba0cc058f..d9d5ca83735 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -2760,10 +2760,10 @@ address space (address space zero).</p>
<tt>sizeof(&lt;type&gt;)*NumElements</tt>
bytes of memory from the operating system and returns a pointer of the
appropriate type to the program. If "NumElements" is specified, it is the
-number of elements allocated. If an alignment is specified, the value result
-of the allocation is guaranteed to be aligned to at least that boundary. If
-not specified, or if zero, the target can choose to align the allocation on any
-convenient boundary.</p>
+number of elements allocated, otherwise "NumElements" is defaulted to be one.
+If an alignment is specified, the value result of the allocation is guaranteed to
+be aligned to at least that boundary. If not specified, or if zero, the target can
+choose to align the allocation on any convenient boundary.</p>
<p>'<tt>type</tt>' must be a sized type.</p>
@@ -2846,11 +2846,11 @@ space (address space zero).</p>
<p>The '<tt>alloca</tt>' instruction allocates <tt>sizeof(&lt;type&gt;)*NumElements</tt>
bytes of memory on the runtime stack, returning a pointer of the
-appropriate type to the program. If "NumElements" is specified, it is the
-number of elements allocated. If an alignment is specified, the value result
-of the allocation is guaranteed to be aligned to at least that boundary. If
-not specified, or if zero, the target can choose to align the allocation on any
-convenient boundary.</p>
+appropriate type to the program. If "NumElements" is specified, it is the
+number of elements allocated, otherwise "NumElements" is defaulted to be one.
+If an alignment is specified, the value result of the allocation is guaranteed
+to be aligned to at least that boundary. If not specified, or if zero, the target
+can choose to align the allocation on any convenient boundary.</p>
<p>'<tt>type</tt>' may be any sized type.</p>
OpenPOWER on IntegriCloud