|
LLVM
3.7.0
|
Capture a change in pressure for a single pressure set. More...
#include <RegisterPressure.h>
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 |
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 85 of file RegisterPressure.h.
|
inline |
Definition at line 89 of file RegisterPressure.h.
|
inline |
Definition at line 90 of file RegisterPressure.h.
|
inline |
Definition at line 96 of file RegisterPressure.h.
References isValid().
Referenced by llvm::PressureDiff::addPressureChange(), llvm::PressureDiff::dump(), llvm::RegPressureTracker::getMaxUpwardPressureDelta(), llvm::ConvergingVLIWScheduler::traceCandidate(), llvm::GenericSchedulerBase::traceCandidate(), and llvm::GenericScheduler::tryCandidate().
|
inline |
Definition at line 101 of file RegisterPressure.h.
Referenced by tryPressure().
|
inline |
Definition at line 103 of file RegisterPressure.h.
Referenced by llvm::PressureDiff::addPressureChange(), llvm::PressureDiff::dump(), llvm::RegPressureTracker::getMaxDownwardPressureDelta(), llvm::RegPressureTracker::getMaxUpwardPressureDelta(), llvm::ConvergingVLIWScheduler::SchedulingCost(), llvm::ConvergingVLIWScheduler::traceCandidate(), llvm::GenericSchedulerBase::traceCandidate(), llvm::GenericScheduler::tryCandidate(), and tryPressure().
|
inline |
Definition at line 94 of file RegisterPressure.h.
Referenced by llvm::PressureDiff::addPressureChange(), collectPDiff(), computeMaxPressureDelta(), llvm::PressureDiff::dump(), llvm::RegPressureTracker::getMaxUpwardPressureDelta(), getPSet(), llvm::RegPressureTracker::getUpwardPressureDelta(), llvm::ConvergingVLIWScheduler::traceCandidate(), llvm::GenericSchedulerBase::traceCandidate(), and llvm::GenericScheduler::tryCandidate().
|
inline |
Definition at line 107 of file RegisterPressure.h.
|
inline |
Definition at line 105 of file RegisterPressure.h.
Referenced by llvm::PressureDiff::addPressureChange(), computeExcessPressureDelta(), computeMaxPressureDelta(), and llvm::RegPressureTracker::getUpwardPressureDelta().
1.8.6