class AliasSetTracker::ASTCallbackVH
Declaration
class AliasSetTracker::ASTCallbackVH : public CallbackVH { /* full declaration omitted */ };
Description
A CallbackVH to arrange for AliasSetTracker to be notified whenever a Value is deleted.
Declared at: llvm/include/llvm/Analysis/AliasSetTracker.h:325
Inherits from: CallbackVH
Member Variables
- private llvm::AliasSetTracker* AST
Method Overview
- public ASTCallbackVH(llvm::Value * V, llvm::AliasSetTracker * AST = nullptr)
- private void allUsesReplacedWith(llvm::Value *)
- private void deleted()
Inherited from CallbackVH:
Inherited from ValueHandleBase:
- protected RemoveFromUseList
- public ValueIsDeleted
- public ValueIsRAUWd
- protected clearValPtr
- protected getValPtr
- protected isValid
Methods
¶ASTCallbackVH(
llvm::Value* V,
llvm::AliasSetTracker* AST = nullptr)
ASTCallbackVH(
llvm::Value* V,
llvm::AliasSetTracker* AST = nullptr)
Declared at: llvm/include/llvm/Analysis/AliasSetTracker.h:332
Parameters
- llvm::Value* V
- llvm::AliasSetTracker* AST = nullptr
¶void allUsesReplacedWith(llvm::Value*)
void allUsesReplacedWith(llvm::Value*)
Description
Callback for Value RAUW. Called when this->getValPtr()->replaceAllUsesWith(new_value) is called, _before_ any of the uses have actually been replaced. If WeakTrackingVH were implemented as a CallbackVH, it would use this method to call setValPtr(new_value). AssertingVH would do nothing in this method.
Declared at: llvm/include/llvm/Analysis/AliasSetTracker.h:329
Parameters
¶void deleted()
void deleted()
Description
Callback for Value destruction. Called when this->getValPtr() is destroyed, inside ~Value(), so you may call any non-virtual Value method on getValPtr(), but no subclass methods. If WeakTrackingVH 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.
Declared at: llvm/include/llvm/Analysis/AliasSetTracker.h:328