Home
last modified time | relevance | path

Searched refs:atomic_int (Results 1 – 25 of 59) sorted by relevance

123

/external/llvm-project/clang/test/SemaOpenCL/
Datomic-init.cl3 global atomic_int a1 = 0;
7atomic_int a2 = 0; // expected-error {{atomic variable can be initialized to a variable only in gl…
8 …private atomic_int a3 = 0; // expected-error {{atomic variable can be initialized to a variable on…
9 local atomic_int a4 = 0; // expected-error {{'__local' variable cannot have an initializer}}
10 …global atomic_int a5 = 0; // expected-error {{function scope variable cannot be declared in global…
11 static global atomic_int a6 = 0;
Datomic-ops.cl37 atomic_int gn;
38 void f(atomic_int *i, const atomic_int *ci,
42 global atomic_int *i_g, local atomic_int *i_l, private atomic_int *i_p,
43 constant atomic_int *i_c) {
45 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _…
52 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _…
56 … operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__const…
62 … operation must be a pointer to non-constant _Atomic type ('__constant atomic_int *' (aka '__const…
94 …bool cmpexch_10 = __opencl_atomic_compare_exchange_strong((global atomic_int *)0x308, (constant in…
96 …peration must be a pointer to non-const _Atomic type ('const __generic atomic_int *' (aka 'const _…
[all …]
Dtypes.cl6 typedef atomic_int atomic_flag;
/external/llvm-project/clang/test/Parser/
Datomic.c4 typedef _Atomic(int) atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} typedef
5 typedef _Atomic int atomic_int; // ext-warning {{'_Atomic' is a C11 extension}} typedef
6 typedef _Atomic _Atomic _Atomic(int) atomic_int; // expected-warning {{duplicate '_Atomic' declarat… typedef
11 typedef const atomic_int const_atomic_int;
Dopencl-atomics-cl20.cl17 atomic_int i;
33 // expected-error@-16 {{use of undeclared identifier 'atomic_int'}}
64 void foo(atomic_int * ptr) {}
66 atomic_int i;
69 …i++; // expected-error {{invalid argument type '__private atomic_int' (aka '__private _Atomic(int)…
71 …i += 1; // expected-error {{invalid operands to binary expression ('__private atomic_int' (aka '__…
72 …operands to binary expression ('__private atomic_int' (aka '__private _Atomic(int)') and '__privat…
/external/clang/test/Parser/
Datomic.c3 typedef _Atomic(int) atomic_int; typedef
4 typedef _Atomic int atomic_int; typedef
5 typedef _Atomic _Atomic _Atomic(int) atomic_int; // expected-warning {{duplicate '_Atomic' declarat… typedef
9 typedef const atomic_int const_atomic_int;
Dopencl-atomics-cl20.cl16 atomic_int i;
32 // expected-error@-16 {{use of undeclared identifier 'atomic_int'}}
61 void foo(atomic_int * ptr) {}
63 atomic_int i;
66 …i++; // expected-error {{invalid argument type 'atomic_int' (aka '_Atomic(int)') to unary expressi…
68 …i += 1; // expected-error {{invalid operands to binary expression ('atomic_int' (aka '_Atomic(int)…
69 …ted-error {{invalid operands to binary expression ('atomic_int' (aka '_Atomic(int)') and 'atomic_i…
/external/llvm/unittests/Support/
DThreadPool.cpp91 std::atomic_int checked_in{0}; in TEST_F()
106 static void TestFunc(std::atomic_int &checked_in, int i) { checked_in += i; } in TestFunc()
111 std::atomic_int checked_in{0}; in TEST_F()
124 std::atomic_int i{0}; in TEST_F()
139 std::atomic_int i{0}; in TEST_F()
155 std::atomic_int checked_in{0}; in TEST_F()
/external/pthreadpool/test/
Dpthreadpool.cc226 static void Increment1D(std::atomic_int* processed_counters, size_t i) { in Increment1D()
231 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST()
250 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST()
273 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST()
295 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST()
320 static void IncrementSame1D(std::atomic_int* num_processed_items, size_t i) { in IncrementSame1D()
325 std::atomic_int num_processed_items = ATOMIC_VAR_INIT(0); in TEST()
343 static void WorkImbalance1D(std::atomic_int* num_processed_items, size_t i) { in WorkImbalance1D()
354 std::atomic_int num_processed_items = ATOMIC_VAR_INIT(0); in TEST()
529 static void Increment1DWithUArch(std::atomic_int* processed_counters, uint32_t, size_t i) { in Increment1DWithUArch()
[all …]
/external/llvm-project/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dnotify_one.pass.cpp51 std::atomic_int test1(0);
52 std::atomic_int test2(0);
53 std::atomic_int ready(2);
54 std::atomic_int which(0);
/external/llvm-project/llvm/unittests/Support/
DThreadPool.cpp91 std::atomic_int checked_in{0}; in TEST_F()
106 static void TestFunc(std::atomic_int &checked_in, int i) { checked_in += i; } in TestFunc()
111 std::atomic_int checked_in{0}; in TEST_F()
124 std::atomic_int i{0}; in TEST_F()
139 std::atomic_int i{0}; in TEST_F()
155 std::atomic_int checked_in{0}; in TEST_F()
/external/llvm-project/clang/test/CodeGenOpenCL/
Datomic-ops.cl31 atomic_int j;
33 void fi1(atomic_int *i) {
48 void fi2(atomic_int *i) {
54 void test_addr(global atomic_int *ig, private atomic_int *ip, local atomic_int *il) {
66 void fi3(atomic_int *i, atomic_uint *ui) {
84 bool fi4(atomic_int *i) {
95 void fi5(atomic_int *i, int scope) {
118 void fi6(atomic_int *i, int order, int scope) {
200 void failureOrder(atomic_int *ptr, int *ptr2) {
209 void generalFailureOrder(atomic_int *ptr, int *ptr2, int success, int fail) {
[all …]
Datomic-ops-libcall.cl21 void f(atomic_int *i, global atomic_int *gi, local atomic_int *li, private atomic_int *pi, atomic_u…
/external/tensorflow/tensorflow/core/framework/
Dresource_mgr_test.cc146 std::atomic<int> atomic_int(0); in TEST() local
150 threads.Schedule([&rm, &atomic_int] { in TEST()
153 "container", "resource-name", &r, [&atomic_int](Resource** ret) { in TEST()
156 atomic_int += 1; in TEST()
165 EXPECT_EQ(1, atomic_int); in TEST()
/external/clang/test/CodeGen/
Datomic-ops.c35 int fi1c(atomic_int *i) { in fi1c()
60 void fi2c(atomic_int *i) { in fi2c()
102 int fi3e(atomic_int *i) { in fi3e()
151 _Bool fi4c(atomic_int *i) { in fi4c()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dnotify_one.pass.cpp28 std::atomic_int test1(0);
29 std::atomic_int test2(0);
/external/webrtc/rtc_base/task_utils/
Drepeating_task_unittest.cc87 std::atomic_int counter(0); in TEST()
114 std::atomic_int counter(0); in TEST()
128 std::atomic_int counter(0); in TEST()
170 std::atomic_int counter(0); in TEST()
/external/llvm-project/clang/test/CodeGen/
Datomic-ops.c35 int fi1c(atomic_int *i) { in fi1c()
60 void fi2c(atomic_int *i) { in fi2c()
102 int fi3e(atomic_int *i) { in fi3e()
151 _Bool fi4c(atomic_int *i) { in fi4c()
/external/llvm-project/lldb/test/API/macosx/queues/
Dmain.c7 atomic_int finished_enqueueing_work = 0;
8 atomic_int thread_count = 0;
/external/webrtc/test/time_controller/
Dsimulated_time_controller_unittest.cc44 std::atomic_int counter(0); in TEST()
64 std::atomic_int counter(0); in TEST()
Dexternal_time_controller_unittest.cc94 std::atomic_int counter(0); in TEST()
114 std::atomic_int counter(0); in TEST()
/external/libchrome/base/
Datomic_sequence_num.h26 std::atomic_int seq_{0};
Datomic_ref_count.h62 std::atomic_int ref_count_;
/external/pdfium/third_party/base/allocator/partition_allocator/
Dspin_lock.h45 std::atomic_int lock_{0};
/external/libchrome/base/memory/
Dref_counted.cc13 std::atomic_int g_cross_thread_ref_count_access_allow_count(0);

123