LLVM 22.0.0git
llvm::AllocationOrder::Iterator Class Referencefinal

Forward iterator for an AllocationOrder. More...

#include "CodeGen/AllocationOrder.h"

Public Member Functions

 Iterator (const AllocationOrder &AO, int Pos)
bool isHint () const
 Return true if the current position is that of a preferred register.
MCRegister operator* () const
 Return the next physical register in the allocation order.
Iteratoroperator++ ()
 Advance the iterator to the next position.
bool operator== (const Iterator &Other) const
bool operator!= (const Iterator &Other) const

Detailed Description

Forward iterator for an AllocationOrder.

Definition at line 44 of file AllocationOrder.h.

Constructor & Destructor Documentation

◆ Iterator()

llvm::AllocationOrder::Iterator::Iterator ( const AllocationOrder & AO,
int Pos )
inline

Definition at line 49 of file AllocationOrder.h.

References llvm::AllocationOrder::AllocationOrder().

Referenced by operator!=(), operator++(), and operator==().

Member Function Documentation

◆ isHint()

bool llvm::AllocationOrder::Iterator::isHint ( ) const
inline

Return true if the current position is that of a preferred register.

Definition at line 52 of file AllocationOrder.h.

◆ operator!=()

bool llvm::AllocationOrder::Iterator::operator!= ( const Iterator & Other) const
inline

Definition at line 77 of file AllocationOrder.h.

References Iterator(), and llvm::Other.

◆ operator*()

MCRegister llvm::AllocationOrder::Iterator::operator* ( ) const
inline

Return the next physical register in the allocation order.

Definition at line 55 of file AllocationOrder.h.

References assert().

◆ operator++()

Iterator & llvm::AllocationOrder::Iterator::operator++ ( )
inline

Advance the iterator to the next position.

If that's past the Hints list, advance to the first value that's not also in the Hints list.

Definition at line 64 of file AllocationOrder.h.

References Iterator().

◆ operator==()

bool llvm::AllocationOrder::Iterator::operator== ( const Iterator & Other) const
inline

Definition at line 72 of file AllocationOrder.h.

References assert(), Iterator(), and llvm::Other.


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