Lines Matching refs:Order
456 const AllocationOrder &Order);
459 const AllocationOrder &Order);
461 const AllocationOrder &Order,
472 unsigned getCheapestEvicteeWeight(const AllocationOrder &Order,
490 AllocationOrder &Order,
500 unsigned tryAssignCSRFirstTime(LiveInterval &VirtReg, AllocationOrder &Order,
760 AllocationOrder &Order, in tryAssign() argument
762 Order.rewind(); in tryAssign()
764 while ((PhysReg = Order.next())) in tryAssign()
767 if (!PhysReg || Order.isHint()) in tryAssign()
775 if (Order.isHint(Hint)) { in tryAssign()
797 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost); in tryAssign()
806 AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix); in canReassign() local
808 while ((PhysReg = Order.next())) { in canReassign()
1010 unsigned RAGreedy::getCheapestEvicteeWeight(const AllocationOrder &Order, in getCheapestEvicteeWeight() argument
1020 for (auto PhysReg : Order.getOrder()) { in getCheapestEvicteeWeight()
1095 AllocationOrder &Order, in tryEvict() argument
1105 unsigned OrderLimit = Order.getOrder().size(); in tryEvict()
1124 if (TRI->getCostPerUse(Order.getOrder().back()) >= CostPerUseLimit) { in tryEvict()
1131 Order.rewind(); in tryEvict()
1132 while (unsigned PhysReg = Order.next(OrderLimit)) { in tryEvict()
1152 if (Order.isHint()) in tryEvict()
1472 const AllocationOrder &Order) { in splitCanCauseEvictionChain() argument
1483 getCheapestEvicteeWeight(Order, LIS->getInterval(Evictee), in splitCanCauseEvictionChain()
1532 const AllocationOrder &Order) { in splitCanCauseLocalSpill() argument
1536 for (auto PhysReg : Order.getOrder()) { in splitCanCauseLocalSpill()
1545 Order, LIS->getInterval(VirtRegToSplit), Cand.Intf.first(), in splitCanCauseLocalSpill()
1570 const AllocationOrder &Order, in calcGlobalSplitCost() argument
1591 splitCanCauseEvictionChain(VirtRegToSplit, Cand, BC.Number, Order)) { in calcGlobalSplitCost()
1601 Order)) { in calcGlobalSplitCost()
1632 splitCanCauseEvictionChain(VirtRegToSplit, Cand, Number, Order)) { in calcGlobalSplitCost()
1815 unsigned RAGreedy::tryRegionSplit(LiveInterval &VirtReg, AllocationOrder &Order, in tryRegionSplit() argument
1839 calculateRegionSplitCost(VirtReg, Order, BestCost, NumCands, in tryRegionSplit()
1859 AllocationOrder &Order, in calculateRegionSplitCost() argument
1864 Order.rewind(); in calculateRegionSplitCost()
1865 while (unsigned PhysReg = Order.next()) { in calculateRegionSplitCost()
1926 Cost += calcGlobalSplitCost(Cand, Order, &HasEvictionChain); in calculateRegionSplitCost()
2005 unsigned RAGreedy::tryBlockSplit(LiveInterval &VirtReg, AllocationOrder &Order, in tryBlockSplit() argument
2072 RAGreedy::tryInstructionSplit(LiveInterval &VirtReg, AllocationOrder &Order, in tryInstructionSplit() argument
2215 unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order, in tryLocalSplit() argument
2304 Order.rewind(); in tryLocalSplit()
2305 while (unsigned PhysReg = Order.next()) { in tryLocalSplit()
2446 unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order, in trySplit() argument
2457 unsigned PhysReg = tryLocalSplit(VirtReg, Order, NewVRegs); in trySplit()
2460 return tryInstructionSplit(VirtReg, Order, NewVRegs); in trySplit()
2475 if (unsigned PhysReg = tryAssign(VirtReg, Order, NewVRegs)) in trySplit()
2483 unsigned PhysReg = tryRegionSplit(VirtReg, Order, NewVRegs); in trySplit()
2489 return tryBlockSplit(VirtReg, Order, NewVRegs); in trySplit()
2589 AllocationOrder &Order, in tryLastChanceRecoloring() argument
2617 Order.rewind(); in tryLastChanceRecoloring()
2618 while (unsigned PhysReg = Order.next()) { in tryLastChanceRecoloring()
2788 AllocationOrder &Order, in tryAssignCSRFirstTime() argument
2810 unsigned BestCand = calculateRegionSplitCost(VirtReg, Order, BestCost, in tryAssignCSRFirstTime()
3024 AllocationOrder Order(VirtReg.reg, *VRM, RegClassInfo, Matrix); in selectOrSplitImpl() local
3025 if (unsigned PhysReg = tryAssign(VirtReg, Order, NewVRegs)) { in selectOrSplitImpl()
3033 unsigned CSRReg = tryAssignCSRFirstTime(VirtReg, Order, PhysReg, in selectOrSplitImpl()
3052 tryEvict(VirtReg, Order, NewVRegs, CostPerUseLimit)) { in selectOrSplitImpl()
3082 unsigned PhysReg = trySplit(VirtReg, Order, NewVRegs); in selectOrSplitImpl()
3093 return tryLastChanceRecoloring(VirtReg, Order, NewVRegs, FixedRegisters, in selectOrSplitImpl()