LLVM 22.0.0git
llvm::PBQP::RegAlloc::GraphMetadata Class Reference

Holds graph-level metadata relevant to PBQP RA problems. More...

#include "llvm/CodeGen/RegAllocPBQP.h"

Public Types

using AllowedRegVecRef = AllowedRegVecPool::PoolRef

Public Member Functions

 GraphMetadata (MachineFunction &MF, LiveIntervals &LIS, MachineBlockFrequencyInfo &MBFI)
void setNodeIdForVReg (Register VReg, GraphBase::NodeId NId)
GraphBase::NodeId getNodeIdForVReg (Register VReg) const
AllowedRegVecRef getAllowedRegs (AllowedRegVector Allowed)

Public Attributes

MachineFunctionMF
LiveIntervalsLIS
MachineBlockFrequencyInfoMBFI

Detailed Description

Holds graph-level metadata relevant to PBQP RA problems.

Definition at line 132 of file RegAllocPBQP.h.

Member Typedef Documentation

◆ AllowedRegVecRef

Constructor & Destructor Documentation

◆ GraphMetadata()

llvm::PBQP::RegAlloc::GraphMetadata::GraphMetadata ( MachineFunction & MF,
LiveIntervals & LIS,
MachineBlockFrequencyInfo & MBFI )
inline

Definition at line 139 of file RegAllocPBQP.h.

References LIS, MBFI, and MF.

Member Function Documentation

◆ getAllowedRegs()

AllowedRegVecRef llvm::PBQP::RegAlloc::GraphMetadata::getAllowedRegs ( AllowedRegVector Allowed)
inline

Definition at line 159 of file RegAllocPBQP.h.

◆ getNodeIdForVReg()

GraphBase::NodeId llvm::PBQP::RegAlloc::GraphMetadata::getNodeIdForVReg ( Register VReg) const
inline

Definition at line 152 of file RegAllocPBQP.h.

References llvm::PBQP::GraphBase::invalidNodeId().

◆ setNodeIdForVReg()

void llvm::PBQP::RegAlloc::GraphMetadata::setNodeIdForVReg ( Register VReg,
GraphBase::NodeId NId )
inline

Definition at line 148 of file RegAllocPBQP.h.

References llvm::Register::id().

Member Data Documentation

◆ LIS

LiveIntervals& llvm::PBQP::RegAlloc::GraphMetadata::LIS

Definition at line 145 of file RegAllocPBQP.h.

Referenced by GraphMetadata().

◆ MBFI

MachineBlockFrequencyInfo& llvm::PBQP::RegAlloc::GraphMetadata::MBFI

Definition at line 146 of file RegAllocPBQP.h.

Referenced by GraphMetadata().

◆ MF

MachineFunction& llvm::PBQP::RegAlloc::GraphMetadata::MF

Definition at line 144 of file RegAllocPBQP.h.

Referenced by GraphMetadata().


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