Lines Matching refs:__host__

43 __host__ void hh() {} // expected-note {{previous definition is here}}  in hh()
47 __host__ HostReturnTy dh() { return HostReturnTy(); } in dh()
51 __host__ __device__ int hdh() { return 0; } // expected-note {{previous declaration is here}} in hdh()
52 __host__ int hdh() { return 0; } in hdh()
55 __host__ int hhd() { return 0; } // expected-note {{previous declaration is here}} in hhd()
56 __host__ __device__ int hhd() { return 0; } in hhd()
59 __host__ __device__ int hdd() { return 0; } // expected-note {{previous declaration is here}} in hdd()
64 __host__ __device__ int dhd() { return 0; } in dhd()
68 extern "C" __host__ int chh() { return 0; } // expected-note {{previous definition is here}} in chh()
73 extern "C" __host__ HostReturnTy cdh() { return HostReturnTy(); } in cdh()
76 extern "C" __host__ __device__ int chhd1() { return 0; } // expected-note {{previous declaration is… in chhd1()
77 extern "C" __host__ int chhd1() { return 0; } in chhd1()
80 extern "C" __host__ int chhd2() { return 0; } // expected-note {{previous declaration is here}} in chhd2()
81 extern "C" __host__ __device__ int chhd2() { return 0; } in chhd2()
90 __host__ HostReturnTy h() { return HostReturnTy(); } in h()
107 extern "C" __host__ HostReturnTy ch() { return HostReturnTy(); } in ch()
113 __host__ void hostf() { in hostf()
176 __host__ __device__ void hostdevicef() { in hostdevicef()
234 __host__ ~d_h() {} // expected-error {{destructor cannot be redeclared}} in ~d_h()
239 __host__ __device__ ~d_hd() {} in ~d_hd()
245 __host__ void operator delete(void *ptr); // expected-error {{class member cannot be redeclared}}
251 __host__ void operator delete(void *ptr);
256 __device__ __host__ void operator delete(void *ptr);
260 __host__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}} in operator delete()
261 __host__ __device__ void operator delete(void *ptr) {} in operator delete()
266__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
267 __host__ void operator delete(void *ptr) {} in operator delete()
273 __host__ __device__ void operator delete(void *ptr) {} in operator delete()
278__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
316 __host__ __device__ void test_host_device_calls_template(void) { in test_host_device_calls_template()
329 __host__ void test_host_calls_template_fn() { in test_host_calls_template_fn()
346 __host__ __device__ HostDeviceReturnTy template_vs_hd_function(float arg) { in template_vs_hd_function()
350 __host__ __device__ void test_host_device_calls_hd_template() { in test_host_device_calls_hd_template()
361 __host__ void test_host_calls_hd_template() { in test_host_calls_hd_template()
382 __host__ HostReturnTy host_only_function(int arg) { return HostReturnTy(); } in host_only_function()
383 __host__ HostReturnTy2 host_only_function(float arg) { return HostReturnTy2(); } in host_only_function()
389 __host__ __device__ void test_host_device_single_side_overloading() { in test_host_device_single_side_overloading()
406 inline __host__ __device__ void test_host_device_wrong_side_overloading_inline_no_diag() { in test_host_device_wrong_side_overloading_inline_no_diag()
415 inline __host__ __device__ void test_host_device_wrong_side_overloading_inline_diag() { in test_host_device_wrong_side_overloading_inline_diag()
430 __host__ __device__ void test_host_device_wrong_side_overloading_inline_diag_caller() { in test_host_device_wrong_side_overloading_inline_diag_caller()
436 template <typename T> __host__ T template_overload(const T &a) { return a; }; in template_overload()
439 __host__ void test_host_template_overload() { in test_host_template_overload()
454 __host__ __device__ int constexpr_overload(const T &x, const T &y) { in constexpr_overload()
512 __host__ __device__ HostDeviceReturnTy callee(int x);
518 inline __host__ __device__ ExpectedRetTy explicit_hd_caller() { in explicit_hd_caller()
590 __host__ __device__ a(short);
612 __host__ __device__ void ag(a<ae>) { in ag()
627 __host__ __device__ void ag(a<ae>) { in ag()
634 __host__ __device__ void f() { (void)ag<b::c>; } in f()
651 __host__ __device__ void ag(a<ae>, float) { in ag()
656 __host__ __device__ void ag(a<ae>, double) { in ag()
672 __host__ __device__ void ag(a<ae>, float) { in ag()
678 __host__ __device__ void ag(a<ae>, double) { in ag()
681 __host__ __device__ void f() { in f()