mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove the "special case" for zero-length arrays, and rephrase this
paragraph to be more precise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6572d0aa2
commit
9384438071
@ -1576,12 +1576,13 @@ Classifications</a> </div>
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p>Note that 'variable sized arrays' can be implemented in LLVM with a zero
|
<p>Except when the <tt>inbounds</tt> keyword is present, there is no limitation
|
||||||
length array. Normally, accesses past the end of an array are undefined in
|
on indexing beyond the end of the array implied by the static type (though
|
||||||
LLVM (e.g. it is illegal to access the 5th element of a 3 element array). As
|
any loads or stores must of course be within the bounds of the allocated
|
||||||
a special case, however, zero length arrays are recognized to be variable
|
object!). This means that single-dimension 'variable sized array' addressing
|
||||||
length. This allows implementation of 'pascal style arrays' with the LLVM
|
can be implemented in LLVM with a zero length array type. An implementation
|
||||||
type "<tt>{ i32, [0 x float]}</tt>", for example.</p>
|
of 'pascal style arrays' in LLVM could use the type
|
||||||
|
"<tt>{ i32, [0 x float]}</tt>", for example.</p>
|
||||||
|
|
||||||
<p>Note that the code generator does not yet support large aggregate types to be
|
<p>Note that the code generator does not yet support large aggregate types to be
|
||||||
used as function return types. The specific limit on how large an aggregate
|
used as function return types. The specific limit on how large an aggregate
|
||||||
|
Loading…
Reference in New Issue
Block a user