Home
last modified time | relevance | path

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

12345678

/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dquarantine_test.cpp31 static void deallocateCache(CacheT *Cache) { in deallocateCache() argument
32 while (scudo::QuarantineBatch *Batch = Cache->dequeueBatch()) in deallocateCache()
71 CacheT Cache; in TEST() local
73 Cache.init(); in TEST()
75 Cache.mergeBatches(&ToDeallocate); in TEST()
82 CacheT Cache; in TEST() local
83 Cache.init(); in TEST()
84 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
85 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
89 Cache.mergeBatches(&ToDeallocate); in TEST()
[all …]
H A Dprimary_test.cpp146 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
147 Cache.init(nullptr, Allocator.get()); in SCUDO_TYPED_TEST()
156 void *P = Cache.allocate(ClassId); in SCUDO_TYPED_TEST()
161 Cache.deallocate(ClassId, Pointers[J]); in SCUDO_TYPED_TEST()
163 Cache.destroy(nullptr); in SCUDO_TYPED_TEST()
190 typename Primary::CacheT Cache; in TEST() local
193 Cache.init(&Stats, &Allocator); in TEST()
201 TransferBatch *B = Allocator.popBatch(&Cache, ClassId); in TEST()
214 Allocator.pushBlocks(&Cache, ClassId, Blocks, B->getCount()); in TEST()
215 Cache.deallocate(Primary::SizeClassMap::BatchClassId, B); in TEST()
[all …]
H A Dtsd_test.cpp40 void initCache(CacheT *Cache) { *Cache = {}; } in initCache() argument
105 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
112 EXPECT_EQ(TSD->Cache.Canary, 0U); in testRegistry()
113 memset(&TSD->Cache, 0x42, sizeof(TSD->Cache)); in testRegistry()
144 EXPECT_EQ(TSD->Cache.Canary, 0U); in stressCache()
148 TSD->Cache.Canary = Canary; in stressCache()
151 EXPECT_EQ(TSD->Cache.Canary, Canary); in stressCache()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_quarantine_test.cpp30 typedef QuarantineCache<QuarantineCallback> Cache; typedef
37 static void DeallocateCache(Cache *cache) { in DeallocateCache()
77 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()
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/SelfLoader/lib/
H A DSelfLoader.pm48 my %Cache; # private cache for all SelfLoader's client packages
58 my $SL_code = $Cache{$AUTOLOAD};
64 SelfLoader->_load_stubs($1) unless exists $Cache{"${1}::<DATA"};
65 $SL_code = $Cache{$AUTOLOAD};
82 delete $Cache{$AUTOLOAD};
110 $Cache{"${currpack}::<DATA"} = 1; # indicate package is cached
144 $Cache{"${currpack}::<DATA"} = 1; # indicate package is cached
176 if exists $Cache{$fullname};
177 $Cache{$fullname} = join('',
180 #$Cache{
[all...]
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp38 std::map<const Module *, global_val_annot_t> Cache; member
50 AC.Cache.erase(Mod); in clearAnnotationCache()
105 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD()
106 AC.Cache[m][gv] = std::move(tmp); in cacheAnnotationFromMD()
110 AC.Cache[m] = std::move(tmp1); in cacheAnnotationFromMD()
119 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation()
121 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation()
123 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation()
125 retval = AC.Cache[m][gv][prop][0]; in findOneNVVMAnnotation()
134 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp703 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
706 Count = Cache.size(); in AssertSorted()
707 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
718 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
725 if (!Cache.empty()) { in getNonLocalCallDependency()
730 return Cache; in getNonLocalCallDependency()
735 for (auto &Entry : Cache) in getNonLocalCallDependency()
740 llvm::sort(Cache); in getNonLocalCallDependency()
755 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
756 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]
/openbsd-src/gnu/llvm/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()
153 for (uptr i = 0; i < Cache::kSize / 2 && c->pos; i++) { in Drain()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DDebugLoc.cpp72 DenseMap<const MDNode *, MDNode *> &Cache) { in replaceInlinedAtSubprogram() argument
79 if (auto It = Cache.find(Loc); It != Cache.end()) { in replaceInlinedAtSubprogram()
92 *LocToUpdate->getScope(), NewSP, Ctx, Cache); in replaceInlinedAtSubprogram()
95 Cache[LocToUpdate] = UpdatedLoc; in replaceInlinedAtSubprogram()
104 Cache[LocToUpdate] = UpdatedLoc; in replaceInlinedAtSubprogram()
112 DenseMap<const MDNode *, MDNode *> &Cache) { in appendInlinedAt() argument
120 if (auto *Found = Cache[IA]) { in appendInlinedAt()
133 Cache[MD] = Last = DILocation::getDistinct( in appendInlinedAt()
/openbsd-src/gnu/llvm/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; variable
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 …]
H A Dsecondary.h420 Cache.init(ReleaseToOsInterval);
445 Cache.disable(); in disable()
449 Cache.enable(); in enable()
462 bool canCache(uptr Size) { return Cache.canCache(Size); } in canCache()
464 bool setOption(Option O, sptr Value) { return Cache.setOption(O, Value); } in setOption()
466 void releaseToOS() { Cache.releaseToOS(); } in releaseToOS()
468 void disableMemoryTagging() { Cache.disableMemoryTagging(); } in disableMemoryTagging()
470 void unmapTestOnly() { Cache.unmapTestOnly(); } in unmapTestOnly()
473 typename Config::SecondaryCache Cache;
511 if (Alignment < PageSize && Cache.canCache(RoundedSize)) { in allocate()
[all …]
H A Dtsd.h27 typename Allocator::CacheT Cache; member
35 Instance->initCache(&Cache); in init()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp409 static Value *findBaseDefiningValue(Value *I, DefiningValueMapTy &Cache,
421 static Value *findBaseDefiningValueOfVector(Value *I, DefiningValueMapTy &Cache, in findBaseDefiningValueOfVector() argument
426 auto Cached = Cache.find(I); in findBaseDefiningValueOfVector()
427 if (Cached != Cache.end()) in findBaseDefiningValueOfVector()
432 Cache[I] = I; in findBaseDefiningValueOfVector()
441 Cache[I] = CAZ; in findBaseDefiningValueOfVector()
447 Cache[I] = I; in findBaseDefiningValueOfVector()
456 Cache[I] = I; in findBaseDefiningValueOfVector()
467 Cache[I] = I; in findBaseDefiningValueOfVector()
476 findBaseDefiningValue(GEP->getPointerOperand(), Cache, KnownBases); in findBaseDefiningValueOfVector()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/
H A DSymbolCache.h46 mutable std::vector<std::unique_ptr<NativeRawSymbol>> Cache; variable
93 SymIndexId Id = Cache.size(); in createSymbolPlaceholder()
94 Cache.push_back(nullptr); in createSymbolPlaceholder()
128 SymIndexId Id = Cache.size(); in createSymbol()
137 Cache.push_back(std::move(Result)); in createSymbol()
160 SymIndexId SymId = Cache.size(); in getOrCreateFieldListMember()
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cpp26 typedef Alloc::Cache Cache; in TEST() typedef
31 Cache cache; in TEST()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_quarantine.h78 typedef QuarantineCache<Callback> Cache; typedef
102 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { in Put()
115 void NOINLINE Drain(Cache *c, Callback cb) { in Drain()
124 void NOINLINE DrainAndRecycle(Cache *c, Callback cb) { in DrainAndRecycle()
149 Cache cache_;
154 Cache tmp; in Recycle()
184 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle()
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DFileSystemStatCache.cpp36 FileSystemStatCache *Cache, in get() argument
42 if (Cache) in get()
43 RetCode = Cache->getStat(Path, Status, isFile, F, FS); in get()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp68 Cache(*this, getDbiStreamPtr(*Pdb)), AddrToModuleIndex(IMapAllocator) {} in NativeSession()
217 return Cache.getSymbolById(SymbolId); in getSymbolById()
270 return Cache.findSymbolBySectOffset(Sect, Offset, Type); in findSymbolBySectOffset()
282 return Cache.findLineNumbersByVA(Address, Length); in findLineNumbersByAddress()
287 return Cache.findLineNumbersByVA(getLoadAddress() + RVA, Length); in findLineNumbersByRVA()
294 return Cache.findLineNumbersByVA(VA, Length); in findLineNumbersBySectOffset()
334 return Cache.getSourceFileById(FileId); in getSourceFileById()
372 ExeSymbol = Cache.createSymbol<NativeExeSymbol>(); in initializeExeSymbol()
378 return Cache.getNativeSymbolById<NativeExeSymbol>(ExeSymbol); in getNativeGlobalScope()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/
H A DJITLink.cpp151 SplitBlockCache *Cache) { in splitBlock() argument
196 if (!Cache) in splitBlock()
197 Cache = &LocalBlockSymbolsCache; in splitBlock()
198 if (*Cache == std::nullopt) { in splitBlock()
199 *Cache = SplitBlockCache::value_type(); in splitBlock()
202 (*Cache)->push_back(Sym); in splitBlock()
204 llvm::sort(**Cache, [](const Symbol *LHS, const Symbol *RHS) { in splitBlock()
208 auto &BlockSymbols = **Cache; in splitBlock()
/openbsd-src/gnu/usr.bin/perl/lib/
H A DBenchmark.pm513 %_Usage, %Cache, $Do_Cache);
545 delete $Cache{"$_[0]c"}; delete $Cache{"$_[0]s"};
554 %Cache = ();
743 if ($Do_Cache && exists $Cache{$cache_key} ) {
744 $wn = $Cache{$cache_key};
750 $Cache{$cache_key} = $wn;
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSimplifyCFGOptions.h65 SimplifyCFGOptions &setAssumptionCache(AssumptionCache *Cache) { in setAssumptionCache()
66 AC = Cache; in setAssumptionCache()
/openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCRuntimeV2.h212 typedef std::map<uint8_t, ObjCLanguageRuntime::ClassDescriptorSP> Cache; typedef
213 typedef Cache::iterator CacheIterator;
214 Cache m_cache;
253 typedef std::map<uint8_t, ObjCLanguageRuntime::ClassDescriptorSP> Cache; typedef
254 typedef Cache::iterator CacheIterator;
255 Cache m_ext_cache;
/openbsd-src/gnu/usr.bin/perl/dist/Exporter/lib/
H A DExporter.pm10 our %Cache;
41 my $export_cache = ($Cache{$pkg} ||= {});
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDebugLoc.h77 DenseMap<const MDNode *, MDNode *> &Cache);
94 DenseMap<const MDNode *, MDNode *> &Cache);
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h83 DenseMap<const Value *, std::pair<WeakVH, WeakTrackingVH>> &Cache) { in GetUnderlyingObjCPtrCached() argument
85 auto InCache = Cache.lookup(V); in GetUnderlyingObjCPtrCached()
90 Cache[V] = in GetUnderlyingObjCPtrCached()

12345678