Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:RC

76 /// compute - Compute the preferred allocation order for RC with reserved
79 void RegisterClassInfo::compute(const TargetRegisterClass *RC) const {
80 assert(RC && "no register class given");
81 RCInfo &RCI = RegClass[RC->getID()];
84 unsigned NumRegs = RC->getNumRegs();
97 ArrayRef<MCPhysReg> RawOrder = RC->getRawAllocationOrder(*MF);
133 // Check if RC is a proper sub-class.
135 TRI->getLargestLegalSuperClass(RC, *MF))
136 if (Super != RC && getNumAllocatableRegs(Super) > RCI.NumRegs)
143 dbgs() << "AllocationOrder(" << TRI->getRegClassName(RC) << ") = [";
157 const TargetRegisterClass *RC = nullptr;
172 if (!RC || NUnits > NumRCUnits) {
173 RC = *RI;
177 compute(RC);
178 unsigned NReserved = RC->getNumRegs() - getNumAllocatableRegs(RC);
180 TRI->getRegClassWeight(RC).RegWeight * NReserved;