Clarify that if the alignment is zero then an alignment

compatible with the type will be used (at least the ABI
alignment).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2009-06-20 13:26:06 +00:00
parent 7f8217f64b
commit 434ca80b31

View File

@ -3532,9 +3532,10 @@ address space (address space zero).</p>
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, otherwise "NumElements" is defaulted to be one.
If a constant 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>
If a constant 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
compatible with the type.</p>
<p>'<tt>type</tt>' must be a sized type.</p>
@ -3625,9 +3626,10 @@ space (address space zero).</p>
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, otherwise "NumElements" is defaulted to be one.
If a constant 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>
If a constant 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
compatible with the type.</p>
<p>'<tt>type</tt>' may be any sized type.</p>