Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 25 of 149) sorted by relevance

123456

/llvm-project-15.0.7/clang/unittests/Serialization/
H A DInMemoryModuleCacheTest.cpp26 InMemoryModuleCache Cache; in TEST() local
28 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
41 InMemoryModuleCache Cache; in TEST() local
45 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
59 InMemoryModuleCache Cache; in TEST() local
63 EXPECT_TRUE(Cache.isPCMFinal("B")); in TEST()
80 InMemoryModuleCache Cache; in TEST() local
98 EXPECT_TRUE(Cache.isPCMFinal("B")); in TEST()
109 InMemoryModuleCache Cache; in TEST() local
114 Cache.finalizePCM("B"); in TEST()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dquarantine_test.cpp71 CacheT Cache; in TEST() local
73 Cache.init(); in TEST()
82 CacheT Cache; in TEST() local
83 Cache.init(); in TEST()
105 CacheT Cache; in TEST() local
106 Cache.init(); in TEST()
130 CacheT Cache; in TEST() local
132 Cache.init(); in TEST()
160 CacheT Cache; in TEST() local
161 Cache.init(); in TEST()
[all …]
H A Dprimary_test.cpp122 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
139 Cache.destroy(nullptr); in SCUDO_TYPED_TEST()
165 typename Primary::CacheT Cache; in TEST() local
168 Cache.init(&Stats, &Allocator); in TEST()
187 Cache.destroy(nullptr); in TEST()
200 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
225 Cache.destroy(nullptr); in SCUDO_TYPED_TEST()
264 Cache.destroy(nullptr); in SCUDO_TYPED_TEST()
286 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
293 Cache.deallocate(ClassId, P); in SCUDO_TYPED_TEST()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.nonprop.cache/
H A Dassign.move.pass.cpp43 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
48 Cache a; a.__emplace(3); in test()
49 Cache b; in test()
51 Cache& result = (b = std::move(a)); in test()
59 Cache a; a.__emplace(3); in test()
60 Cache b; b.__emplace(5); in test()
62 Cache& result = (b = std::move(a)); in test()
70 Cache b; in test()
72 Cache& result = (b = std::move(b)); in test()
79 Cache b; b.__emplace(5); in test()
[all …]
H A Dassign.copy.pass.cpp44 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
49 Cache a; a.__emplace(3); in test()
50 Cache b; in test()
52 Cache& result = (b = a); in test()
62 Cache a; a.__emplace(3); in test()
63 Cache b; b.__emplace(5); in test()
65 Cache& result = (b = a); in test()
75 Cache b; in test()
76 Cache& result = (b = b); in test()
83 Cache b; b.__emplace(5); in test()
[all …]
H A Demplace.pass.cpp38 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
39 Cache cache; in test()
47 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
48 Cache cache; in test()
55 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
56 Cache cache; in test()
64 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
65 Cache cache; in test()
72 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
73 Cache cache; in test()
[all …]
H A Demplace_from.pass.cpp38 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
39 Cache cache; in test()
46 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
47 Cache cache; in test()
54 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
55 Cache cache; in test()
64 using Cache = std::ranges::__non_propagating_cache<NonMovable>; in test() typedef
65 Cache cache; in test()
H A Dctor.move.pass.cpp30 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
31 static_assert(std::is_nothrow_move_constructible_v<Cache>); in test()
35 Cache a; in test()
38 Cache b(std::move(a)); in test()
45 Cache a; in test()
48 Cache b = std::move(a); in test()
H A Dctor.copy.pass.cpp38 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
39 static_assert(std::is_nothrow_copy_constructible_v<Cache>); in test()
40 Cache a; in test()
45 Cache b(a); in test()
54 Cache b = a; in test()
H A Dderef.pass.cpp21 using Cache = std::ranges::__non_propagating_cache<T>; in test() typedef
25 Cache cache; cache.__emplace(3); in test()
32 Cache cache; cache.__emplace(3); in test()
33 T const& result = *static_cast<Cache const&>(cache); in test()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/
H A DMCJITObjectCacheTest.cpp131 TheJIT->setObjectCache(Cache.get()); in TEST_F()
140 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F()
143 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
147 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
157 TheJIT->setObjectCache(Cache.get()); in TEST_F()
174 TheJIT->setObjectCache(Cache.get()); in TEST_F()
181 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
191 TheJIT->setObjectCache(Cache.get()); in TEST_F()
209 TheJIT->setObjectCache(Cache.get()); in TEST_F()
222 ObjBuffer = Cache->getObjectInternal(SecondModulePointer); in TEST_F()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_quarantine_test.cpp77 Cache cache; in TEST()
78 Cache to_deallocate; in TEST()
86 Cache cache; in TEST()
90 Cache to_deallocate; in TEST()
104 Cache from; in TEST()
106 Cache cache; in TEST()
112 Cache to_deallocate; in TEST()
127 Cache from; in TEST()
128 Cache cache; in TEST()
154 Cache cache; in TEST()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_allocator_combined.h34 void *allocatePrimary(AllocatorCache *Cache, uptr ClassId) { in allocatePrimary() argument
35 return Cache->Allocate(&Primary, ClassId); in allocatePrimary()
44 void deallocatePrimary(AllocatorCache *Cache, void *Ptr, uptr ClassId) { in deallocatePrimary() argument
45 Cache->Deallocate(&Primary, ClassId, Ptr); in deallocatePrimary()
52 void initCache(AllocatorCache *Cache) { in initCache() argument
53 Cache->Init(&Stats); in initCache()
56 void destroyCache(AllocatorCache *Cache) { in destroyCache() argument
57 Cache->Destroy(&Primary, &Stats); in destroyCache()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp49 AC.Cache.erase(Mod); in clearAnnotationCache()
104 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD()
109 AC.Cache[m] = std::move(tmp1); in cacheAnnotationFromMD()
118 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation()
120 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation()
122 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation()
124 retval = AC.Cache[m][gv][prop][0]; in findOneNVVMAnnotation()
133 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation()
135 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findAllNVVMAnnotation()
137 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findAllNVVMAnnotation()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp703 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
726 return Cache; in getNonLocalCallDependency()
736 llvm::sort(Cache); in getNonLocalCallDependency()
766 std::upper_bound(Cache.begin(), Cache.begin() + NumSortedEntries, in getNonLocalCallDependency()
830 return Cache; in getNonLocalCallDependency()
992 Cache.pop_back(); in SortNonLocalDepInfoCache()
994 std::upper_bound(Cache.begin(), Cache.end() - 1, Val); in SortNonLocalDepInfoCache()
1201 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1284 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1288 Cache = nullptr; in getNonLocalPointerDepFromBB()
[all …]
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dstatic_init2.cpp6 struct Cache { struct
8 explicit Cache(int x) in Cache() argument
13 void foo(Cache *my) { in foo()
14 static Cache *c = my ? my : new Cache(rand()); in foo()
20 foo(new Cache(rand())); in Thread()
H A Dstatic_init3.cpp7 struct Cache { struct
11 Cache g_cache; argument
13 Cache *CreateCache() { in CreateCache()
18 _Atomic(Cache*) queue;
21 static Cache *c = CreateCache(); in Thread1()
27 Cache *c = 0; in Thread2()
H A Dstatic_init5.cpp7 struct Cache { struct
9 explicit Cache(int x) in Cache() function
15 return new Cache((int)(long)p); in AsyncInit()
18 Cache *CreateCache() { in CreateCache()
23 return (Cache*)res; in CreateCache()
27 static Cache *c = CreateCache(); in Thread1()
H A Dstatic_init6.cpp7 struct Cache { struct
9 explicit Cache(int x) in Cache() argument
15 return new Cache((int)(long)p); in AsyncInit()
18 Cache *CreateCache() { in CreateCache()
23 return (Cache*)res; in CreateCache()
27 static Cache *c = CreateCache(); in Thread1()
H A Dstatic_init4.cpp7 struct Cache { struct
9 explicit Cache(int x) in Cache() argument
16 Cache *CreateCache() { in CreateCache()
18 return new Cache(rand()); in CreateCache()
22 static Cache *c = CreateCache(); in Thread1()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_dense_alloc.h38 typedef DenseSlabAllocCache Cache; typedef
39 typedef typename Cache::IndexT IndexT;
68 IndexT Alloc(Cache *c) { in Alloc()
74 void Free(Cache *c, IndexT idx) { in Free()
76 if (c->pos == Cache::kSize) in Free()
87 void FlushCache(Cache *c) { in FlushCache()
98 void InitCache(Cache *c) { in InitCache()
114 void Refill(Cache *c) { in Refill()
137 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) { in Refill()
144 void Drain(Cache *c) { in Drain()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_dense_alloc.h38 typedef DenseSlabAllocCache Cache; typedef
39 typedef typename Cache::IndexT IndexT;
68 IndexT Alloc(Cache *c) { in Alloc()
74 void Free(Cache *c, IndexT idx) { in Free()
76 if (c->pos == Cache::kSize) in Free()
87 void FlushCache(Cache *c) { in FlushCache()
91 void InitCache(Cache *c) { in InitCache()
130 NOINLINE void Refill(Cache *c) { in Refill()
150 NOINLINE void Drain(Cache *c) { in Drain()
170 NOINLINE void AllocSuperBlock(Cache *c) { in AllocSuperBlock()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DConfigProvider.cpp60 mutable FileConfigCache Cache; // threadsafe in fromYAMLFile() member in clang::clangd::config::Provider::fromYAMLFile::AbsFileProvider
67 Cache.get(FS, DC, P.FreshTime, Trusted, Result); in fromYAMLFile()
74 : Cache(Path, Directory), FS(FS), Trusted(Trusted) { in fromYAMLFile()
94 mutable llvm::StringMap<FileConfigCache> Cache; in fromAncestorRelativeYAMLFiles() member in clang::clangd::config::Provider::fromAncestorRelativeYAMLFiles::RelFileProvider
114 auto It = Cache.find(Ancestor); in fromAncestorRelativeYAMLFiles()
116 if (It == Cache.end()) { in fromAncestorRelativeYAMLFiles()
121 It = Cache.try_emplace(Ancestor, ConfigPath.str(), Ancestor).first; in fromAncestorRelativeYAMLFiles()
129 for (FileConfigCache *Cache : llvm::reverse(Caches)) in fromAncestorRelativeYAMLFiles()
130 Cache->get(FS, DC, P.FreshTime, Trusted, Result); in fromAncestorRelativeYAMLFiles()
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DReorderUtils.h74 : Size(Size), Cache(Size * Size), Valid(Size * Size, false) {} in ClusterPairCache()
82 return Cache[index(First, Second)]; in get()
87 Cache[Index] = Value; in set()
103 std::vector<ValueType> Cache; variable
115 : Size(Size), Cache(Size * Size), Valid(Size * Size, false) {} in ClusterPairCacheThreadSafe()
123 return Cache[index(First, Second)]; in get()
128 Cache[Index] = Value; in set()
142 std::vector<ValueType> Cache; variable
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dquarantine.h188 Cache.init(); in init()
203 Cache.transfer(C); in drain()
205 if (Cache.getSize() > getMaxSize() && RecycleMutex.tryLock()) in drain()
212 Cache.transfer(C); in drainAndRecycle()
220 Cache.getStats(Str); in getStats()
239 CacheT Cache;
255 const uptr CacheSize = Cache.getSize(); in recycle()
256 const uptr OverheadSize = Cache.getOverheadSize(); in recycle()
265 Cache.mergeBatches(&Tmp); in recycle()
269 while (Cache.getSize() > MinSize) in recycle()
[all …]

123456