summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2013-01-21 18:18:53 +0000
committerMichael Ilseman <milseman@apple.com>2013-01-21 18:18:53 +0000
commit3e3194f4ece2261b9b90d967793a1dd19281693e (patch)
treefbb4f23fd1b249382e3a8b66410bc72b8ebdbaba /llvm/lib/Bitcode/Reader/BitstreamReader.cpp
parent9221b8fdac14c628c5f084bbf7bca352ee6bf3a2 (diff)
downloadbcm5719-llvm-3e3194f4ece2261b9b90d967793a1dd19281693e.tar.gz
bcm5719-llvm-3e3194f4ece2261b9b90d967793a1dd19281693e.zip
Introduce a new data structure, the SparseMultiSet, and changes to the MI scheduler to use it.
A SparseMultiSet adds multiset behavior to SparseSet, while retaining SparseSet's desirable properties. Essentially, SparseMultiSet provides multiset behavior by storing its dense data in doubly linked lists that are inlined into the dense vector. This allows it to provide good data locality as well as vector-like constant-time clear() and fast constant time find(), insert(), and erase(). It also allows SparseMultiSet to have a builtin recycler rather than keeping SparseSet's behavior of always swapping upon removal, which allows it to preserve more iterators. It's often a better alternative to a SparseSet of a growable container or vector-of-vector. llvm-svn: 173064
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud