Go to the documentation of this file.
36 #ifndef LLVM_LIB_CODEGEN_REGALLOCBASE_H
37 #define LLVM_LIB_CODEGEN_REGALLOCBASE_H
49 class MachineRegisterInfo;
50 template<
typename T>
class SmallVectorImpl;
52 class TargetRegisterInfo;
62 virtual void anchor();
131 #endif // LLVM_LIB_CODEGEN_REGALLOCBASE_H
RegAllocBase(const RegClassFilterFunc F=allocateAllRegClasses)
virtual Spiller & spiller()=0
This is an optimization pass for GlobalISel generic memory operations.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
void enqueue(const LiveInterval *LI)
enqueue - Add VirtReg to the priority queue of unassigned registers.
virtual void enqueueImpl(const LiveInterval *LI)=0
enqueue - Add VirtReg to the priority queue of unassigned registers.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
SmallPtrSet< MachineInstr *, 32 > DeadRemats
Inst which is a def of an original reg and whose defs are already all dead after remat is saved in De...
static const char TimerGroupDescription[]
void init(VirtRegMap &vrm, LiveIntervals &lis, LiveRegMatrix &mat)
LiveInterval - This class represents the liveness of a register, or stack slot.
RegisterClassInfo RegClassInfo
static const char TimerGroupName[]
const TargetRegisterInfo * TRI
std::function< bool(const TargetRegisterInfo &TRI, const TargetRegisterClass &RC)> RegClassFilterFunc
MachineRegisterInfo * MRI
virtual MCRegister selectOrSplit(const LiveInterval &VirtReg, SmallVectorImpl< Register > &splitLVRs)=0
virtual const LiveInterval * dequeue()=0
dequeue - Return the next unassigned register, or NULL.
virtual void postOptimization()
static bool allocateAllRegClasses(const TargetRegisterInfo &, const TargetRegisterClass &)
Default register class filter function for register allocation.
RegAllocBase provides the register allocation driver and interface that can be extended to add intere...
virtual void aboutToRemoveInterval(const LiveInterval &LI)
Method called when the allocator is about to remove a LiveInterval.
static bool VerifyEnabled
VerifyEnabled - True when -verify-regalloc is given.
virtual ~RegAllocBase()=default
const RegClassFilterFunc ShouldAllocateClass
Wrapper class representing physical registers. Should be passed by value.