|
LLVM 24.0.0git
|
Common behavior for downward RP trackers. Unconstructible directly. More...
#include "Target/AMDGPU/GCNRegPressure.h"
Public Member Functions | |
| GCNRegPressure | bumpDownwardPressure (const MachineInstr *MI, const SIRegisterInfo *TRI) const |
Mostly copy/paste from CodeGen/RegisterPressure.cpp Calculate the impact MI will have on CurPressure and. | |
| Public Member Functions inherited from llvm::GCNRPTracker | |
| void | reset (const MachineRegisterInfo &MRI, const LiveRegSet &LiveRegs) |
Resets tracker with the provided LiveRegs. | |
| const decltype(LiveRegs) & | getLiveRegs () const |
| const MachineInstr * | getLastTrackedMI () const |
| void | clearMaxPressure () |
| const GCNRegPressure & | getMaxPressure () const |
| void | resetMaxPressure () |
| GCNRegPressure | getPressure () const |
| decltype(LiveRegs) | moveLiveRegs () |
Protected Member Functions | |
| GCNDownwardRPTrackerBase (LiveIntervals &LIS) | |
| void | retireDeadOperands (const MachineInstr &MI, SlotIndex SI) |
Retires all lanes of MI's register operands that are dead at SI, according to LIS. | |
| void | addDefs (const MachineInstr &MI) |
Adds all lanes (dead or not) defined by MI's register operands to CurPressure. | |
| Protected Member Functions inherited from llvm::GCNRPTracker | |
| GCNRPTracker (LiveIntervals &LIS_) | |
| void | reset (const MachineInstr &MI, bool After) |
Resets tracker before or After the provided MI, which can be a debug instruction. | |
| void | reset (const MachineBasicBlock &MBB, bool End) |
Resets tracker at the start or End of the MBB. | |
| void | reset (const MachineRegisterInfo &MRI, SlotIndex SI) |
Resets tracker at the specified slot index SI. | |
| LaneBitmask | getLastUsedLanes (Register Reg, SlotIndex Pos) const |
| Mostly copy/paste from CodeGen/RegisterPressure.cpp. | |
Additional Inherited Members | |
| Public Types inherited from llvm::GCNRPTracker | |
| using | LiveRegSet = DenseMap<unsigned, LaneBitmask> |
| Protected Attributes inherited from llvm::GCNRPTracker | |
| LiveIntervals & | LIS |
| LiveRegSet | LiveRegs |
| GCNRegPressure | CurPressure |
| GCNRegPressure | MaxPressure |
| const MachineInstr * | LastTrackedMI = nullptr |
| const MachineRegisterInfo * | MRI = nullptr |
Common behavior for downward RP trackers. Unconstructible directly.
Definition at line 390 of file GCNRegPressure.h.
|
inlineprotected |
Definition at line 400 of file GCNRegPressure.h.
References llvm::GCNRPTracker::GCNRPTracker(), and llvm::GCNRPTracker::LIS.
Referenced by llvm::GCNDownwardRPTracker::GCNDownwardRPTracker(), and llvm::GCNManualDownwardRPTracker::GCNManualDownwardRPTracker().
|
protected |
Adds all lanes (dead or not) defined by MI's register operands to CurPressure.
Definition at line 722 of file GCNRegPressure.cpp.
References assert(), llvm::GCNRPTracker::CurPressure, getDefRegMask(), llvm::GCNRPTracker::LiveRegs, llvm::max(), llvm::GCNRPTracker::MaxPressure, MI, and llvm::GCNRPTracker::MRI.
Referenced by llvm::GCNManualDownwardRPTracker::advance(), and llvm::GCNDownwardRPTracker::advanceToNext().
| GCNRegPressure GCNDownwardRPTrackerBase::bumpDownwardPressure | ( | const MachineInstr * | MI, |
| const SIRegisterInfo * | TRI ) const |
Mostly copy/paste from CodeGen/RegisterPressure.cpp Calculate the impact MI will have on CurPressure and.
Definition at line 817 of file GCNRegPressure.cpp.
References llvm::RegisterOperands::adjustLaneLiveness(), assert(), llvm::RegisterOperands::collect(), llvm::GCNRPTracker::CurPressure, llvm::RegisterOperands::Defs, llvm::DenseMapBase< StorageT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< StorageT, KeyT, ValueT, KeyInfoT, BucketT >::find(), findUseBetween(), llvm::GCNRPTracker::getLastUsedLanes(), llvm::GCNRegPressure::inc(), llvm::GCNRPTracker::LastTrackedMI, llvm::GCNRPTracker::LIS, llvm::GCNRPTracker::LiveRegs, MBB, MI, llvm::GCNRPTracker::MRI, llvm::LaneBitmask::none(), llvm::skipDebugInstructionsForward(), TRI, and llvm::RegisterOperands::Uses.
|
protected |
Retires all lanes of MI's register operands that are dead at SI, according to LIS.
Definition at line 701 of file GCNRegPressure.cpp.
References assert(), llvm::GCNRPTracker::CurPressure, llvm::SmallSet< T, N, C >::insert(), llvm::max(), llvm::GCNRPTracker::MaxPressure, MI, and llvm::GCNRPTracker::MRI.
Referenced by llvm::GCNManualDownwardRPTracker::advance(), and llvm::GCNDownwardRPTracker::advanceBeforeNext().