class AssumptionCacheTracker::FunctionCallbackVH

Declaration

class AssumptionCacheTracker::FunctionCallbackVH : public CallbackVH { /* full declaration omitted */ };

Description

A callback value handle applied to function objects, which we use to delete our cache of intrinsics for a function when it is deleted.

Declared at: llvm/include/llvm/Analysis/AssumptionCache.h:205

Inherits from: CallbackVH

Member Variables

private llvm::AssumptionCacheTracker* ACT

Method Overview

Inherited from CallbackVH:

Inherited from ValueHandleBase:

Methods

FunctionCallbackVH(
    llvm::Value* V,
    llvm::AssumptionCacheTracker* ACT = nullptr)

Declared at: llvm/include/llvm/Analysis/AssumptionCache.h:213

Parameters

llvm::Value* V
llvm::AssumptionCacheTracker* ACT = nullptr

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/AssumptionCache.h:208