LLVM 20.0.0git
Classes | Public Member Functions | List of all members
llvm::RAGreedy::ExtraRegInfo Class Referencefinal

Track allocation stage and eviction loop prevention during allocation. More...

#include "CodeGen/RegAllocGreedy.h"

Public Member Functions

 ExtraRegInfo ()
 
 ExtraRegInfo (const ExtraRegInfo &)=delete
 
LiveRangeStage getStage (Register Reg) const
 
LiveRangeStage getStage (const LiveInterval &VirtReg) const
 
void setStage (Register Reg, LiveRangeStage Stage)
 
void setStage (const LiveInterval &VirtReg, LiveRangeStage Stage)
 
LiveRangeStage getOrInitStage (Register Reg)
 Return the current stage of the register, if present, otherwise initialize it and return that.
 
unsigned getCascade (Register Reg) const
 
void setCascade (Register Reg, unsigned Cascade)
 
unsigned getOrAssignNewCascade (Register Reg)
 
unsigned getCascadeOrCurrentNext (Register Reg) const
 
template<typename Iterator >
void setStage (Iterator Begin, Iterator End, LiveRangeStage NewStage)
 
void LRE_DidCloneVirtReg (Register New, Register Old)
 

Detailed Description

Track allocation stage and eviction loop prevention during allocation.

Definition at line 66 of file RegAllocGreedy.h.

Constructor & Destructor Documentation

◆ ExtraRegInfo() [1/2]

llvm::RAGreedy::ExtraRegInfo::ExtraRegInfo ( )
inline

Definition at line 82 of file RegAllocGreedy.h.

◆ ExtraRegInfo() [2/2]

llvm::RAGreedy::ExtraRegInfo::ExtraRegInfo ( const ExtraRegInfo )
delete

Member Function Documentation

◆ getCascade()

unsigned llvm::RAGreedy::ExtraRegInfo::getCascade ( Register  Reg) const
inline

Definition at line 107 of file RegAllocGreedy.h.

References Info, and Reg.

◆ getCascadeOrCurrentNext()

unsigned llvm::RAGreedy::ExtraRegInfo::getCascadeOrCurrentNext ( Register  Reg) const
inline

Definition at line 123 of file RegAllocGreedy.h.

References Reg.

◆ getOrAssignNewCascade()

unsigned llvm::RAGreedy::ExtraRegInfo::getOrAssignNewCascade ( Register  Reg)
inline

Definition at line 114 of file RegAllocGreedy.h.

References Reg.

◆ getOrInitStage()

LiveRangeStage llvm::RAGreedy::ExtraRegInfo::getOrInitStage ( Register  Reg)
inline

Return the current stage of the register, if present, otherwise initialize it and return that.

Definition at line 102 of file RegAllocGreedy.h.

References Info, and Reg.

◆ getStage() [1/2]

LiveRangeStage llvm::RAGreedy::ExtraRegInfo::getStage ( const LiveInterval VirtReg) const
inline

Definition at line 87 of file RegAllocGreedy.h.

References llvm::LiveInterval::reg().

◆ getStage() [2/2]

LiveRangeStage llvm::RAGreedy::ExtraRegInfo::getStage ( Register  Reg) const
inline

Definition at line 85 of file RegAllocGreedy.h.

References Info, and Reg.

Referenced by llvm::MLPriorityAdvisor::getPriorityImpl().

◆ LRE_DidCloneVirtReg()

void RAGreedy::ExtraRegInfo::LRE_DidCloneVirtReg ( Register  New,
Register  Old 
)

Definition at line 260 of file RegAllocGreedy.cpp.

References llvm::RS_Assign.

◆ setCascade()

void llvm::RAGreedy::ExtraRegInfo::setCascade ( Register  Reg,
unsigned  Cascade 
)
inline

Definition at line 109 of file RegAllocGreedy.h.

References Info, and Reg.

◆ setStage() [1/3]

void llvm::RAGreedy::ExtraRegInfo::setStage ( const LiveInterval VirtReg,
LiveRangeStage  Stage 
)
inline

Definition at line 96 of file RegAllocGreedy.h.

References llvm::LiveInterval::reg().

◆ setStage() [2/3]

template<typename Iterator >
void llvm::RAGreedy::ExtraRegInfo::setStage ( Iterator  Begin,
Iterator  End,
LiveRangeStage  NewStage 
)
inline

Definition at line 131 of file RegAllocGreedy.h.

References End, Info, Reg, and llvm::RS_New.

◆ setStage() [3/3]

void llvm::RAGreedy::ExtraRegInfo::setStage ( Register  Reg,
LiveRangeStage  Stage 
)
inline

Definition at line 91 of file RegAllocGreedy.h.

References Info, and Reg.


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