LLVM 20.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/Use.h"

Public Member Functions

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

Friends

class Value
 
class User
 
class OperandUseIterator
 
class UserUseIterator
 
class CallBase
 
class CallBrInst
 
class PHINode
 

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 32 of file Use.h.

Member Function Documentation

◆ dump()

void Use::dump ( ) const

Definition at line 61 of file SandboxIR.cpp.

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

◆ dumpOS()

void Use::dumpOS ( raw_ostream OS) const

Definition at line 33 of file SandboxIR.cpp.

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

Referenced by dump().

◆ get()

Value * Use::get ( ) const

◆ getContext()

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

Definition at line 57 of file Use.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 51 of file Use.h.

References get().

◆ operator!=()

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

Definition at line 62 of file Use.h.

References llvm::Other.

◆ operator==()

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

Definition at line 58 of file Use.h.

References assert(), and llvm::Other.

◆ set()

void Use::set ( Value V)

◆ swap()

void Use::swap ( Use OtherUse)

Friends And Related Function Documentation

◆ CallBase

friend class CallBase
friend

Definition at line 46 of file Use.h.

◆ CallBrInst

friend class CallBrInst
friend

Definition at line 47 of file Use.h.

◆ OperandUseIterator

friend class OperandUseIterator
friend

Definition at line 44 of file Use.h.

◆ PHINode

friend class PHINode
friend

Definition at line 48 of file Use.h.

◆ User

friend class User
friend

Definition at line 43 of file Use.h.

◆ UserUseIterator

friend class UserUseIterator
friend

Definition at line 45 of file Use.h.

◆ Value

friend class Value
friend

Definition at line 42 of file Use.h.


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