LLVM 19.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::MLPriorityAdvisor Class Reference
Inheritance diagram for llvm::MLPriorityAdvisor:
Inheritance graph
[legend]

Public Member Functions

 MLPriorityAdvisor (const MachineFunction &MF, const RAGreedy &RA, SlotIndexes *const Indexes, MLModelRunner *Runner)
 
- Public Member Functions inherited from llvm::RegAllocPriorityAdvisor
 RegAllocPriorityAdvisor (const RegAllocPriorityAdvisor &)=delete
 
 RegAllocPriorityAdvisor (RegAllocPriorityAdvisor &&)=delete
 
virtual ~RegAllocPriorityAdvisor ()=default
 
virtual unsigned getPriority (const LiveInterval &LI) const =0
 Find the priority value for a live range.
 
 RegAllocPriorityAdvisor (const MachineFunction &MF, const RAGreedy &RA, SlotIndexes *const Indexes)
 

Protected Member Functions

const RegAllocPriorityAdvisorgetDefaultAdvisor () const
 
const MLModelRunnergetRunner () const
 
float getPriorityImpl (const LiveInterval &LI) const
 
unsigned getPriority (const LiveInterval &LI) const override
 Find the priority value for a live range.
 

Additional Inherited Members

- Protected Attributes inherited from llvm::RegAllocPriorityAdvisor
const RAGreedyRA
 
LiveIntervals *const LIS
 
VirtRegMap *const VRM
 
MachineRegisterInfo *const MRI
 
const TargetRegisterInfo *const TRI
 
const RegisterClassInfoRegClassInfo
 
SlotIndexes *const Indexes
 
const bool RegClassPriorityTrumpsGlobalness
 
const bool ReverseLocalAssignment
 

Detailed Description

Definition at line 91 of file MLRegAllocPriorityAdvisor.cpp.

Constructor & Destructor Documentation

◆ MLPriorityAdvisor()

MLPriorityAdvisor::MLPriorityAdvisor ( const MachineFunction MF,
const RAGreedy RA,
SlotIndexes *const  Indexes,
MLModelRunner Runner 
)

Member Function Documentation

◆ getDefaultAdvisor()

const RegAllocPriorityAdvisor & llvm::MLPriorityAdvisor::getDefaultAdvisor ( ) const
inlineprotected

Definition at line 97 of file MLRegAllocPriorityAdvisor.cpp.

◆ getPriority()

unsigned MLPriorityAdvisor::getPriority ( const LiveInterval LI) const
overrideprotectedvirtual

Find the priority value for a live range.

A float value is used since ML prefers it.

Implements llvm::RegAllocPriorityAdvisor.

Definition at line 306 of file MLRegAllocPriorityAdvisor.cpp.

References getPriorityImpl().

◆ getPriorityImpl()

float MLPriorityAdvisor::getPriorityImpl ( const LiveInterval LI) const
protected

◆ getRunner()

const MLModelRunner & llvm::MLPriorityAdvisor::getRunner ( ) const
inlineprotected

Definition at line 103 of file MLRegAllocPriorityAdvisor.cpp.


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