diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 20:10:20 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 20:10:20 +0000 |
commit | e0a234029b1b65f21169536f4c45e83743ed3cfa (patch) | |
tree | 47c339af1f2fbc95bfa69c64488190662f759a32 /lib/CodeGen/PostRASchedulerList.cpp | |
parent | 9d89df169027035bf692b3d397bb93cff7bdc860 (diff) |
Add a ValueMap<ValueOrSubclass*, T> type. ValueMap<Value*, T> is safe to use
even when keys get RAUWed and deleted during its lifetime. By default the keys
act like WeakVHs, but users can pass a third template parameter to configure
how updates work and whether to do anything beyond updating the map on each
action.
It's also possible to automatically acquire a lock around ValueMap updates
triggered by RAUWs and deletes, to support the ExecutionEngine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
0 files changed, 0 insertions, 0 deletions