|
14 | 14 | #define TYPEART_RUNTIMEDATA_H |
15 | 15 |
|
16 | 16 | #ifdef TYPEART_BTREE |
17 | | -#ifdef TYPEART_ABSEIL |
18 | | -#error TypeART-RT: Set BTREE and ABSL, mutually exclusive. |
19 | | -#endif |
20 | | -#include "btree_map.h" |
| 17 | +#error TypeART-RT: TYPART_BTREE is deprecated. |
21 | 18 | #endif |
22 | 19 |
|
23 | 20 | #ifdef TYPEART_ABSEIL |
24 | | -#ifdef TYPEART_BTREE |
25 | | -#error TypeART-RT: Set ABSL and BTREE, mutually exclusive. |
| 21 | +#ifdef TYPEART_PHMAP |
| 22 | +#error TypeART-RT: Set ABSL and PHMAP, mutually exclusive. |
26 | 23 | #endif |
27 | 24 | #pragma GCC diagnostic push |
28 | 25 | #pragma GCC diagnostic ignored "-Wpedantic" |
29 | 26 | #include "absl/container/btree_map.h" |
30 | 27 | #pragma GCC diagnostic pop |
31 | 28 | #endif |
32 | 29 |
|
33 | | -#if !defined(TYPEART_BTREE) && !defined(TYPEART_ABSEIL) |
| 30 | +#ifdef TYPEART_PHMAP |
| 31 | +#ifdef TYPEART_ABSEIL |
| 32 | +#error TypeART-RT: Set ABSL and PHMAP, mutually exclusive. |
| 33 | +#endif |
| 34 | +#include "parallel_hashmap/btree.h" |
| 35 | +#endif |
| 36 | + |
| 37 | +#if !defined(TYPEART_PHMAP) && !defined(TYPEART_ABSEIL) |
34 | 38 | #include <map> |
35 | 39 | #endif |
36 | 40 |
|
@@ -58,15 +62,15 @@ struct RuntimeT { |
58 | 62 | using Stack = std::vector<MemAddr>; |
59 | 63 | static constexpr auto StackReserve{512U}; |
60 | 64 | static constexpr char StackName[] = "std::vector"; |
61 | | -#ifdef TYPEART_BTREE |
62 | | - using PointerMapBaseT = btree::btree_map<MemAddr, PointerInfo>; |
63 | | - static constexpr char MapName[] = "btree::btree_map"; |
| 65 | +#ifdef TYPEART_PHMAP |
| 66 | + using PointerMapBaseT = phmap::btree_map<MemAddr, PointerInfo>; |
| 67 | + static constexpr char MapName[] = "phmap::btree_map"; |
64 | 68 | #endif |
65 | 69 | #ifdef TYPEART_ABSEIL |
66 | 70 | using PointerMapBaseT = absl::btree_map<MemAddr, PointerInfo>; |
67 | 71 | static constexpr char MapName[] = "absl::btree_map"; |
68 | 72 | #endif |
69 | | -#if !defined(TYPEART_BTREE) && !defined(TYPEART_ABSEIL) |
| 73 | +#if !defined(TYPEART_PHMAP) && !defined(TYPEART_ABSEIL) |
70 | 74 | using PointerMapBaseT = std::map<MemAddr, PointerInfo>; |
71 | 75 | static constexpr char MapName[] = "std::map"; |
72 | 76 | #endif |
|
0 commit comments