LLVM 19.0.0git
|
Represents a Def-use/Use-def edge in SandboxIR. More...
#include "llvm/SandboxIR/Use.h"
Public Member Functions | |
operator Value * () const | |
Value * | get () const |
void | set (Value *V) |
class User * | getUser () const |
unsigned | getOperandNo () const |
Context * | getContext () 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 |
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.
void Use::dump | ( | ) | const |
Definition at line 52 of file SandboxIR.cpp.
References llvm::dbgs(), and dump().
Referenced by dump().
void Use::dump | ( | raw_ostream & | OS | ) | const |
Definition at line 24 of file SandboxIR.cpp.
References getOperandNo(), llvm::sandboxir::Context::getValue(), and OS.
Value * Use::get | ( | ) | const |
Definition at line 17 of file SandboxIR.cpp.
References llvm::sandboxir::Context::getValue().
Referenced by llvm::sandboxir::EraseFromParent::EraseFromParent(), llvm::sandboxir::User::getOperand(), operator Value *(), and llvm::sandboxir::User::replaceUsesOfWith().
unsigned Use::getOperandNo | ( | ) | const |
Definition at line 21 of file SandboxIR.cpp.
References llvm::sandboxir::User::getUseOperandNo().
Referenced by dump(), and llvm::sandboxir::OperandUseIterator::operator++().
|
inline |
Definition at line 48 of file Use.h.
Referenced by llvm::sandboxir::Value::UseToUser::operator()(), llvm::sandboxir::OperandUseIterator::operator++(), and llvm::sandboxir::User::verifyUserOfLLVMUse().
|
inline |
Definition at line 55 of file Use.h.
References llvm::Other.
Definition at line 51 of file Use.h.
References assert(), and llvm::Other.
void Use::set | ( | Value * | V | ) |
Definition at line 19 of file SandboxIR.cpp.
|
friend |
|
friend |