LLVM 22.0.0git
PhiInfo Struct Reference

Maximum remaining allocation size observed for a phi node, and how often the allocation size has already been decreased. More...

Public Member Functions

 PhiInfo (TypeSize AllocSize)

Public Attributes

TypeSize AllocSize
unsigned NumDecreased = 0

Static Public Attributes

static constexpr unsigned MaxNumDecreased = 3

Detailed Description

Maximum remaining allocation size observed for a phi node, and how often the allocation size has already been decreased.

We only allow a limited number of decreases.

Definition at line 258 of file StackProtector.cpp.

Constructor & Destructor Documentation

◆ PhiInfo()

PhiInfo::PhiInfo ( TypeSize AllocSize)
inline

Definition at line 262 of file StackProtector.cpp.

References AllocSize.

Member Data Documentation

◆ AllocSize

TypeSize PhiInfo::AllocSize

Definition at line 259 of file StackProtector.cpp.

Referenced by PhiInfo().

◆ MaxNumDecreased

unsigned PhiInfo::MaxNumDecreased = 3
staticconstexpr

Definition at line 261 of file StackProtector.cpp.

Referenced by HasAddressTaken().

◆ NumDecreased

unsigned PhiInfo::NumDecreased = 0

Definition at line 260 of file StackProtector.cpp.


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