LLVM 20.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 |
void | swap (Use &OtherUse) |
Context * | getContext () 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 |
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 61 of file SandboxIR.cpp.
References llvm::dbgs(), and 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().
Value * Use::get | ( | ) | const |
Definition at line 18 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 25 of file SandboxIR.cpp.
References llvm::sandboxir::User::getUseOperandNo().
Referenced by dumpOS(), llvm::sandboxir::OperandUseIterator::operator+(), llvm::sandboxir::OperandUseIterator::operator++(), and llvm::sandboxir::OperandUseIterator::operator-().
|
inline |
Definition at line 54 of file Use.h.
Referenced by llvm::sandboxir::Value::UseToUser::operator()(), llvm::sandboxir::OperandUseIterator::operator+(), llvm::sandboxir::OperandUseIterator::operator++(), llvm::sandboxir::OperandUseIterator::operator-(), llvm::sandboxir::UseSwap::UseSwap(), and llvm::sandboxir::User::verifyUserOfLLVMUse().
|
inline |
Definition at line 62 of file Use.h.
References llvm::Other.
Definition at line 58 of file Use.h.
References assert(), and llvm::Other.
void Use::set | ( | Value * | V | ) |
Definition at line 20 of file SandboxIR.cpp.
References llvm::sandboxir::Tracker::emplaceIfTracking(), and llvm::sandboxir::Context::getTracker().
Referenced by llvm::sandboxir::CallBase::setCalledOperand().
void Use::swap | ( | Use & | OtherUse | ) |
Definition at line 27 of file SandboxIR.cpp.
References llvm::sandboxir::Tracker::emplaceIfTracking(), and llvm::sandboxir::Context::getTracker().
Referenced by llvm::sandboxir::UseSwap::revert().
|
friend |
|
friend |
|
friend |