LLVM  14.0.0git
Public Member Functions | List of all members
llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT > Class Template Reference

#include "llvm/Analysis/BlockFrequencyInfoImpl.h"

Inheritance diagram for llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >:
Collaboration graph
[legend]

Public Member Functions

 BFICallbackVH ()=default
 
 BFICallbackVH (const BasicBlock *BB, BFIImplT *BFIImpl)
 
virtual ~BFICallbackVH ()=default
 
void deleted () override
 Callback for Value destruction. More...
 
- Public Member Functions inherited from llvm::CallbackVH
 CallbackVH ()
 
 CallbackVH (Value *P)
 
 CallbackVH (const Value *P)
 
 operator Value * () const
 
virtual void allUsesReplacedWith (Value *)
 Callback for Value RAUW. More...
 
- 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::CallbackVH
 ~CallbackVH ()=default
 
 CallbackVH (const CallbackVH &)=default
 
CallbackVHoperator= (const CallbackVH &)=default
 
void setValPtr (Value *P)
 
- 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

template<class BFIImplT>
class llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >

Definition at line 1082 of file BlockFrequencyInfoImpl.h.

Constructor & Destructor Documentation

◆ BFICallbackVH() [1/2]

template<class BFIImplT >
llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >::BFICallbackVH ( )
default

◆ BFICallbackVH() [2/2]

template<class BFIImplT >
llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >::BFICallbackVH ( const BasicBlock BB,
BFIImplT *  BFIImpl 
)
inline

Definition at line 1088 of file BlockFrequencyInfoImpl.h.

◆ ~BFICallbackVH()

template<class BFIImplT >
virtual llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >::~BFICallbackVH ( )
virtualdefault

Member Function Documentation

◆ deleted()

template<class BFIImplT >
void llvm::bfi_detail::BFICallbackVH< BasicBlock, BFIImplT >::deleted ( )
inlineoverridevirtual

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.

Reimplemented from llvm::CallbackVH.

Definition at line 1093 of file BlockFrequencyInfoImpl.h.


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