LLVM 19.0.0git
Public Member Functions | Friends | List of all members
llvm::sandboxir::Use Class Reference

Represents a Def-use/Use-def edge in SandboxIR. More...

#include "llvm/SandboxIR/SandboxIR.h"

Public Member Functions

 operator Value * () const
 
Valueget () const
 
class UsergetUser () const
 
unsigned getOperandNo () const
 
ContextgetContext () const
 
bool operator== (const Use &Other) const
 
bool operator!= (const Use &Other) const
 
void dump (raw_ostream &OS) const
 
void dump () const
 

Friends

class Value
 
class User
 
class OperandUseIterator
 
class UserUseIterator
 

Detailed Description

Represents a Def-use/Use-def edge in SandboxIR.

NOTE: Unlike llvm::Use, this is not an integral part of the use-def chains. It is also not uniqued and is currently passed by value, so you can have more than one sandboxir::Use objects for the same use-def edge.

Definition at line 81 of file SandboxIR.h.

Member Function Documentation

◆ dump() [1/2]

void Use::dump ( ) const

Definition at line 50 of file SandboxIR.cpp.

References llvm::dbgs(), and dump().

Referenced by dump().

◆ dump() [2/2]

void Use::dump ( raw_ostream OS) const

Definition at line 22 of file SandboxIR.cpp.

References getOperandNo(), llvm::sandboxir::Context::getValue(), and OS.

◆ get()

Value * Use::get ( ) const

◆ getContext()

Context * llvm::sandboxir::Use::getContext ( ) const
inline

Definition at line 101 of file SandboxIR.h.

◆ getOperandNo()

unsigned Use::getOperandNo ( ) const

◆ getUser()

class User * llvm::sandboxir::Use::getUser ( ) const
inline

◆ operator Value *()

llvm::sandboxir::Use::operator Value * ( ) const
inline

Definition at line 97 of file SandboxIR.h.

References get().

◆ operator!=()

bool llvm::sandboxir::Use::operator!= ( const Use Other) const
inline

Definition at line 106 of file SandboxIR.h.

References llvm::Other.

◆ operator==()

bool llvm::sandboxir::Use::operator== ( const Use Other) const
inline

Definition at line 102 of file SandboxIR.h.

References assert(), and llvm::Other.

Friends And Related Function Documentation

◆ OperandUseIterator

friend class OperandUseIterator
friend

Definition at line 93 of file SandboxIR.h.

◆ User

friend class User
friend

Definition at line 92 of file SandboxIR.h.

◆ UserUseIterator

friend class UserUseIterator
friend

Definition at line 94 of file SandboxIR.h.

◆ Value

friend class Value
friend

Definition at line 91 of file SandboxIR.h.


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