LLVM API Documentation
#include <ValueMap.h>
Classes | |
struct | ExtraData |
Public Types | |
enum | { FollowRAUW = true } |
typedef MutexT | mutex_type |
Static Public Member Functions | |
template<typename ExtraDataT > | |
static void | onRAUW (const ExtraDataT &, KeyT, KeyT) |
template<typename ExtraDataT > | |
static void | onDelete (const ExtraDataT &, KeyT) |
template<typename ExtraDataT > | |
static mutex_type * | getMutex (const ExtraDataT &) |
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 50 of file ValueMap.h.
typedef MutexT llvm::ValueMapConfig< KeyT, MutexT >::mutex_type |
Definition at line 51 of file ValueMap.h.
anonymous 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.
Definition at line 55 of file ValueMap.h.
static mutex_type* llvm::ValueMapConfig< KeyT, MutexT >::getMutex | ( | const ExtraDataT & | ) | [inline, static] |
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 73 of file ValueMap.h.
static void llvm::ValueMapConfig< KeyT, MutexT >::onDelete | ( | const ExtraDataT & | , |
KeyT | |||
) | [inline, static] |
Definition at line 66 of file ValueMap.h.
static void llvm::ValueMapConfig< KeyT, MutexT >::onRAUW | ( | const ExtraDataT & | , |
KeyT | , | ||
KeyT | |||
) | [inline, static] |
Definition at line 64 of file ValueMap.h.