|
LLVM
3.7.0
|
This is the common base class of value handles. More...
#include <ValueHandle.h>
Public Member Functions | |
| ValueHandleBase (HandleBaseKind Kind) | |
| ValueHandleBase (HandleBaseKind Kind, Value *V) | |
| ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS) | |
| ~ValueHandleBase () | |
| Value * | operator= (Value *RHS) |
| Value * | operator= (const ValueHandleBase &RHS) |
| Value * | operator-> () const |
| Value & | operator* () const |
Static Public Member Functions | |
| static void | ValueIsDeleted (Value *V) |
| static void | ValueIsRAUWd (Value *Old, Value *New) |
Protected Types | |
| enum | HandleBaseKind { Assert, Callback, Tracking, Weak } |
| This indicates what sub class the handle actually is. More... | |
Protected Member Functions | |
| Value * | getValPtr () const |
Static Protected Member Functions | |
| static bool | isValid (Value *V) |
Friends | |
| class | Value |
This is the common base class of value handles.
ValueHandle's are smart pointers to Value's that have special behavior when the value is deleted or ReplaceAllUsesWith'd. See the specific handles below for details.
Definition at line 41 of file ValueHandle.h.
|
protected |
This indicates what sub class the handle actually is.
This is to avoid having a vtable for the light-weight handle pointers. The fully general Callback version does have a vtable.
| Enumerator | |
|---|---|
| Assert | |
| Callback | |
| Tracking | |
| Weak | |
Definition at line 48 of file ValueHandle.h.
|
inlineexplicit |
Definition at line 63 of file ValueHandle.h.
|
inline |
Definition at line 65 of file ValueHandle.h.
References isValid().
|
inline |
Definition at line 70 of file ValueHandle.h.
References isValid().
|
inline |
Definition at line 75 of file ValueHandle.h.
References isValid().
|
inlineprotected |
Definition at line 100 of file ValueHandle.h.
Referenced by llvm::SCEVUnknown::getType(), llvm::IVStrideUse::getUser(), llvm::SCEVUnknown::getValue(), llvm::DenseMapInfo< ValueMapCallbackVH< KeyT, ValueT, Config > >::isEqual(), llvm::WeakVH::operator Value *(), llvm::CallbackVH::operator Value *(), and llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::Unwrap().
Definition at line 102 of file ValueHandle.h.
Referenced by operator=(), ValueHandleBase(), and ~ValueHandleBase().
|
inline |
Definition at line 97 of file ValueHandle.h.
|
inline |
Definition at line 96 of file ValueHandle.h.
Definition at line 80 of file ValueHandle.h.
References isValid().
Referenced by llvm::WeakVH::operator=(), llvm::MMIAddrLabelMapCallbackPtr::setPtr(), and llvm::CallbackVH::setValPtr().
|
inline |
Definition at line 88 of file ValueHandle.h.
References isValid().
|
static |
Definition at line 637 of file Value.cpp.
References Assert, Callback, llvm::dbgs(), llvm::Value::getContext(), llvm::Value::getName(), llvm::Value::getType(), llvm_unreachable, llvm::LLVMContext::pImpl, Tracking, llvm::LLVMContextImpl::ValueHandles, and Weak.
Referenced by llvm::Value::~Value().
Definition at line 694 of file Value.cpp.
References Assert, Callback, llvm::dbgs(), llvm::Value::getContext(), llvm::Value::getName(), llvm::Value::getType(), llvm_unreachable, llvm::LLVMContext::pImpl, Tracking, and Weak.
Referenced by processInstruction(), llvm::Value::replaceAllUsesWith(), and llvm::SSAUpdater::RewriteUse().
|
friend |
Definition at line 42 of file ValueHandle.h.
1.8.6