27 #define DEBUG_TYPE "regalloc"
44 for (
unsigned I = 0,
E = Hints.
size();
I !=
E; ++
I)
50 for (
unsigned I = 0,
E = Hints.
size();
I !=
E; ++
I)
52 "Target hint is outside allocation order.");
void rewind()
Start over from the beginning.
MachineFunction & getMachineFunction() const
AllocationOrder(unsigned VirtReg, const VirtRegMap &VRM, const RegisterClassInfo &RegClassInfo, const LiveRegMatrix *Matrix)
Create a new AllocationOrder for VirtReg.
const TargetRegisterClass * getRegClass(unsigned Reg) const
Return the register class of the specified virtual register.
ArrayRef< MCPhysReg > getOrder(const TargetRegisterClass *RC) const
getOrder - Returns the preferred allocation order for RC.
LLVM_NODISCARD bool empty() const
Printable PrintReg(unsigned Reg, const TargetRegisterInfo *TRI=nullptr, unsigned SubRegIdx=0)
Prints virtual and physical registers with or without a TRI instance.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
const TargetRegisterInfo & getTargetRegInfo() const
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
virtual void getRegAllocationHints(unsigned VirtReg, ArrayRef< MCPhysReg > Order, SmallVectorImpl< MCPhysReg > &Hints, const MachineFunction &MF, const VirtRegMap *VRM=nullptr, const LiveRegMatrix *Matrix=nullptr) const
Get a list of 'hint' registers that the register allocator should try first when allocating a physica...
bool is_contained(R &&Range, const E &Element)
Wrapper function around std::find to detect if an element exists in a container.