FLANG
fir::AllocationInfo Struct Reference

Facts about a single array allocation used to decide its placement. More...

#include <flang/Optimizer/Transforms/AllocationPlacementPolicy.h>

Public Attributes

mlir::Operation * op = nullptr
 The allocation operation (fir.alloca or fir.allocmem).
bool isCurrentlyOnStack = false
 True if the allocation currently lives on the stack (fir.alloca).
bool isTemporary = false
bool isDynamic = false
std::optional< std::int64_t > byteSize
 The constant size of the allocation in bytes, if it can be determined.

Detailed Description

Facts about a single array allocation used to decide its placement.

Member Data Documentation

◆ isDynamic

bool fir::AllocationInfo::isDynamic = false

True if the allocation has a runtime-determined size. Note this is not the same as !byteSize: a constant-size array may have no computable byteSize (e.g. when no data layout is available), in which case it is not dynamic but its size is still unknown.

◆ isTemporary

bool fir::AllocationInfo::isTemporary = false

True if the allocation is a compiler temporary (as opposed to a user variable).


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