LLVM  15.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 ()=default
 
 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. More...
 
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 68 of file RegAllocGreedy.h.

Constructor & Destructor Documentation

◆ ExtraRegInfo() [1/2]

llvm::RAGreedy::ExtraRegInfo::ExtraRegInfo ( )
default

◆ 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 109 of file RegAllocGreedy.h.

References Info.

◆ getCascadeOrCurrentNext()

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

Definition at line 125 of file RegAllocGreedy.h.

◆ getOrAssignNewCascade()

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

Definition at line 116 of file RegAllocGreedy.h.

◆ 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 104 of file RegAllocGreedy.h.

References Info.

◆ getStage() [1/2]

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

Definition at line 89 of file RegAllocGreedy.h.

References llvm::LiveInterval::reg().

◆ getStage() [2/2]

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

Definition at line 87 of file RegAllocGreedy.h.

References Info.

◆ LRE_DidCloneVirtReg()

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

Definition at line 263 of file RegAllocGreedy.cpp.

References llvm::RS_Assign.

◆ setCascade()

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

Definition at line 111 of file RegAllocGreedy.h.

References Info.

◆ setStage() [1/3]

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

Definition at line 98 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 133 of file RegAllocGreedy.h.

◆ setStage() [3/3]

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

Definition at line 93 of file RegAllocGreedy.h.

References Info.


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