This class defines the default behavior for configurable aspects of ValueMap<>. User Configs should inherit from this class to be as compatible as possible with future versions of ValueMap.

Synopsis

Declared in <llvm/IR/ValueMap.h>

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

Types

Name

ExtraData

Type Aliases

Name

mutex_type

Enums

Name

Description

Unnamed enum

If FollowRAUW is true, the ValueMap will update mappings on RAUW. If it's false, the ValueMap will leave the original mapping in place.

Static Member Functions

Name

Description

getMutex

Returns a mutex that should be acquired around any changes to the map. This is only acquired from the CallbackVH (and held around calls to onRAUW and onDelete) and not inside other ValueMap methods. NULL means that no mutex is necessary.

onDelete

onRAUW

Created with MrDocs