FLANG
fir::AllocationPlacementThresholds Struct Reference

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.

Detailed Description

Tunable thresholds controlling where array allocations are placed.

Member Data Documentation

◆ stackArrays

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.


The documentation for this struct was generated from the following file: