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

Name

Description

ExtraData

Extra per‐map state passed to Config callbacks; empty by default.

Type Aliases

Name

Description

mutex_type

Mutex type used when Config requests locking around CallbackVH updates.

Enums

Name

Description

Unnamed enum

Compile‐time flags that control how ValueMap reacts to key changes.

Static Member Functions

Name

Description

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.

Created with MrDocs