Home
last modified time | relevance | path

Searched refs:IndexT (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DCoalescingBitVector.h37 template <typename IndexT> class CoalescingBitVector {
38 static_assert(std::is_unsigned<IndexT>::value,
41 using ThisT = CoalescingBitVector<IndexT>;
44 using MapT = IntervalMap<IndexT, char>;
48 using IntervalT = std::pair<IndexT, IndexT>;
96 void set(IndexT Index) { in set()
113 void set(std::initializer_list<IndexT> Indices) { in set()
114 for (IndexT Index : Indices) in set()
119 bool test(IndexT Index) const { in test()
128 void test_and_set(IndexT Index) { in test_and_set()
[all …]
H A DIndexedMap.h30 using IndexT = typename ToIndexT::argument_type; variable
45 typename StorageT::reference operator[](IndexT n) {
50 typename StorageT::const_reference operator[](IndexT n) const {
67 void grow(IndexT n) { in grow()
73 bool inBounds(IndexT n) const { in inBounds()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_dense_alloc.h28 typedef u32 IndexT; typedef
30 IndexT cache[kSize];
38 typedef typename Cache::IndexT IndexT; typedef
44 CHECK_GE(1ull << (sizeof(IndexT) * 8), kL1Size * kL2Size); in DenseSlabAlloc()
46 CHECK_GE(sizeof(T), sizeof(IndexT)); in DenseSlabAlloc()
60 IndexT Alloc(Cache *c) { in Alloc()
66 void Free(Cache *c, IndexT idx) { in Free()
73 T *Map(IndexT idx) { in Map()
82 IndexT idx = c->cache[--c->pos]; in FlushCache()
83 *(IndexT*)Map(idx) = freelist_; in FlushCache()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_dense_alloc.h30 typedef u32 IndexT; typedef
32 IndexT cache[kSize];
40 typedef typename Cache::IndexT IndexT; typedef
46 CHECK_GE(1ull << (sizeof(IndexT) * 8), kL1Size * kL2Size); in DenseSlabAlloc()
48 CHECK_GE(sizeof(T), sizeof(IndexT)); in DenseSlabAlloc()
62 IndexT Alloc(Cache *c) { in Alloc()
68 void Free(Cache *c, IndexT idx) { in Free()
75 T *Map(IndexT idx) { in Map()
84 IndexT idx = c->cache[--c->pos]; in FlushCache()
85 *(IndexT*)Map(idx) = freelist_; in FlushCache()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/
H A Dtsan_dense_alloc.h28 typedef u32 IndexT; typedef
30 IndexT cache[kSize];
39 typedef typename Cache::IndexT IndexT; typedef
45 static_assert((kL1Size * kL2Size) <= (1ull << (sizeof(IndexT) * 8)),
49 static_assert(sizeof(T) > sizeof(IndexT),
68 IndexT Alloc(Cache *c) { in Alloc()
74 void Free(Cache *c, IndexT idx) { in Free()
81 T *Map(IndexT idx) { in Map()
92 IndexT idx = c->cache[--c->pos]; in FlushCache()
93 *(IndexT*)Map(idx) = freelist_; in FlushCache()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cc27 typedef Alloc::IndexT IndexT; in TEST() typedef
34 IndexT blocks[N]; in TEST()
37 IndexT idx = alloc.Alloc(&cache); in TEST()
45 IndexT idx = blocks[i]; in TEST()