LLVM: llvm::GCNRPTarget Class Reference (original) (raw)

Models a register pressure target, allowing to evaluate and track register savings against that target from a starting GCNRegPressure. More...

#include "[Target/AMDGPU/GCNRegPressure.h](GCNRegPressure%5F8h%5Fsource.html)"

Public Member Functions
GCNRPTarget (const MachineFunction &MF, const GCNRegPressure &RP)
Sets up the target such that the register pressure starting at RP does not show register spilling on function MF (w.r.t.
GCNRPTarget (unsigned NumSGPRs, unsigned NumVGPRs, const MachineFunction &MF, const GCNRegPressure &RP)
Sets up the target such that the register pressure starting at RP does not use more than NumSGPRs SGPRs and NumVGPRs VGPRs on function MF.
GCNRPTarget (unsigned Occupancy, const MachineFunction &MF, const GCNRegPressure &RP)
Sets up the target such that the register pressure starting at RP does not prevent achieving an occupancy of at least Occupancy on function MF.
void setTarget (unsigned NumSGPRs, unsigned NumVGPRs)
Changes the target (same semantics as constructor).
const GCNRegPressure & getCurrentRP () const
void setRP (const GCNRegPressure &NewRP)
bool isSaveBeneficial (Register Reg) const
Determines whether saving virtual register Reg will be beneficial towards achieving the RP target.
void saveReg (Register Reg, LaneBitmask Mask, const MachineRegisterInfo &MRI)
Saves virtual register Reg with lanemask Mask.
bool satisfied () const
Whether the current RP is at or below the defined pressure target.

Models a register pressure target, allowing to evaluate and track register savings against that target from a starting GCNRegPressure.

Definition at line 200 of file GCNRegPressure.h.

GCNRPTarget() [2/3]

Sets up the target such that the register pressure starting at RP does not use more than NumSGPRs SGPRs and NumVGPRs VGPRs on function MF.

Definition at line 373 of file GCNRegPressure.cpp.

References GCNRPTarget(), and setTarget().

GCNRPTarget() [3/3]

getCurrentRP()

isSaveBeneficial()

satisfied()

bool GCNRPTarget::satisfied ( ) const

Whether the current RP is at or below the defined pressure target.

Definition at line 420 of file GCNRegPressure.cpp.

saveReg()

setRP()

setTarget()

operator<<


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