LLVM  8.0.1
Public Member Functions | List of all members
llvm::WeakVH Class Reference

A nullable Value handle that is nullable. More...

#include "llvm/IR/ValueHandle.h"

Inheritance diagram for llvm::WeakVH:
Inheritance graph
[legend]
Collaboration diagram for llvm::WeakVH:
Collaboration graph
[legend]

Public Member Functions

 WeakVH ()
 
 WeakVH (Value *P)
 
 WeakVH (const WeakVH &RHS)
 
WeakVHoperator= (const WeakVH &RHS)=default
 
Valueoperator= (Value *RHS)
 
Valueoperator= (const ValueHandleBase &RHS)
 
 operator Value * () const
 
- Public Member Functions inherited from llvm::ValueHandleBase
 ValueHandleBase (HandleBaseKind Kind)
 
 ValueHandleBase (HandleBaseKind Kind, Value *V)
 
 ~ValueHandleBase ()
 
Valueoperator= (Value *RHS)
 
Valueoperator= (const ValueHandleBase &RHS)
 
Valueoperator-> () const
 
Valueoperator* () const
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ValueHandleBase
static void ValueIsDeleted (Value *V)
 
static 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)
 
ValuegetValPtr () const
 
void RemoveFromUseList ()
 Remove this ValueHandle from its current use list. More...
 
void clearValPtr ()
 Clear the underlying pointer without clearing the use list. More...
 
- Static Protected Member Functions inherited from llvm::ValueHandleBase
static bool isValid (Value *V)
 

Detailed Description

A nullable Value handle that is nullable.

This is a value handle that points to a value, and nulls itself out if that value is deleted.

Definition at line 141 of file ValueHandle.h.

Constructor & Destructor Documentation

◆ WeakVH() [1/3]

llvm::WeakVH::WeakVH ( )
inline

Definition at line 143 of file ValueHandle.h.

◆ WeakVH() [2/3]

llvm::WeakVH::WeakVH ( Value P)
inline

Definition at line 144 of file ValueHandle.h.

◆ WeakVH() [3/3]

llvm::WeakVH::WeakVH ( const WeakVH RHS)
inline

Definition at line 145 of file ValueHandle.h.

References llvm::ValueHandleBase::operator=().

Member Function Documentation

◆ operator Value *()

llvm::WeakVH::operator Value * ( ) const
inline

Definition at line 157 of file ValueHandle.h.

References llvm::ValueHandleBase::getValPtr().

◆ operator=() [1/3]

WeakVH& llvm::WeakVH::operator= ( const WeakVH RHS)
default

◆ operator=() [2/3]

Value* llvm::WeakVH::operator= ( Value RHS)
inline

Definition at line 150 of file ValueHandle.h.

References llvm::ValueHandleBase::operator=().

◆ operator=() [3/3]

Value* llvm::WeakVH::operator= ( const ValueHandleBase RHS)
inline

Definition at line 153 of file ValueHandle.h.

References llvm::ValueHandleBase::operator=().


The documentation for this class was generated from the following file: