[PATCH] D125979: [ADT] add LockFreeDataPool class.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 08:15:33 PDT 2022
avl created this revision.
avl added reviewers: aprantl, JDevlieghere, dblaikie, labath, rnk.
Herald added a subscriber: mgorny.
Herald added a project: All.
avl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This review is extracted from D96035 <https://reviews.llvm.org/D96035>.
It adds a data pool that could be filled asynchronously.
A use case for that kind of pool is keeping strings
(with possible additional data) and comparing them by
pointers comparisons. f.e. it might be used instead of
NonRelocatableStringpool which cannot be used in parallel.
The implementation of the hashmap is copied(with modifications)
from lld/COFF/DebugTypes.cpp.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125979
Files:
llvm/include/llvm/ADT/LockFreeDataPool.h
llvm/unittests/ADT/CMakeLists.txt
llvm/unittests/ADT/LockFreeDataPoolTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125979.430692.patch
Type: text/x-patch
Size: 14092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220519/c6451a3d/attachment.bin>
More information about the llvm-commits
mailing list