Lines Matching defs:RC
76 /// compute - Compute the preferred allocation order for RC with reserved
79 void RegisterClassInfo::compute(const TargetRegisterClass *RC) const {
80 RCInfo &RCI = RegClass[RC->getID()];
83 unsigned NumRegs = RC->getNumRegs();
96 ArrayRef<MCPhysReg> RawOrder = RC->getRawAllocationOrder(*MF);
132 // Check if RC is a proper sub-class.
133 if (const TargetRegisterClass *Super = TRI->getLargestLegalSuperClass(RC))
134 if (Super != RC && getNumAllocatableRegs(Super) > RCI.NumRegs)
141 dbgs() << "AllocationOrder(" << RC->getName() << ") = [";
155 const TargetRegisterClass *RC = nullptr;
170 if (!RC || NUnits > NumRCUnits) {
171 RC = *RI;
175 compute(RC);
176 unsigned NReserved = RC->getNumRegs() - getNumAllocatableRegs(RC);
178 - TRI->getRegClassWeight(RC).RegWeight * NReserved;