LLVM: llvm::ValueMapConfig< KeyT, MutexT > Struct Template Reference (original) (raw)

This class defines the default behavior for configurable aspects of ValueMap<>. More...

#include "[llvm/IR/ValueMap.h](ValueMap%5F8h%5Fsource.html)"

Public Types
enum { FollowRAUW = true }
If FollowRAUW is true, the ValueMap will update mappings on RAUW. More...
using mutex_type = MutexT
Static Public Member Functions
template
static void onRAUW (const ExtraDataT &, KeyT, KeyT)
template
static void onDelete (const ExtraDataT &, KeyT)
template
static mutex_type * getMutex (const ExtraDataT &)
Returns a mutex that should be acquired around any changes to the map.

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

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.

Definition at line 53 of file ValueMap.h.

mutex_type

template<typename KeyT, typename MutexT = sys::Mutex>

anonymous enum

template<typename KeyT, typename MutexT = sys::Mutex>

If FollowRAUW is true, the ValueMap will update mappings on RAUW.

If it's false, the ValueMap will leave the original mapping in place.

Enumerator
FollowRAUW

Definition at line 58 of file ValueMap.h.

getMutex()

template<typename KeyT, typename MutexT = sys::Mutex>

template

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.

Definition at line 76 of file ValueMap.h.

onDelete()

template<typename KeyT, typename MutexT = sys::Mutex>

template

onRAUW()

template<typename KeyT, typename MutexT = sys::Mutex>

template


The documentation for this struct was generated from the following file: