Lines Matching refs:arrays
1 # Stack arrays pass
3 In gfortran, `-fstack-arrays` will cause all local arrays, including those of
7 Flang already allocates all local arrays on the stack (the
9 default it will not). But there are some cases where temporary arrays are
10 created on the heap by Flang. Moving these temporary arrays is the goal here.
18 Another approach would be to modify each place in which arrays are allocated on
34 to lowering code do not need to be made to support the stack arrays option. The
48 Flang allocates most arrays on the stack by default, but there are a few cases
49 where temporary arrays are allocated on the heap:
81 The last two of these cases are **not** covered by the current stack arrays pass
107 scope of `-fstack-arrays`.
123 These heap allocations will be out of scope for `-fstack-arrays` because the
140 temporaries added by Flang, because these temporaries should be simple arrays:
141 not nested inside of derived types or other arrays.
149 Only allocations for arrays will be considered for moving to the stack.
156 the stack arrays pass would not find where the allocation was freed and so not
158 stack arrays pass can transform array allocations created for pass-by-value
183 `true` meaning that the stack arrays pass must not move the allocation, `false`
184 meaning that stack arrays may move the allocation. Not specifying the attribute