LLVM 24.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 NextUseDistance & operator= (const NextUseDistance &B)
constexpr NextUseDistance & operator= (unsigned V)
constexpr NextUseDistance & operator= (int V)
constexpr NextUseDistance & operator+= (const NextUseDistance &B)
constexpr NextUseDistance & operator-= (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 45 of file AMDGPUNextUseAnalysis.h.

Member Typedef Documentation

◆ RawValueType

Definition at line 160 of file AMDGPUNextUseAnalysis.h.

Constructor & Destructor Documentation

◆ NextUseDistance() [1/3]

◆ NextUseDistance() [2/3]

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

Definition at line 56 of file AMDGPUNextUseAnalysis.h.

◆ NextUseDistance() [3/3]

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

Definition at line 57 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

Member Function Documentation

◆ applyLoopWeight()

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

Definition at line 97 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance(), and unreachable().

Referenced by fromSize().

◆ fmt()

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

Definition at line 137 of file AMDGPUNextUseAnalysis.h.

References llvm::format().

Referenced by print().

◆ fromSize()

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

Definition at line 51 of file AMDGPUNextUseAnalysis.h.

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

◆ getRawValue()

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

Definition at line 159 of file AMDGPUNextUseAnalysis.h.

◆ isReachable()

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

Definition at line 60 of file AMDGPUNextUseAnalysis.h.

References isUnreachable().

◆ isUnreachable()

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

Definition at line 59 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 130 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator+=()

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

Definition at line 83 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator-()

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

Definition at line 93 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator-=()

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

Definition at line 88 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator<()

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

Definition at line 110 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator<=()

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

Definition at line 118 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator=() [1/3]

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

Definition at line 65 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator=() [2/3]

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

Definition at line 75 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator=() [3/3]

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

Definition at line 70 of file AMDGPUNextUseAnalysis.h.

References NextUseDistance().

◆ operator==()

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

Definition at line 126 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator>()

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

Definition at line 114 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ operator>=()

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

Definition at line 122 of file AMDGPUNextUseAnalysis.h.

References B(), and NextUseDistance().

◆ print()

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

Definition at line 139 of file AMDGPUNextUseAnalysis.h.

References fmt(), and isUnreachable().

Referenced by toString().

◆ toJsonValue()

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

Definition at line 146 of file AMDGPUNextUseAnalysis.h.

References isUnreachable().

◆ toString()

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

Definition at line 152 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 163 of file AMDGPUNextUseAnalysis.h.

References AMDGPUNextUseAnalysisImpl.

Referenced by AMDGPUNextUseAnalysisImpl.


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