LLVM 23.0.0git
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
LLVM_ABI Valueget () const
LLVM_ABI void set (Value *V)
class UsergetUser () const
LLVM_ABI unsigned getOperandNo () const
LLVM_ABI void swap (Use &OtherUse)
ContextgetContext () const
bool operator== (const Use &Other) const
bool operator!= (const Use &Other) const
LLVM_ABI_FOR_TEST void dumpOS (raw_ostream &OS) const
void dump () const

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

Member Function Documentation

◆ dump()

void llvm::sandboxir::Use::dump ( ) const

Definition at line 58 of file Use.cpp.

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

◆ dumpOS()

void llvm::sandboxir::Use::dumpOS ( raw_ostream & OS) const

Definition at line 30 of file Use.cpp.

Referenced by dump().

◆ get()

Value * llvm::sandboxir::Use::get ( ) const

Definition at line 15 of file Use.cpp.

Referenced by llvm::sandboxir::EraseFromParent::EraseFromParent(), and operator Value *().

◆ getContext()

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

Definition at line 72 of file Use.h.

◆ getOperandNo()

unsigned llvm::sandboxir::Use::getOperandNo ( ) const

Definition at line 22 of file Use.cpp.

Referenced by llvm::sandboxir::User::Use::getOperandNo.

◆ getUser()

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

◆ operator Value *()

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

Definition at line 66 of file Use.h.

References get().

◆ operator!=()

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

Definition at line 77 of file Use.h.

References llvm::Other.

◆ operator==()

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

Definition at line 73 of file Use.h.

References assert(), and llvm::Other.

◆ set()

void llvm::sandboxir::Use::set ( Value * V)

Definition at line 17 of file Use.cpp.

Referenced by llvm::sandboxir::CallBase::setCalledOperand().

◆ swap()

void llvm::sandboxir::Use::swap ( Use & OtherUse)

Definition at line 24 of file Use.cpp.


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