LLVM API Documentation
#include <Use.h>
Public Member Functions | |
| void | swap (Use &RHS) |
| operator Value * () const | |
| Normally Use will just implicitly convert to a Value* that it holds. | |
| Value * | get () const |
| User * | getUser () const |
| void | set (Value *Val) |
| Value * | operator= (Value *RHS) |
| const Use & | operator= (const Use &RHS) |
| Value * | operator-> () |
| const Value * | operator-> () const |
| Use * | getNext () const |
Static Public Member Functions | |
| static void | zap (Use *Start, const Use *Stop, bool del=false) |
Friends | |
| class | Value |
| class | User |
Definition at line 39 of file Use.h.
| void llvm::Use::swap | ( | Use & | RHS | ) |
swap - provide a fast substitute to std::swap<Use> that also works with less standard-compliant compilers
Definition at line 22 of file Use.cpp.
References llvm::Value::addUse(), removeFromList(), V1, and Val.
| llvm::Use::operator Value * | ( | ) | const [inline] |
| Value* llvm::Use::get | ( | ) | const [inline] |
If implicit conversion to Value* doesn't work, the get() method returns the Value*.
Definition at line 68 of file Use.h.
Referenced by llvm::simplify_type< User::const_op_iterator >::getSimplifiedValue(), llvm::simplify_type< User::op_iterator >::getSimplifiedValue(), llvm::simplify_type< const Use >::getSimplifiedValue(), llvm::simplify_type< Use >::getSimplifiedValue(), and llvm::PointerMayBeCaptured().
| User * llvm::Use::getUser | ( | ) | const |
getUser - This returns the User that contains this Use. For an instruction operand, for example, this will return the instruction.
Definition at line 141 of file Use.cpp.
References End, llvm::PointerIntPair< PointerTy, IntBits, IntType >::getInt(), and llvm::PointerIntPair< PointerTy, IntBits, IntType >::getPointer().
Referenced by llvm::value_use_iterator< UserTy >::operator*(), OptimizeGlobalAddressOfMalloc(), llvm::PointerMayBeCaptured(), and llvm::Value::uncheckedReplaceAllUsesWith().
| void llvm::Use::set | ( | Value * | Val | ) | [inline] |
Definition at line 267 of file Value.h.
References llvm::Value::addUse(), and Val.
Referenced by llvm::SwitchInst::removeCase(), llvm::PHINode::removeIncomingValue(), llvm::BitcodeReaderValueList::ResolveConstantForwardRefs(), and llvm::Value::uncheckedReplaceAllUsesWith().
| Use* llvm::Use::getNext | ( | ) | const [inline] |
Definition at line 88 of file Use.h.
Referenced by llvm::value_use_iterator< UserTy >::operator++().
zap - This is used to destroy Use operands when the number of operands of a User changes.
Definition at line 113 of file Use.cpp.
Referenced by llvm::User::dropHungoffUses(), llvm::BitcodeReaderValueList::resize(), and llvm::User::~User().