LLVM API Documentation
#include <ValueHandle.h>
Public Member Functions | |
| CallbackVH () | |
| CallbackVH (Value *P) | |
| operator Value * () const | |
| virtual void | deleted () |
| virtual void | allUsesReplacedWith (Value *new_value) |
Protected Member Functions | |
| CallbackVH (const CallbackVH &RHS) | |
| virtual | ~CallbackVH () |
| void | setValPtr (Value *P) |
Definition at line 232 of file ValueHandle.h.
| llvm::CallbackVH::CallbackVH | ( | const CallbackVH & | RHS | ) | [inline, protected] |
Definition at line 234 of file ValueHandle.h.
| CallbackVH::~CallbackVH | ( | ) | [protected, virtual] |
| llvm::CallbackVH::CallbackVH | ( | ) | [inline] |
Definition at line 244 of file ValueHandle.h.
| llvm::CallbackVH::CallbackVH | ( | Value * | P | ) | [inline] |
Definition at line 245 of file ValueHandle.h.
| void llvm::CallbackVH::setValPtr | ( | Value * | P | ) | [inline, protected] |
Definition at line 239 of file ValueHandle.h.
References llvm::ValueHandleBase::operator=().
Referenced by deleted(), and llvm::IVStrideUse::setUser().
| llvm::CallbackVH::operator Value * | ( | ) | const [inline] |
| virtual void llvm::CallbackVH::deleted | ( | ) | [inline, virtual] |
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.
Definition at line 259 of file ValueHandle.h.
References setValPtr().
| virtual void llvm::CallbackVH::allUsesReplacedWith | ( | Value * | new_value | ) | [inline, virtual] |
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.
Definition at line 267 of file ValueHandle.h.