Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 133) sorted by relevance

123456

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp189 cb->lt->ctx, m, wlock, cb->lt->nlocked); in MutexBeforeLock()
196 cb->lt->ctx); in MutexBeforeLock()
204 m->id = allocateId(cb); in MutexBeforeLock()
209 tm->stk = cb->Unwind(); in MutexBeforeLock()
212 cb->lt->ctx); in MutexBeforeLock()
259 cb->lt->ctx); in MutexBeforeLock()
269 cb->lt->ctx, m, wlock, trylock, cb->lt->nlocked); in MutexAfterLock()
292 m->id = allocateId(cb); in MutexAfterLock()
301 cb->lt->ctx, m, wlock, cb->lt->nlocked); in MutexBeforeUnlock()
325 cb->lt->ctx, m); in MutexDestroy()
[all …]
H A Dsanitizer_deadlock_detector1.cpp94 m->stk = cb->Unwind(); in MutexInit()
105 DDLogicalThread *lt = cb->lt; in MutexBeforeLock()
114 dd.addEdges(&lt->dd, m->id, cb->Unwind(), cb->UniqueTid()); in MutexBeforeLock()
115 ReportDeadlock(cb, m); in MutexBeforeLock()
120 DDLogicalThread *lt = cb->lt; in ReportDeadlock()
153 DDLogicalThread *lt = cb->lt; in MutexAfterLock()
156 stk = cb->Unwind(); in MutexAfterLock()
168 dd.addEdges(&lt->dd, m->id, stk ? stk : cb->Unwind(), cb->UniqueTid()); in MutexAfterLock()
187 if (!cb->lt->report_pending) in GetReport()
189 cb->lt->report_pending = false; in GetReport()
[all …]
H A Dsanitizer_quarantine.h105 c->Enqueue(cb, ptr, size); in Put()
108 cb.Recycle(ptr); in Put()
112 Drain(c, cb); in Put()
115 void NOINLINE Drain(Cache *c, Callback cb) { in Drain() argument
121 Recycle(atomic_load_relaxed(&min_size_), cb); in Drain()
130 Recycle(0, cb); in DrainAndRecycle()
152 void NOINLINE Recycle(uptr min_size, Callback cb) in Recycle() argument
181 DoRecycle(&tmp, cb); in Recycle()
184 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle() argument
193 cb.Recycle((Node*)b->batch[i]); in DoRecycle()
[all …]
H A Dsanitizer_deadlock_detector_interface.h83 virtual void MutexInit(DDCallback *cb, DDMutex *m) {} in MutexInit()
84 virtual void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) {} in MutexBeforeLock()
85 virtual void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, in MutexAfterLock()
87 virtual void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) {} in MutexBeforeUnlock()
88 virtual void MutexDestroy(DDCallback *cb, DDMutex *m) {} in MutexDestroy()
90 virtual DDReport *GetReport(DDCallback *cb) { return nullptr; } in GetReport()
H A Dsanitizer_procmaps_common.cpp148 void GetMemoryProfile(fill_profile_f cb, uptr *stats) { in GetMemoryProfile() argument
154 ParseUnixMemoryProfile(cb, stats, smaps, smaps_len); in GetMemoryProfile()
158 void ParseUnixMemoryProfile(fill_profile_f cb, uptr *stats, char *smaps, in ParseUnixMemoryProfile() argument
182 cb(start, rss, file, stats); in ParseUnixMemoryProfile()
/llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/impl/
H A Dmsgpack.h241 inner(C &cb) : cb(cb) {} in foronly_string()
242 C &cb; in foronly_string() member
250 inner(C &cb) : cb(cb) {} in foronly_unsigned()
251 C &cb; in foronly_unsigned() member
252 void handle_unsigned(uint64_t x) { cb(x); } in foronly_unsigned()
259 inner(C &cb) : cb(cb) {} in foreach_array()
260 C &cb; in foreach_array() member
261 void handle_array_elements(byte_range element) { cb(element); } in foreach_array()
268 inner(C &cb) : cb(cb) {} in foreach_map()
269 C &cb; in foreach_map() member
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.cpp114 Callback cb(thr); in MutexBeforeLock() local
118 ctx->dd->MutexInit(&cb, &h->dd); in MutexBeforeLock()
119 ctx->dd->MutexBeforeLock(&cb, &h->dd, writelock); in MutexBeforeLock()
121 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexBeforeLock()
127 Callback cb(thr); in MutexAfterLock() local
131 ctx->dd->MutexInit(&cb, &h->dd); in MutexAfterLock()
134 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexAfterLock()
140 Callback cb(thr); in MutexBeforeUnlock() local
145 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexBeforeUnlock()
151 Callback cb(thr); in MutexDestroy() local
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_mutex.cpp45 Callback cb(thr, pc); in DDMutexInit() local
118 Callback cb(thr, pc); in MutexDestroy() local
146 Callback cb(thr, pc); in MutexPreLock() local
200 Callback cb(thr, pc); in MutexPostLock() local
211 Callback cb(thr, pc); in MutexPostLock() local
249 Callback cb(thr, pc); in MutexUnlock() local
260 Callback cb(thr, pc); in MutexUnlock() local
270 Callback cb(thr, pc); in MutexPreReadLock() local
319 Callback cb(thr, pc); in MutexPostReadLock() local
360 Callback cb(thr, pc); in MutexReadUnlock() local
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_rtl_mutex.cpp43 Callback cb(thr, pc); in DDMutexInit() local
98 Callback cb(thr, pc); in MutexDestroy() local
152 Callback cb(thr, pc); in MutexPreLock() local
197 Callback cb(thr, pc); in MutexPostLock() local
207 Callback cb(thr, pc); in MutexPostLock() local
241 Callback cb(thr, pc); in MutexUnlock() local
249 Callback cb(thr, pc); in MutexUnlock() local
265 Callback cb(thr, pc); in MutexPreReadLock() local
305 Callback cb(thr, pc); in MutexPostReadLock() local
338 Callback cb(thr, pc); in MutexReadUnlock() local
[all …]
H A Dtsan_clock.cpp85 static atomic_uint32_t *ref_ptr(ClockBlock *cb) { in ref_ptr() argument
86 return reinterpret_cast<atomic_uint32_t *>(&cb->table[ClockBlock::kRefIdx]); in ref_ptr()
91 ClockBlock *cb = ctx->clock_alloc.Map(idx); in UnrefClockBlock() local
92 atomic_uint32_t *ref = ref_ptr(cb); in UnrefClockBlock()
103 ctx->clock_alloc.Free(c, cb->table[ClockBlock::kBlockIdx - i]); in UnrefClockBlock()
466 ClockBlock *cb = ctx->clock_alloc.Map(idx); in Resize() local
467 internal_memset(cb, 0, sizeof(*cb)); in Resize()
550 ClockBlock *cb = ctx->clock_alloc.Map(idx); in elem() local
551 return cb->clock[tid]; in elem()
609 ClockBlock *cb = ctx->clock_alloc.Map(idx); in Next() local
[all …]
/llvm-project-15.0.7/flang/test/Semantics/
H A Dmodfile21.f906 common /cb/ x(2:10) /cb2/a,b,c
7 common /cb/ y,z
12 bind(C, name="CB") /cb/
13 common /b/ cb
H A Dcritical02.f90102 integer, allocatable, codimension[:] :: cb
103 cb = ca
110 integer, allocatable, codimension[:] :: ca, cb local
113 call move_alloc(cb, ca)
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_quarantine_test.cpp35 static QuarantineCallback cb; variable
39 cb.Deallocate(batch); in DeallocateCache()
87 cache.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
105 from.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
107 cache.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
130 from.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
131 cache.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
157 from.Enqueue(cb, kFakePtr, kBlockSize); in TEST()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A D2007-09-10-RecursiveTypeResolution.cpp74 RTRT::registerTerminationCallback (CallbackBase_1Data < MantaInterface * >*cb) in registerTerminationCallback() argument
76 return cb; in registerTerminationCallback()
84 callback_t *cb = static_cast < callback_t * >(callback); in unregisterCallback() local
85 find (parallelPreRenderCallbacks.end (), cb); in unregisterCallback()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.access/
H A Drend.pass.cpp321 char cb, ce; member
333 char cb, ce; member
339 return bidirectional_iterator<const char*>(&v.cb); in begin()
351 char cb, ce; member
367 char cb, ce; member
373 return bidirectional_iterator<const char*>(&v.cb); in begin()
451 assert(base(std::ranges::crend(a).base()) == &a.cb); in testBeginEnd()
452 assert(base(std::ranges::rend(aa).base()) == &aa.cb); in testBeginEnd()
458 assert(base(std::ranges::crend(b).base()) == &b.cb); in testBeginEnd()
465 assert(base(std::ranges::crend(c).base()) == &c.cb); in testBeginEnd()
[all …]
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.iterators/
H A Dcrbegin.pass.cpp23 typename S::const_reverse_iterator cb = s.crbegin(); in test() local
26 assert(*cb == s.back()); in test()
28 assert(cb == s.rbegin()); in test()
H A Dcbegin.pass.cpp23 typename S::const_iterator cb = s.cbegin(); in test() local
26 assert(*cb == s[0]); in test()
28 assert(cb == s.begin()); in test()
H A Dbegin.pass.cpp26 typename S::const_iterator cb = cs.begin(); in test() local
31 assert(b == cb); in test()
H A Drbegin.pass.cpp26 typename S::const_reverse_iterator cb = cs.rbegin(); in test() local
31 assert(b == cb); in test()
/llvm-project-15.0.7/clang/test/CXX/over/over.built/
H A Dp26.cpp14 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) { in foo() argument
15 return cond? ca : cb; in foo()
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Ddeath-callback.cpp14 void cb(void) { in cb() function
24 __msan_set_death_callback(cb); in main()
/llvm-project-15.0.7/flang/include/flang/Lower/Support/
H A DUtils.h34 inline llvm::StringRef toStringRef(const Fortran::parser::CharBlock &cb) { in toStringRef() argument
35 return {cb.begin(), cb.size()}; in toStringRef()
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Dhelpers.c20 void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens)) { in llvm_tokenize_stdin()
37 cb(tokbuf, c); in llvm_tokenize_stdin()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_noinst_test.cpp235 static void TestLoadStoreCallbacks(CB cb[2][5]) { in TestLoadStoreCallbacks()
249 CB call = cb[is_write][size_log]; in TestLoadStoreCallbacks()
267 CB cb[2][5] = {{ in TEST() local
281 TestLoadStoreCallbacks(cb); in TEST()
312 CB cb[2][5] = {{ \
326 TestLoadStoreCallbacks(cb); \
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dattr-annotate.cpp61 static constexpr T cb = V; member
69 [[clang::annotate("qdwqwd", cf, cb)]] void t() {} in t()
70 [[clang::annotate("qdwqwd", f, cb)]] void t1() {} in t1()

123456