llvm.org GIT mirror llvm / fc13d1c
Surrounded variable in <tt> tags for consistency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79357 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 10 years ago
1 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
302302
303303
304304

In this example, idx1 computes the address of the second integer

305 in the array that is in the structure in %MyVar, that is MyVar+4. The
306 type of idx1 is i32*. However, idx2 computes the
307 address of the next structure after %MyVar. The type of
308 idx2 is { [10 x i32] }* and its value is equivalent
309 to MyVar + 40 because it indexes past the ten 4-byte integers
310 in MyVar. Obviously, in such a situation, the pointers don't
311 alias.

305 in the array that is in the structure in %MyVar, that is
306 MyVar+4. The type of idx1 is i32*. However,
307 idx2 computes the address of the next structure after
308 %MyVar. The type of idx2 is { [10 x i32] }* and its
309 value is equivalent to MyVar + 40 because it indexes past the ten
310 4-byte integers in MyVar. Obviously, in such a situation, the
311 pointers don't alias.

312
312313
313314
314315