Home
last modified time | relevance | path

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

1234567

/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutcache.c182 ACPI_MEMORY_LIST *Cache; in AcpiOsCreateCache() local
195 Cache = AcpiOsAllocate (sizeof (ACPI_MEMORY_LIST)); in AcpiOsCreateCache()
196 if (!Cache) in AcpiOsCreateCache()
203 memset (Cache, 0, sizeof (ACPI_MEMORY_LIST)); in AcpiOsCreateCache()
204 Cache->ListName = CacheName; in AcpiOsCreateCache()
205 Cache->ObjectSize = ObjectSize; in AcpiOsCreateCache()
206 Cache->MaxDepth = MaxDepth; in AcpiOsCreateCache()
208 *ReturnCache = Cache; in AcpiOsCreateCache()
227 ACPI_MEMORY_LIST *Cache) in AcpiOsPurgeCache() argument
236 if (!Cache) in AcpiOsPurgeCache()
[all …]
H A Duttrack.c215 ACPI_MEMORY_LIST *Cache; in AcpiUtCreateList() local
218 Cache = AcpiOsAllocateZeroed (sizeof (ACPI_MEMORY_LIST)); in AcpiUtCreateList()
219 if (!Cache) in AcpiUtCreateList()
224 Cache->ListName = ListName; in AcpiUtCreateList()
225 Cache->ObjectSize = ObjectSize; in AcpiUtCreateList()
227 *ReturnCache = Cache; in AcpiUtCreateList()
/freebsd/sys/contrib/dev/acpica/compiler/
H A Daslcache.c182 ASL_CACHE_INFO *Cache; in UtLocalCacheCalloc() local
197 Cache = UtLocalCalloc (sizeof (Cache->Next) + CacheSize); in UtLocalCacheCalloc()
201 Cache->Next = AslGbl_StringCacheList->Next; in UtLocalCacheCalloc()
202 AslGbl_StringCacheList->Next = Cache; in UtLocalCacheCalloc()
209 return (Cache->Buffer); in UtLocalCacheCalloc()
217 Cache = UtLocalCalloc (sizeof (Cache->Next) + CacheSize); in UtLocalCacheCalloc()
221 Cache->Next = AslGbl_StringCacheList; in UtLocalCacheCalloc()
222 AslGbl_StringCacheList = Cache; in UtLocalCacheCalloc()
226 AslGbl_StringCacheNext = Cache->Buffer; in UtLocalCacheCalloc()
257 ASL_CACHE_INFO *Cache; in UtParseOpCacheCalloc() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp737 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
740 Count = Cache.size(); in AssertSorted()
741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
752 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
759 if (!Cache.empty()) { in getNonLocalCallDependency()
764 return Cache; in getNonLocalCallDependency()
769 for (auto &Entry : Cache) in getNonLocalCallDependency()
774 llvm::sort(Cache); in getNonLocalCallDependency()
789 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
790 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]
/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp40 std::map<const Module *, global_val_annot_t> Cache; member
52 AC.Cache.erase(Mod); in clearAnnotationCache()
124 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD()
125 AC.Cache[m][gv] = std::move(tmp); in cacheAnnotationFromMD()
129 AC.Cache[m] = std::move(tmp1); in cacheAnnotationFromMD()
138 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation()
140 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation()
142 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation()
144 retval = AC.Cache[m][gv][prop][0]; in findOneNVVMAnnotation()
161 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp261 auto [It, IsNew] = Cache.insert(std::make_pair(S, false)); in WithCachedResult()
265 Cache[S] = Result; in WithCachedResult()
272 TrivialFunctionAnalysisVisitor(CacheTy &Cache) : Cache(Cache) {} in TrivialFunctionAnalysisVisitor() argument
275 auto CacheIt = Cache.find(D); in IsFunctionTrivial()
276 if (CacheIt != Cache.end()) in IsFunctionTrivial()
306 Cache[D] = Result; in IsFunctionTrivial()
498 if (!TrivialFunctionAnalysis::isTrivialImpl(Temp->getDestructor(), Cache)) in VisitCXXBindTemporaryExpr()
552 CacheTy &Cache; member in clang::TrivialFunctionAnalysisVisitor
557 const Decl *D, TrivialFunctionAnalysis::CacheTy &Cache) { in isTrivialImpl() argument
558 TrivialFunctionAnalysisVisitor V(Cache); in isTrivialImpl()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dquarantine.h189 Cache.init(); in init()
198 return Cache.getSize() == 0U; in isEmpty()
211 Cache.transfer(C); in drain()
212 needRecycle = Cache.getSize() > getMaxSize(); in drain()
222 Cache.transfer(C); in drainAndRecycle()
231 Cache.getStats(Str); in getStats()
250 CacheT Cache GUARDED_BY(CacheMutex);
267 const uptr CacheSize = Cache.getSize(); in recycle()
268 const uptr OverheadSize = Cache.getOverheadSize(); in recycle()
277 Cache.mergeBatches(&Tmp); in recycle()
[all …]
H A Dtsd.h34 Instance->initCache(&Cache); in init()
75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; } in getCache()
84 typename Allocator::CacheT Cache GUARDED_BY(Mutex);
H A Dsecondary.h503 Cache.init(ReleaseToOsInterval);
530 Cache.disable(); in disable()
534 Cache.enable(); in enable()
549 bool canCache(uptr Size) { return Cache.canCache(Size); } in canCache()
551 bool setOption(Option O, sptr Value) { return Cache.setOption(O, Value); } in setOption()
553 void releaseToOS() { Cache.releaseToOS(); } in releaseToOS()
555 void disableMemoryTagging() { Cache.disableMemoryTagging(); } in disableMemoryTagging()
557 void unmapTestOnly() { Cache.unmapTestOnly(); } in unmapTestOnly()
562 typename Config::template CacheT<typename Config::CacheConfig> Cache;
599 if (Alignment < PageSize && Cache.canCache(MinNeededSizeForCache)) { in allocate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp341 static Value *findBaseDefiningValue(Value *I, DefiningValueMapTy &Cache,
353 static Value *findBaseDefiningValueOfVector(Value *I, DefiningValueMapTy &Cache, in findBaseDefiningValueOfVector() argument
358 auto Cached = Cache.find(I); in findBaseDefiningValueOfVector()
359 if (Cached != Cache.end()) in findBaseDefiningValueOfVector()
364 Cache[I] = I; in findBaseDefiningValueOfVector()
373 Cache[I] = CAZ; in findBaseDefiningValueOfVector()
379 Cache[I] = I; in findBaseDefiningValueOfVector()
388 Cache[I] = I; in findBaseDefiningValueOfVector()
399 Cache[I] = I; in findBaseDefiningValueOfVector()
408 findBaseDefiningValue(GEP->getPointerOperand(), Cache, KnownBases); in findBaseDefiningValueOfVector()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp564 RelexRewriteCacheRef Cache) { in SyntaxHighlight() argument
570 if (Cache) { in SyntaxHighlight()
571 auto CacheIt = Cache->SyntaxHighlights.find(FID); in SyntaxHighlight()
572 if (CacheIt != Cache->SyntaxHighlights.end()) { in SyntaxHighlight()
587 if (Cache) in SyntaxHighlight()
588 Cache->SyntaxHighlights[FID].push_back({B, E, StartTag, EndTag}); in SyntaxHighlight()
741 RelexRewriteCacheRef Cache) { in HighlightMacros() argument
742 if (Cache) { in HighlightMacros()
743 auto CacheIt = Cache->MacroHighlights.find(FID); in HighlightMacros()
744 if (CacheIt != Cache->MacroHighlights.end()) { in HighlightMacros()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_quarantine.h74 typedef QuarantineCache<Callback> Cache; typedef
96 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { in Put()
110 void NOINLINE Drain(Cache *c, Callback cb) { in Drain()
119 void NOINLINE DrainAndRecycle(Cache *c, Callback cb) { in DrainAndRecycle()
144 Cache cache_;
149 Cache tmp; in Recycle()
179 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle()
/freebsd/tests/sys/fs/fusefs/
H A Dcache.cc53 class Cache: public FuseTest, public WithParamInterface<CacheParam> { class
57 Cache(): m_direct_io(false) {}; in Cache() function in Cache
136 TEST_P(Cache, truncate_by_surprise_invalidates_cache) in TEST_P() argument
198 INSTANTIATE_TEST_SUITE_P(Cache, Cache,
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp69 Cache(*this, getDbiStreamPtr(*Pdb)), AddrToModuleIndex(IMapAllocator) {} in NativeSession()
218 return Cache.getSymbolById(SymbolId); in getSymbolById()
271 return Cache.findSymbolBySectOffset(Sect, Offset, Type); in findSymbolBySectOffset()
283 return Cache.findLineNumbersByVA(Address, Length); in findLineNumbersByAddress()
288 return Cache.findLineNumbersByVA(getLoadAddress() + RVA, Length); in findLineNumbersByRVA()
295 return Cache.findLineNumbersByVA(VA, Length); in findLineNumbersBySectOffset()
335 return Cache.getSourceFileById(FileId); in getSourceFileById()
373 ExeSymbol = Cache.createSymbol<NativeExeSymbol>(); in initializeExeSymbol()
379 return Cache.getNativeSymbolById<NativeExeSymbol>(ExeSymbol); in getNativeGlobalScope()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h234 Cache; variable
240 auto It = Cache.find(Filename); in findEntryByFilename()
241 return It == Cache.end() ? nullptr : It->getValue().first; in findEntryByFilename()
250 auto [It, Inserted] = Cache.insert({Filename, {&Entry, nullptr}}); in insertEntryForFilename()
265 auto It = Cache.find(Filename); in findRealPathByFilename()
266 return It == Cache.end() ? nullptr : It->getValue().second; in findRealPathByFilename()
275 auto [It, Inserted] = Cache.insert({Filename, {nullptr, &RealPath}}); in insertRealPathForFilename()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp431 static Value *aspaceWrapValue(DenseMap<Value *, Value *> &Cache, Function *F, in aspaceWrapValue() argument
433 auto It = Cache.find(ToWrap); in aspaceWrapValue()
434 if (It != Cache.end()) in aspaceWrapValue()
439 Value *WrappedPtr = aspaceWrapValue(Cache, F, Ptr); in aspaceWrapValue()
446 Cache[ToWrap] = NewGEP; in aspaceWrapValue()
458 Cache[ToWrap] = ACast; in aspaceWrapValue()
464 static void aspaceWrapOperand(DenseMap<Value *, Value *> &Cache, Instruction *I, in aspaceWrapOperand() argument
470 Value *NewOp = aspaceWrapValue(Cache, I->getFunction(), OldOp); in aspaceWrapOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUIGroupLP.cpp95 std::optional<SmallVector<SUnit *, 4>> Cache; member in __anon5d856e630111::InstructionRule
108 Cache = SmallVector<SUnit *, 4>(); in InstructionRule()
947 if (Cache->empty()) { in apply()
952 Cache->push_back(&*I); in apply()
954 if (Cache->empty()) in apply()
959 Cache->begin(), Cache->end(), [&SU, &DAG](SUnit *TargetSU) { in apply()
982 if (Cache->empty()) { in apply()
990 Cache->push_back(&*I); in apply()
998 if (Cache->empty()) in apply()
1002 return DAG->IsReachable((*Cache)[0], const_cast<SUnit *>(SU)); in apply()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLink.cpp171 SplitBlockCache *Cache) { in splitBlock() argument
216 if (!Cache) in splitBlock()
217 Cache = &LocalBlockSymbolsCache; in splitBlock()
218 if (*Cache == std::nullopt) { in splitBlock()
219 *Cache = SplitBlockCache::value_type(); in splitBlock()
222 (*Cache)->push_back(Sym); in splitBlock()
224 llvm::sort(**Cache, [](const Symbol *LHS, const Symbol *RHS) { in splitBlock()
228 auto &BlockSymbols = **Cache; in splitBlock()
/freebsd/sys/contrib/device-tree/Bindings/riscv/
H A Dsifive-l2-cache.txt1 SiFive L2 Cache Controller
3 The SiFive Level 2 Cache Controller is used to provide access to fast copies
4 of memory for masters in a Core Complex. The Level 2 Cache Controller also
/freebsd/sys/contrib/dev/acpica/include/
H A Dacpiosxf.h395 ACPI_CACHE_T *Cache);
401 ACPI_CACHE_T *Cache);
407 ACPI_CACHE_T *Cache);
413 ACPI_CACHE_T *Cache,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyCFGOptions.h66 SimplifyCFGOptions &setAssumptionCache(AssumptionCache *Cache) { in setAssumptionCache()
67 AC = Cache; in setAssumptionCache()

1234567