LLVM 22.0.0git
|
Value handle that is nullable, but tries to track the Value. More...
#include "llvm/IR/ValueHandle.h"
Public Member Functions | |
WeakTrackingVH () | |
WeakTrackingVH (Value *P) | |
WeakTrackingVH (const WeakTrackingVH &RHS) | |
WeakTrackingVH & | operator= (const WeakTrackingVH &RHS)=default |
Value * | operator= (Value *RHS) |
Value * | operator= (const ValueHandleBase &RHS) |
operator Value * () const | |
bool | pointsToAliveValue () const |
Public Member Functions inherited from llvm::ValueHandleBase | |
ValueHandleBase (HandleBaseKind Kind) | |
ValueHandleBase (HandleBaseKind Kind, Value *V) | |
~ValueHandleBase () | |
Value * | operator= (Value *RHS) |
Value * | operator= (const ValueHandleBase &RHS) |
Value * | operator-> () const |
Value & | operator* () const |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::ValueHandleBase | |
static LLVM_ABI void | ValueIsDeleted (Value *V) |
static LLVM_ABI void | ValueIsRAUWd (Value *Old, Value *New) |
Protected Types inherited from llvm::ValueHandleBase | |
enum | HandleBaseKind { Assert , Callback , Weak , WeakTracking } |
This indicates what sub class the handle actually is. More... | |
Protected Member Functions inherited from llvm::ValueHandleBase | |
ValueHandleBase (const ValueHandleBase &RHS) | |
ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS) | |
Value * | getValPtr () const |
LLVM_ABI void | RemoveFromUseList () |
Remove this ValueHandle from its current use list. | |
void | clearValPtr () |
Clear the underlying pointer without clearing the use list. | |
Static Protected Member Functions inherited from llvm::ValueHandleBase | |
static bool | isValid (Value *V) |
Value handle that is nullable, but tries to track the Value.
This is a value handle that tries hard to point to a Value, even across RAUW operations, but will null itself out if the value is destroyed. this is useful for advisory sorts of information, but should not be used as the key of a map (since the map would have to rearrange itself when the pointer changes).
Definition at line 205 of file ValueHandle.h.
|
inline |
Definition at line 207 of file ValueHandle.h.
References llvm::ValueHandleBase::ValueHandleBase(), and llvm::ValueHandleBase::WeakTracking.
Referenced by operator=(), and WeakTrackingVH().
|
inline |
Definition at line 208 of file ValueHandle.h.
References P, llvm::ValueHandleBase::Value, llvm::ValueHandleBase::ValueHandleBase(), and llvm::ValueHandleBase::WeakTracking.
|
inline |
Definition at line 209 of file ValueHandle.h.
References RHS, llvm::ValueHandleBase::ValueHandleBase(), llvm::ValueHandleBase::WeakTracking, and WeakTrackingVH().
|
inline |
Definition at line 221 of file ValueHandle.h.
References llvm::ValueHandleBase::getValPtr(), and llvm::ValueHandleBase::Value.
|
inline |
Definition at line 217 of file ValueHandle.h.
References llvm::ValueHandleBase::operator=(), RHS, llvm::ValueHandleBase::Value, and llvm::ValueHandleBase::ValueHandleBase().
|
default |
References RHS, and WeakTrackingVH().
Definition at line 214 of file ValueHandle.h.
References llvm::ValueHandleBase::operator=(), RHS, and llvm::ValueHandleBase::Value.
|
inline |
Definition at line 225 of file ValueHandle.h.
References llvm::ValueHandleBase::getValPtr(), and llvm::ValueHandleBase::isValid().