LLVM 24.0.0git
llvm::DefaultEvictionAdvisor Class Reference

#include "llvm/CodeGen/RegAllocEvictionAdvisor.h"

Inheritance diagram for llvm::DefaultEvictionAdvisor:
[legend]

Public Member Functions

 DefaultEvictionAdvisor (const MachineFunction &MF, const RAGreedy &RA)
Public Member Functions inherited from llvm::RegAllocEvictionAdvisor
 RegAllocEvictionAdvisor (const RegAllocEvictionAdvisor &)=delete
 RegAllocEvictionAdvisor (RegAllocEvictionAdvisor &&)=delete
virtual ~RegAllocEvictionAdvisor ()=default
LLVM_ABI MCRegister getUnusedCalleeSavedReg (const LiveInterval &VirtReg, MCRegister PhysReg) const
 Return an unused callee-saved register that would be used by assigning VirtReg to PhysReg, or NoRegister if there is none.
LLVM_ABI bool isUrgentEviction (const LiveInterval &VirtReg, const LiveInterval &Intf) const
 Returns true if this is an urgent eviction.

Additional Inherited Members

Protected Member Functions inherited from llvm::RegAllocEvictionAdvisor
LLVM_ABI RegAllocEvictionAdvisor (const MachineFunction &MF, const RAGreedy &RA)
LLVM_ABI bool canReassign (const LiveInterval &VirtReg, MCRegister FromReg) const
LLVM_ABI std::optional< unsigned > getOrderLimit (const LiveInterval &VirtReg, const AllocationOrder &Order, unsigned CostPerUseLimit) const
LLVM_ABI bool canAllocatePhysReg (const LiveInterval &VirtReg, unsigned CostPerUseLimit, MCRegister PhysReg) const
Protected Attributes inherited from llvm::RegAllocEvictionAdvisor
const MachineFunction & MF
const RAGreedy & RA
LiveRegMatrix *const Matrix
LiveIntervals *const LIS
VirtRegMap *const VRM
MachineRegisterInfo *const MRI
const TargetRegisterInfo *const TRI
const RegisterClassInfo & RegClassInfo
const ArrayRef< uint8_t > RegCosts
const bool EnableLocalReassign
 Run or not the local reassignment heuristic.

Detailed Description

Definition at line 293 of file RegAllocEvictionAdvisor.h.

Constructor & Destructor Documentation

◆ DefaultEvictionAdvisor()

llvm::DefaultEvictionAdvisor::DefaultEvictionAdvisor ( const MachineFunction & MF,
const RAGreedy & RA )
inline

The documentation for this class was generated from the following files: