LLVM API Documentation

Public Member Functions
llvm::PressureChange Class Reference

#include <RegisterPressure.h>

List of all members.

Public Member Functions

 PressureChange ()
 PressureChange (unsigned id)
bool isValid () const
unsigned getPSet () const
unsigned getPSetOrMax () const
int getUnitInc () const
void setUnitInc (int Inc)
bool operator== (const PressureChange &RHS) const

Detailed 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.

Definition at line 100 of file RegisterPressure.h.


Constructor & Destructor Documentation

Definition at line 104 of file RegisterPressure.h.

Definition at line 105 of file RegisterPressure.h.


Member Function Documentation

Definition at line 116 of file RegisterPressure.h.

Referenced by tryPressure().

bool llvm::PressureChange::isValid ( ) const [inline]
bool llvm::PressureChange::operator== ( const PressureChange RHS) const [inline]

Definition at line 122 of file RegisterPressure.h.

void llvm::PressureChange::setUnitInc ( int  Inc) [inline]

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