LLVM 22.0.0git
|
List of PressureChanges in order of increasing, unique PSetID. More...
#include "llvm/CodeGen/RegisterPressure.h"
Public Types | |
using | const_iterator = const PressureChange * |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
LLVM_ABI void | addPressureChange (Register RegUnit, bool IsDec, const MachineRegisterInfo *MRI) |
Add a change in pressure to the pressure diff of a given instruction. | |
LLVM_ABI void | dump (const TargetRegisterInfo &TRI) const |
List of PressureChanges in order of increasing, unique PSetID.
Use a small fixed number, because we can fit more PressureChanges in an empty SmallVector than ever need to be tracked per register class. If more PSets are affected, then we only track the most constrained.
Definition at line 141 of file RegisterPressure.h.
Definition at line 155 of file RegisterPressure.h.
void PressureDiff::addPressureChange | ( | Register | RegUnit, |
bool | IsDec, | ||
const MachineRegisterInfo * | MRI ) |
Add a change in pressure to the pressure diff of a given instruction.
Definition at line 658 of file RegisterPressure.cpp.
References llvm::PSetIterator::getWeight(), I, llvm::PressureChange::isValid(), llvm::PSetIterator::isValid(), MRI, and std::swap().
Referenced by llvm::PressureDiffs::addInstruction(), and llvm::ScheduleDAGMILive::updatePressureDiffs().
|
inline |
Definition at line 157 of file RegisterPressure.h.
Referenced by llvm::PressureDiffs::addInstruction(), and llvm::RegPressureTracker::getUpwardPressureDelta().
LLVM_DUMP_METHOD void PressureDiff::dump | ( | const TargetRegisterInfo & | TRI | ) | const |
Definition at line 122 of file RegisterPressure.cpp.
References llvm::dbgs(), llvm::PressureChange::getPSet(), llvm::PressureChange::getUnitInc(), llvm::PressureChange::isValid(), and TRI.
Referenced by llvm::ScheduleDAGMILive::dump(), llvm::RegPressureTracker::getMaxUpwardPressureDelta(), and llvm::ScheduleDAGMILive::updatePressureDiffs().
|
inline |
Definition at line 158 of file RegisterPressure.h.
Referenced by llvm::RegPressureTracker::getUpwardPressureDelta().