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 llvm::sandboxir::Use::dump | ( | ) | const |
Definition at line 58 of file Use.cpp.
References llvm::dbgs(), and dumpOS().
void llvm::sandboxir::Use::dumpOS | ( | raw_ostream & | OS | ) | const |
Value * llvm::sandboxir::Use::get | ( | ) | const |
Definition at line 15 of file Use.cpp.
References llvm::sandboxir::Context::getValue().
Referenced by llvm::sandboxir::EraseFromParent::EraseFromParent(), llvm::sandboxir::User::getOperand(), and operator Value *().
unsigned llvm::sandboxir::Use::getOperandNo | ( | ) | const |
Definition at line 22 of file Use.cpp.
References llvm::sandboxir::User::getUseOperandNo().
Referenced by 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 llvm::sandboxir::Use::set | ( | Value * | V | ) |
Definition at line 17 of file Use.cpp.
References llvm::sandboxir::Tracker::emplaceIfTracking(), and llvm::sandboxir::Context::getTracker().
Referenced by llvm::sandboxir::CallBase::setCalledOperand().
void llvm::sandboxir::Use::swap | ( | Use & | OtherUse | ) |
Definition at line 24 of file Use.cpp.
References llvm::sandboxir::Tracker::emplaceIfTracking(), and llvm::sandboxir::Context::getTracker().
Referenced by llvm::sandboxir::UseSwap::revert().
|
friend |
|
friend |
|
friend |