LLVM API Documentation
#include <ValueMap.h>
Public Member Functions | |
KeyT | Unwrap () const |
virtual void | deleted () |
virtual void | allUsesReplacedWith (Value *new_key) |
![]() | |
CallbackVH () | |
CallbackVH (Value *P) | |
operator Value * () const | |
![]() | |
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 |
Friends | |
class | ValueMap< KeyT, ValueT, Config > |
struct | DenseMapInfo< ValueMapCallbackVH > |
Additional Inherited Members | |
![]() | |
static void | ValueIsDeleted (Value *V) |
static void | ValueIsRAUWd (Value *Old, Value *New) |
![]() | |
enum | HandleBaseKind { Assert, Callback, Tracking, Weak } |
![]() | |
CallbackVH (const CallbackVH &RHS) | |
virtual | ~CallbackVH () |
void | setValPtr (Value *P) |
![]() | |
Value * | getValPtr () const |
void | setValPtrInt (unsigned K) |
unsigned | getValPtrInt () const |
![]() | |
static bool | isValid (Value *V) |
Definition at line 38 of file ValueMap.h.
|
inlinevirtual |
Called when this->getValPtr()->replaceAllUsesWith(new_value) is called, before any of the uses have actually been replaced. If WeakVH were implemented as a CallbackVH, it would use this method to call setValPtr(new_value). AssertingVH would do nothing in this method.
Reimplemented from llvm::CallbackVH.
Definition at line 223 of file ValueMap.h.
References llvm::sys::SmartMutex< mt_only >::acquire(), I, llvm::sys::SmartMutex< mt_only >::release(), and llvm::ValueMapIterator< DenseMapT, KeyT >::ValueTypeProxy::second.
|
inlinevirtual |
Called when this->getValPtr() is destroyed, inside ~Value(), so you may call any non-virtual Value method on getValPtr(), but no subclass methods. If WeakVH were implemented as a CallbackVH, it would use this method to call setValPtr(NULL). AssertingVH would use this method to cause an assertion failure.
All implementations must remove the reference from this object to the Value that's being destroyed.
Reimplemented from llvm::CallbackVH.
Definition at line 212 of file ValueMap.h.
References llvm::sys::SmartMutex< mt_only >::acquire(), and llvm::sys::SmartMutex< mt_only >::release().
|
inline |
Definition at line 210 of file ValueMap.h.
References llvm::ValueHandleBase::getValPtr().
Referenced by llvm::DenseMapInfo< ValueMapCallbackVH< KeyT, ValueT, Config > >::getHashValue().
|
friend |
Definition at line 199 of file ValueMap.h.
|
friend |
Definition at line 198 of file ValueMap.h.