class PressureChange

Declaration

class PressureChange { /* full declaration omitted */ };

Description

Capture a change in pressure for a single pressure set. UnitInc may be expressed in terms of upward or downward pressure depending on the client and will be dynamically adjusted for current liveness. Pressure increments are tiny, typically 1-2 units, and this is only for heuristics, so we don't check UnitInc overflow. Instead, we may have a higher level assert that pressure is consistent within a region. We also effectively ignore dead defs which don't affect heuristics much.

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:102

Member Variables

private uint16_t PSetID = 0
private int16_t UnitInc = 0

Method Overview

Methods

PressureChange()

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:107

PressureChange(unsigned int id)

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:108

Parameters

unsigned int id

void dump() const

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:132

unsigned int getPSet() const

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:114

unsigned int getPSetOrMax() const

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:120

int getUnitInc() const

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:124

bool isValid() const

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:112

void setUnitInc(int Inc)

Declared at: llvm/include/llvm/CodeGen/RegisterPressure.h:126

Parameters

int Inc