Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 76) sorted by relevance

1234

/llvm-project/libc/src/stdlib/
H A Dexit_handler.cpp
H A Dexit_handler.h48 LIBC_INLINE void call_exit_callbacks(ExitCallbackList &callbacks) {
50 while (!callbacks.empty()) {
51 AtExitUnit unit = callbacks.back();
52 callbacks.pop_back();
57 ExitCallbackList::destroy(&callbacks);
60 LIBC_INLINE int add_atexit_unit(ExitCallbackList &callbacks,
63 if (callbacks.push_back(unit))
/llvm-project/lldb/unittests/Host/
H A DAlarmTest.cpp30 // If there are any pending callbacks, make sure they run before the Alarm
59 // Acquire the lock to check the callbacks. in TEST()
71 std::vector<bool> callbacks; in TEST()
78 callbacks.emplace_back(false); in TEST()
80 handles.push_back(alarm.Create([&callbacks, &m, i]() { in TEST()
82 callbacks[i] = true; in TEST()
89 // Acquire the lock to check the callbacks. in TEST()
93 for (bool callback : callbacks) in TEST()
101 std::vector<bool> callbacks; in TEST()
107 callbacks in TEST()
68 std::vector<bool> callbacks; TEST() local
95 std::vector<bool> callbacks; TEST() local
[all...]
/llvm-project/openmp/libompd/src/
H A Domp-debug.cpp54 callbacks = table; in ompd_initialize()
55 TValue::callbacks = table; in ompd_initialize()
83 ret = callbacks->alloc_memory(sizeof(ompd_address_space_handle_t), in ompd_process_initialize()
111 if (!callbacks) { in ompd_get_omp_version()
133 ret = callbacks->alloc_memory(10, /* max digit can be store on int*/ in ompd_get_omp_version_string()
157 ompd_rc_t ret = callbacks->free_memory((void *)(addr_handle)); in ompd_rel_address_space_handle()
192 if (!callbacks) { in ompd_get_thread_in_parallel()
216 ret = callbacks->alloc_memory(sizeof(ompd_thread_handle_t), in ompd_get_thread_in_parallel()
232 ompd_rc_t ret = callbacks->free_memory((void *)(thread_handle)); in ompd_rel_thread_handle()
271 if (!callbacks) { in ompd_get_curr_parallel_handle()
[all …]
H A DTargetValue.cpp20 const ompd_callbacks_t *TValue::callbacks = NULL; member in TValue
63 ret = TValue::callbacks->symbol_addr_lookup(context, NULL, ss.str().c_str(), in getSize()
74 ret = TValue::callbacks->read_memory( in getSize()
79 ret = TValue::callbacks->device_to_host( in getSize()
95 ret = TValue::callbacks->symbol_addr_lookup(context, NULL, ss.str().c_str(), in getBitfieldMask()
105 ret = TValue::callbacks->read_memory( in getBitfieldMask()
110 ret = TValue::callbacks->device_to_host(context, &(tmpMask), in getBitfieldMask()
131 ret = TValue::callbacks->symbol_addr_lookup(context, NULL, ss.str().c_str(), in getElementOffset()
141 ret = TValue::callbacks->read_memory( in getElementOffset()
146 ret = TValue::callbacks->device_to_host(context, &(tmpOffset), in getElementOffset()
[all …]
H A Domp-icv.cpp62 void __ompd_init_icvs(const ompd_callbacks_t *table) { callbacks = table; } in __ompd_init_icvs()
104 ompd_rc_t ret = callbacks->alloc_memory( in ompd_enumerate_icvs()
127 if (!callbacks) { in create_empty_string()
130 ret = callbacks->alloc_memory(1, (void **)&empty_str); in create_empty_string()
150 if (!callbacks) { in ompd_get_dynamic()
179 if (!callbacks) { in ompd_get_stacksize()
199 if (!callbacks) { in ompd_get_cancellation()
220 if (!callbacks) { in ompd_get_max_task_priority()
241 if (!callbacks) { in ompd_get_debug()
270 if (!callbacks) { in ompd_get_nthreads_aux()
[all …]
H A Domp-state.cpp17 void __ompd_init_states(const ompd_callbacks_t *table) { callbacks = table; } in __ompd_init_states()
48 ret = callbacks->alloc_memory(strlen(find_next_state_name) + 1, in ompd_enumerate_states()
H A Domp-debug.h53 static const ompd_callbacks_t *callbacks = nullptr; variable
58 ompd_rc_t _rc = callbacks->fn(__VA_ARGS__); \
/llvm-project/mlir/lib/CAPI/IR/
H A DPass.cpp140 MlirExternalPassCallbacks callbacks, void *userData) in initialize()
143 callbacks(callbacks), userData(userData) { in initialize()
144 callbacks.construct(userData);
147 ~ExternalPass() override { callbacks.destruct(userData); } in canScheduleOn()
163 if (callbacks.initialize)
164 return unwrap(callbacks.initialize(wrap(ctx), userData));
175 callbacks.run(wrap(getOperation()), wrap(this), userData); in mlirCreateExternalPass()
179 void *clonedUserData = callbacks.clone(userData); in mlirCreateExternalPass()
182 callbacks, clonedUserDat in mlirCreateExternalPass()
117 ExternalPass(TypeID passID,StringRef name,StringRef argument,StringRef description,std::optional<StringRef> opName,ArrayRef<MlirDialectHandle> dependentDialects,MlirExternalPassCallbacks callbacks,void * userData) ExternalPass() argument
168 MlirExternalPassCallbacks callbacks; global() member in mlir::ExternalPass
178 mlirCreateExternalPass(MlirTypeID passID,MlirStringRef name,MlirStringRef argument,MlirStringRef description,MlirStringRef opName,intptr_t nDependentDialects,MlirDialectHandle * dependentDialects,MlirExternalPassCallbacks callbacks,void * userData) mlirCreateExternalPass() argument
[all...]
/llvm-project/lldb/include/lldb/Target/
H A DThreadPlanShouldStopHere.h69 const ThreadPlanShouldStopHereCallbacks *callbacks,
79 SetShouldStopHereCallbacks(const ThreadPlanShouldStopHereCallbacks *callbacks, in SetShouldStopHereCallbacks() argument
81 if (callbacks) { in SetShouldStopHereCallbacks()
82 m_callbacks = *callbacks; in SetShouldStopHereCallbacks()
H A DThreadPlanStepInRange.h62 ThreadPlanShouldStopHere::ThreadPlanShouldStopHereCallbacks callbacks( in SetCallbacks()
64 SetShouldStopHereCallbacks(&callbacks, nullptr); in SetCallbacks()
/llvm-project/lldb/source/Host/posix/
H A DMainLoopPosix.cpp230 // and therefore the execution of pending callbacks.
275 auto callback_it = signal_it->second.callbacks.insert(
276 signal_it->second.callbacks.end(), callback);
281 info.callbacks.push_back(callback);
303 *this, signo, insert_ret.first->second.callbacks.begin()));
317 it->second.callbacks.erase(callback_it);
318 // Do not remove the signal handler unless all callbacks have been erased.
319 if (!it->second.callbacks.empty())
384 it->second.callbacks.begin(), it->second.callbacks
[all...]
/llvm-project/llvm/test/Instrumentation/HeapProfiler/
H A Dinstrumentation-use-callbacks.ll2 ; -memprof-use-callbacks
5 ; RUN: opt < %s -passes='function(memprof),memprof-module' -memprof-use-callbacks -S | FileCheck %s…
6 ; RUN: opt < %s -passes='function(memprof),memprof-module' -memprof-use-callbacks -memprof-memory-a…
7 ; RUN: opt < %s -passes='function(memprof),memprof-module' -memprof-use-callbacks=false -S | FileCh…
/llvm-project/lldb/source/Host/common/
H A DAlarm.cpp157 llvm::SmallVector<Callback, 1> callbacks; in AlarmThread() local
174 callbacks.emplace_back(std::move(it->callback)); in AlarmThread()
193 callbacks.emplace_back(std::move(entry.callback)); in AlarmThread()
209 for (Callback &callback : callbacks) in AlarmThread()
/llvm-project/polly/lib/External/isl/interface/
H A Dpython.cc340 const set<FunctionDecl *> &callbacks = clazz.persistent_callbacks; in print_persistent_callback_failure_check() local
343 for (in = callbacks.begin(); in != callbacks.end(); ++in) { in print_persistent_callback_failure_check()
1043 const set<FunctionDecl *> &callbacks = clazz.persistent_callbacks; in print_copy_callbacks() local
1050 for (in = callbacks.begin(); in != callbacks.end(); ++in) { in print_copy_callbacks()
1075 const set<FunctionDecl *> &callbacks = clazz.persistent_callbacks; in print_method_types() local
1081 for (in = callbacks.begin(); in != callbacks.end(); ++in) in print_method_types()
1120 const set<FunctionDecl *> &callbacks = clazz.persistent_callbacks; in print() local
1152 for (const auto &callback : callbacks) in print()
/llvm-project/libc/utils/gpu/server/
H A Drpc_server.cpp180 handle_server_impl(rpc::Server & server,const std::unordered_map<uint16_t,rpc_opcode_callback_ty> & callbacks,const std::unordered_map<uint16_t,void * > & callback_data,uint32_t & index) handle_server_impl() argument
406 std::unordered_map<uint16_t, rpc_opcode_callback_ty> callbacks; global() member
/llvm-project/clang/docs/
H A DDataFlowSanitizer.rst204 * ``-dfsan-event-callbacks`` -- An experimental feature that inserts callbacks for
205 certain data events. Currently callbacks are only inserted for loads, stores,
217 * ``-dfsan-conditional-callbacks`` -- An experimental feature that inserts
218 callbacks for control flow conditional expressions.
236 * ``-dfsan-reaches-function-callbacks`` -- An experimental feature that inserts
237 callbacks for data entering a function.
264 requires more than this number of origin stores, use callbacks instead of
265 inline checks (-1 means never use callbacks). Its default value is 3500.
/llvm-project/lldb/source/Target/
H A DThreadPlanShouldStopHere.cpp30 ThreadPlan *owner, const ThreadPlanShouldStopHereCallbacks *callbacks, in ThreadPlanShouldStopHere() argument
34 SetShouldStopHereCallbacks(callbacks, baton); in ThreadPlanShouldStopHere()
/llvm-project/llvm/lib/Support/
H A DSignals.cpp93 static std::array<CallbackAndCookie, MaxSignalHandlerCallbacks> callbacks; in CallBacksToRun() local
94 return callbacks; in CallBacksToRun()
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_mac.cpp249 ThreadEventCallbacks callbacks = { in InitializePlatform() local
253 InstallPthreadIntrospectionHook(callbacks); in InitializePlatform()
/llvm-project/lldb/test/Shell/ScriptInterpreter/Python/
H A Dsb_address_exception.test5 # CHECK: RuntimeError: This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.
/llvm-project/llvm/test/Instrumentation/DataFlowSanitizer/
H A Dreaches_function.ll1 ; RUN: opt < %s -passes=dfsan -dfsan-reaches-function-callbacks=1 -S | FileCheck %s
H A Dcustom_fun_callback_attributes.ll23 ;; Call a custom function with two callbacks. Check their annotations.
/llvm-project/llvm/test/Instrumentation/AddressSanitizer/
H A Dasan-optimize-callbacks.ll1 ; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-optimize-callbacks -S | FileCheck %s --check-prefixes=LOAD,STORE
2 ; RUN: opt < %s -passes=asan -asan-instrumentation-with-call-threshold=0 -asan-optimize-callbacks --asan-kernel -S | FileCheck %s --check-prefixes=LOAD-KERNEL,STORE-KERNEL
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.h74 void InstallPthreadIntrospectionHook(const ThreadEventCallbacks &callbacks);

1234