llvm::ValueMapConfig

Default configuration for configurable aspects of ValueMap.

Synopsis

Declared in <llvm/IR/ValueMap.h>

template<
    typename KeyT,
    typename MutexT = sys::Mutex>
struct ValueMapConfig;

Description

User Configs should inherit from this class to be as compatible as possible with future versions of ValueMap.

Types

NameDescription
ExtraData Extra per-map state passed to Config callbacks; empty by default.

Type Aliases

NameDescription
mutex_type Mutex type used when Config requests locking around CallbackVH updates.

Enums

NameDescription
Unnamed enum Compile-time flags that control how ValueMap reacts to key changes.

Static Member Functions

NameDescription
getMutex Return a mutex to acquire around CallbackVH-driven map changes, or null.
onDelete Called when a key is deleted; default implementation does nothing.
onRAUW Called when a key is RAUWd; default implementation does nothing.