14 #ifndef LLVM_LIB_TARGET_AMDGPU_GCNREGPRESSURE_H
15 #define LLVM_LIB_TARGET_AMDGPU_GCNREGPRESSURE_H
173 const LiveIntervals &LIS,
174 const MachineRegisterInfo &
MRI);
177 const LiveIntervals &LIS,
178 const MachineRegisterInfo &
MRI);
192 template <
typename Range>
196 for (
const auto &
RM : LiveRegs)
202 const LiveIntervals &LIS,
203 const MachineRegisterInfo &
MRI);
207 #endif // LLVM_LIB_TARGET_AMDGPU_GCNREGPRESSURE_H
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
AMDGPU specific subclass of TargetSubtarget.
static void printLiveRegs(raw_ostream &OS, const LiveRegSet &LiveRegs, const MachineRegisterInfo &MRI)
SlotIndex getBaseIndex() const
Returns the base index for associated with this index.
decltype(MaxPressure) moveMaxPressure()
Maximum length of the test input libFuzzer tries to guess a good value based on the corpus and reports it always prefer smaller inputs during the corpus shuffle When libFuzzer itself reports a bug this exit code will be used If indicates the maximal total time in seconds to run the fuzzer minimizes the provided crash input Use with tries to cleanse the provided crash input to make it contain fewer original bytes Use with exact_artifact_path to specify the output Experimental Use value profile to guide fuzzing Number of jobs to run If min(jobs, NumberOfCpuCores()/2)\" is used.") FUZZER_FLAG_INT(reload
GCNRPTracker(const LiveIntervals &LIS_)
const MachineInstr * LastTrackedMI
bool reset(const MachineInstr &MI, const LiveRegSet *LiveRegs=nullptr)
GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, const LiveIntervals &LIS, const MachineRegisterInfo &MRI)
friend GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
bool operator!=(const GCNRegPressure &O) const
SlotIndex getInstructionIndex(const MachineInstr &Instr) const
Returns the base index of the given instruction.
const LiveIntervals & LIS
decltype(LiveRegs) moveLiveRegs()
unsigned getOccupancyWithNumSGPRs(unsigned SGPRs) const
Return the maximum number of waves per SIMD for kernels using SGPRs SGPRs.
Reg
All possible values of the reg field in the ModR/M byte.
SlotIndex getDeadSlot() const
Returns the dead def kill slot for the current instruction.
DenseMap< unsigned, LaneBitmask > LiveRegSet
void inc(unsigned Reg, LaneBitmask PrevMask, LaneBitmask NewMask, const MachineRegisterInfo &MRI)
GCNRPTracker::LiveRegSet getLiveRegsBefore(const MachineInstr &MI, const LiveIntervals &LIS)
unsigned getSGPRTuplesWeight() const
GCNRegPressure CurPressure
void print(raw_ostream &OS, const SISubtarget *ST=nullptr) const
void reset(const MachineInstr &MI, const LiveRegSet *LiveRegs=nullptr)
const MachineBasicBlock * getParent() const
unsigned const MachineRegisterInfo * MRI
decltype(LiveRegs) const & getLiveRegs() const
const MachineInstr * getLastTrackedMI() const
unsigned getOccupancyWithNumVGPRs(unsigned VGPRs) const
Return the maximum number of waves per SIMD for kernels using VGPRs VGPRs.
static const unsigned End
A set of live virtual registers and physical register units.
GCNRPTracker::LiveRegSet getLiveRegsAfter(const MachineInstr &MI, const LiveIntervals &LIS)
unsigned getVGPRTuplesWeight() const
GCNUpwardRPTracker(const LiveIntervals &LIS_)
void printLivesAt(SlotIndex SI, const LiveIntervals &LIS, const MachineRegisterInfo &MRI)
static LaneBitmask getNone()
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool less(const SISubtarget &ST, const GCNRegPressure &O, unsigned MaxOccupancy=std::numeric_limits< unsigned >::max()) const
const MachineBasicBlock::const_iterator getNext() const
unsigned getOccupancy(const SISubtarget &ST) const
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
GCNRegPressure getRegPressure(const MachineRegisterInfo &MRI, Range &&LiveRegs)
Representation of each machine instruction.
unsigned getSGPRNum() const
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
unsigned getVGPRNum() const
bool higherOccupancy(const SISubtarget &ST, const GCNRegPressure &O) const
LaneBitmask getLiveLaneMask(unsigned Reg, SlotIndex SI, const LiveIntervals &LIS, const MachineRegisterInfo &MRI)
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream...
GCNRegPressure MaxPressure
GCNDownwardRPTracker(const LiveIntervals &LIS_)
bool operator==(const GCNRegPressure &O) const
void recede(const MachineInstr &MI)
const MachineRegisterInfo * MRI