diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-02-09 22:24:34 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-02-09 22:24:34 +0000 |
commit | 1acd2eed98ce080d31e7995c5e2ddb1c4318a560 (patch) | |
tree | 5be00e3d9d92fd297d224150be65d352551f755b | |
parent | b3c4eb46d62db357918a777e6bb61c2b9d46565a (diff) | |
download | llvm-1acd2eed98ce080d31e7995c5e2ddb1c4318a560.tar.gz llvm-1acd2eed98ce080d31e7995c5e2ddb1c4318a560.tar.bz2 llvm-1acd2eed98ce080d31e7995c5e2ddb1c4318a560.tar.xz |
explain that NumElements in alloca and malloc defaults to one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46912 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LangRef.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 90ba0cc058..d9d5ca8373 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2760,10 +2760,10 @@ address space (address space zero).</p> <tt>sizeof(<type>)*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(<type>)*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> |