|
FLANG
|
Tunable thresholds controlling where array allocations are placed. More...
#include <flang/Optimizer/Transforms/AllocationPlacementPolicy.h>
Public Attributes | |
| bool | stackArrays = false |
| std::size_t | smallArrayThresholdBytes = 64 |
| Constant-size arrays up to this many bytes are considered "small". | |
| std::size_t | totalStackLimitBytes = 4ull * 1024 * 1024 |
| Per-function budget (in bytes) for small arrays placed on the stack. | |
Tunable thresholds controlling where array allocations are placed.
| bool fir::AllocationPlacementThresholds::stackArrays = false |
Place all array allocations on the stack when possible (-fstack-arrays). When false, use the size/kind-based placement policy.