LLVM 23.0.0git
llvm::NextUseDistance Class Reference

#include "Target/AMDGPU/AMDGPUNextUseAnalysis.h"

Public Types

using RawValueType = int64_t

Public Member Functions

constexpr NextUseDistance (unsigned V)
constexpr NextUseDistance (int V)
constexpr NextUseDistance (const NextUseDistance &B)
constexpr bool isUnreachable () const
constexpr bool isReachable () const
constexpr NextUseDistanceoperator= (const NextUseDistance &B)
constexpr NextUseDistanceoperator= (unsigned V)
constexpr NextUseDistanceoperator= (int V)
constexpr NextUseDistanceoperator+= (const NextUseDistance &B)
constexpr NextUseDistanceoperator-= (const NextUseDistance &B)
constexpr NextUseDistance operator- () const
constexpr NextUseDistance applyLoopWeight () const
constexpr bool operator< (const NextUseDistance &B) const
constexpr bool operator> (const NextUseDistance &B) const
constexpr bool operator<= (const NextUseDistance &B) const
constexpr bool operator>= (const NextUseDistance &B) const
constexpr bool operator== (const NextUseDistance &B) const
constexpr bool operator!= (const NextUseDistance &B) const
format_object< int64_t > fmt () const
void print (raw_ostream &OS) const
json::Value toJsonValue () const
std::string toString () const
constexpr int64_t getRawValue () const

Static Public Member Functions

static constexpr NextUseDistance unreachable ()
static constexpr NextUseDistance fromSize (unsigned Size, unsigned Depth)

Friends

class AMDGPUNextUseAnalysisImpl

Detailed Description

Definition at line 46 of file AMDGPUNextUseAnalysis.h.

Member Typedef Documentation

◆ RawValueType

Definition at line 161 of file AMDGPUNextUseAnalysis.h.

Constructor & Destructor Documentation

◆ NextUseDistance() [1/3]

◆ NextUseDistance() [2/3]

llvm::NextUseDistance::NextUseDistance ( int V)
inlineconstexpr

Definition at line 57 of file AMDGPUNextUseAnalysis.h.

◆ NextUseDistance() [3/3]

llvm::NextUseDistance::NextUseDistance ( const NextUseDistance & B)
inlineconstexpr

Definition at line 58 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

Member Function Documentation

◆ applyLoopWeight()

NextUseDistance llvm::NextUseDistance::applyLoopWeight ( ) const
inlineconstexpr

Definition at line 98 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance(), and unreachable().

Referenced by fromSize().

◆ fmt()

format_object< int64_t > llvm::NextUseDistance::fmt ( ) const
inline

Definition at line 138 of file AMDGPUNextUseAnalysis.h.

References llvm::format().

Referenced by print().

◆ fromSize()

constexpr NextUseDistance llvm::NextUseDistance::fromSize ( unsigned Size,
unsigned Depth )
inlinestaticconstexpr

Definition at line 52 of file AMDGPUNextUseAnalysis.h.

References applyLoopWeight(), llvm::Depth, NextUseDistance(), and Size.

◆ getRawValue()

int64_t llvm::NextUseDistance::getRawValue ( ) const
inlineconstexpr

Definition at line 160 of file AMDGPUNextUseAnalysis.h.

◆ isReachable()

bool llvm::NextUseDistance::isReachable ( ) const
inlineconstexpr

Definition at line 61 of file AMDGPUNextUseAnalysis.h.

References isUnreachable().

◆ isUnreachable()

bool llvm::NextUseDistance::isUnreachable ( ) const
inlineconstexpr

Definition at line 60 of file AMDGPUNextUseAnalysis.h.

References unreachable().

Referenced by isReachable(), print(), and toJsonValue().

◆ operator!=()

bool llvm::NextUseDistance::operator!= ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 131 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator+=()

NextUseDistance & llvm::NextUseDistance::operator+= ( const NextUseDistance & B)
inlineconstexpr

Definition at line 84 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator-()

NextUseDistance llvm::NextUseDistance::operator- ( ) const
inlineconstexpr

Definition at line 94 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator-=()

NextUseDistance & llvm::NextUseDistance::operator-= ( const NextUseDistance & B)
inlineconstexpr

Definition at line 89 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator<()

bool llvm::NextUseDistance::operator< ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 111 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator<=()

bool llvm::NextUseDistance::operator<= ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 119 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator=() [1/3]

NextUseDistance & llvm::NextUseDistance::operator= ( const NextUseDistance & B)
inlineconstexpr

Definition at line 66 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator=() [2/3]

NextUseDistance & llvm::NextUseDistance::operator= ( int V)
inlineconstexpr

Definition at line 76 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator=() [3/3]

NextUseDistance & llvm::NextUseDistance::operator= ( unsigned V)
inlineconstexpr

Definition at line 71 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator==()

bool llvm::NextUseDistance::operator== ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 127 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator>()

bool llvm::NextUseDistance::operator> ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 115 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator>=()

bool llvm::NextUseDistance::operator>= ( const NextUseDistance & B) const
inlineconstexpr

Definition at line 123 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ print()

void llvm::NextUseDistance::print ( raw_ostream & OS) const
inline

Definition at line 140 of file AMDGPUNextUseAnalysis.h.

References fmt(), and isUnreachable().

Referenced by toString().

◆ toJsonValue()

json::Value llvm::NextUseDistance::toJsonValue ( ) const
inline

Definition at line 147 of file AMDGPUNextUseAnalysis.h.

References isUnreachable().

◆ toString()

std::string llvm::NextUseDistance::toString ( ) const
inline

Definition at line 153 of file AMDGPUNextUseAnalysis.h.

References print(), and llvm::raw_string_ostream::str().

◆ unreachable()

constexpr NextUseDistance llvm::NextUseDistance::unreachable ( )
inlinestaticconstexpr

◆ AMDGPUNextUseAnalysisImpl

friend class AMDGPUNextUseAnalysisImpl
friend

Definition at line 164 of file AMDGPUNextUseAnalysis.h.

References AMDGPUNextUseAnalysisImpl.

Referenced by AMDGPUNextUseAnalysisImpl.


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