CallbackVH that updates its ValueMap when the contained Value changes.

Synopsis

Declared in <llvm/IR/ValueMap.h>

template<
    typename KeyT,
    typename ValueT,
    typename Config>
class ValueMapCallbackVH final
    : public CallbackVH

Description

Behavior follows the user's preferences expressed through the Config object.

Base Classes

Name

Description

CallbackVH

Value handle with callbacks on RAUW and destruction.

Member Functions

Name

Description

operator=

Assignment operators

Unwrap

Return the key as type KeyT.

allUsesReplacedWith

allUsesReplacedWith overloads

deleted [virtual]

Notify the Config and erase this key when the Value is deleted.

operator*

Return a reference to the tracked Value.

operator‐>

Return a pointer to the tracked Value.

operator Value*

Implicit conversion to the tracked Value pointer.

Static Member Functions

Name

Description

ValueIsDeleted

Notify all handles that V is being destroyed.

ValueIsRAUWd

Notify all handles that Old is being RAUW'd to New.

Protected Enums

Name

Description

HandleBaseKind

This indicates what sub class the handle actually is.

Protected Member Functions

Name

Description

operator=

Copy‐assign from another callback handle.

RemoveFromUseList

Remove this ValueHandle from its current use list.

clearValPtr

Clear the underlying pointer without clearing the use list.

getValPtr

Return the raw Value pointer held by this handle.

setValPtr

Point this handle at P.

Protected Static Member Functions

Name

Description

isValid

Return true if V is a non‐null Value pointer.

Friends

Name

Description

llvm::DenseMapInfo

Traits type that supplies DenseMap hashing and equality for value type T.

llvm::ValueMap

See the file comment.

Created with MrDocs