[#llvm-ValueMapConfig] = xref:llvm.adoc[llvm]::ValueMapConfig :relfileprefix: ../ :mrdocs: Default configuration for configurable aspects of ValueMap. == Synopsis Declared in `<llvm/IR/ValueMap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename KeyT, typename MutexT = xref:llvm/sys/Mutex.adoc[sys::Mutex]> struct ValueMapConfig; ---- == Description User Configs should inherit from this class to be as compatible as possible with future versions of ValueMap. == Types [cols="1,4"] |=== | Name| Description | xref:llvm/ValueMapConfig/ExtraData.adoc[`ExtraData`] | Extra per‐map state passed to Config callbacks; empty by default. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:llvm/ValueMapConfig/mutex_type.adoc[`mutex_type`] | Mutex type used when Config requests locking around CallbackVH updates. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:llvm/ValueMapConfig/_04enum.adoc[`Unnamed enum`] | Compile‐time flags that control how ValueMap reacts to key changes. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ValueMapConfig/getMutex.adoc[`getMutex`] | Return a mutex to acquire around CallbackVH‐driven map changes, or null. | xref:llvm/ValueMapConfig/onDelete.adoc[`onDelete`] | Called when a key is deleted; default implementation does nothing. | xref:llvm/ValueMapConfig/onRAUW.adoc[`onRAUW`] | Called when a key is RAUWd; default implementation does nothing. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#