LLVM 20.0.0git
Public Member Functions | List of all members
llvm::PSetIterator Class Reference

Iterate over the pressure sets affected by the given physical or virtual register. More...

#include "llvm/CodeGen/MachineRegisterInfo.h"

Public Member Functions

 PSetIterator ()=default
 
 PSetIterator (Register RegUnit, const MachineRegisterInfo *MRI)
 
bool isValid () const
 
unsigned getWeight () const
 
unsigned operator* () const
 
void operator++ ()
 

Detailed Description

Iterate over the pressure sets affected by the given physical or virtual register.

If Reg is physical, it must be a register unit (from MCRegUnitIterator).

Definition at line 1246 of file MachineRegisterInfo.h.

Constructor & Destructor Documentation

◆ PSetIterator() [1/2]

llvm::PSetIterator::PSetIterator ( )
default

◆ PSetIterator() [2/2]

llvm::PSetIterator::PSetIterator ( Register  RegUnit,
const MachineRegisterInfo MRI 
)
inline

Definition at line 1253 of file MachineRegisterInfo.h.

References llvm::Register::isVirtual(), MRI, and TRI.

Member Function Documentation

◆ getWeight()

unsigned llvm::PSetIterator::getWeight ( ) const
inline

◆ isValid()

bool llvm::PSetIterator::isValid ( ) const
inline

◆ operator*()

unsigned llvm::PSetIterator::operator* ( ) const
inline

Definition at line 1271 of file MachineRegisterInfo.h.

◆ operator++()

void llvm::PSetIterator::operator++ ( )
inline

Definition at line 1273 of file MachineRegisterInfo.h.

References assert(), and isValid().


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