LLVM 24.0.0git
llvm::CycleRef Class Reference

Opaque handle to a cycle within a GenericCycleInfo that wraps the cycle's preorder index. More...

#include "llvm/ADT/GenericCycleInfo.h"

Public Member Functions

 CycleRef ()=default
bool isValid () const
 operator bool () const
bool operator== (CycleRef O) const
bool operator!= (CycleRef O) const

Friends

template<typename ContextT>
class GenericCycleInfo
struct DenseMapInfo< CycleRef >

Detailed Description

Opaque handle to a cycle within a GenericCycleInfo that wraps the cycle's preorder index.

Handles remain valid as long as the cycle forest is not recomputed; addBlockToCycle() adds a block but never adds, removes, or reorders cycles, so it leaves every handle valid.

Definition at line 52 of file GenericCycleInfo.h.

Constructor & Destructor Documentation

◆ CycleRef()

llvm::CycleRef::CycleRef ( )
default

Member Function Documentation

◆ isValid()

◆ operator bool()

llvm::CycleRef::operator bool ( ) const
inlineexplicit

Definition at line 63 of file GenericCycleInfo.h.

References isValid().

◆ operator!=()

bool llvm::CycleRef::operator!= ( CycleRef O) const
inline

Definition at line 65 of file GenericCycleInfo.h.

◆ operator==()

bool llvm::CycleRef::operator== ( CycleRef O) const
inline

Definition at line 64 of file GenericCycleInfo.h.

◆ DenseMapInfo< CycleRef >

friend struct DenseMapInfo< CycleRef >
friend

Definition at line 57 of file GenericCycleInfo.h.

References GenericCycleInfo.

◆ GenericCycleInfo

template<typename ContextT>
friend class GenericCycleInfo
friend

Definition at line 57 of file GenericCycleInfo.h.

Referenced by DenseMapInfo< CycleRef >.


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