RegisterPressure computed within a region of instructions delimited by TopIdx and BottomIdx. During pressure computation, the maximum pressure per register pressure set is increased. Once pressure within a region is fully computed, the live‐in and live‐out sets are recorded.

Synopsis

Declared in <llvm/CodeGen/RegisterPressure.h>

struct IntervalPressure
    : RegisterPressure

Description

This is preferable to RegionPressure when LiveIntervals are available, because delimiting regions by SlotIndex is more robust and convenient than holding block iterators. The block contents can change without invalidating the pressure result.

Base Classes

Name

Description

RegisterPressure

Base class for register pressure results.

Member Functions

Data Members

Name

Description

BottomIdx

LiveInRegs

List of live in virtual registers or physical register units.

LiveOutRegs

MaxSetPressure

Map of max reg pressure indexed by pressure set ID, not class ID.

TopIdx

Record the boundary of the region being tracked.

Created with MrDocs