gcc/libgomp/testsuite/libgomp.oacc-c-c++-common
Julian Brown 37d5ad46dd OpenACC host_data support.
gcc/
	* gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
	support.
	* gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
	(is_gimple_omp_oacc): Add support for above.
	* gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
	(omp_notice_variable): Diagnose undefined implicit uses of
	use_device variables in offloaded regions.
	(gimplify_scan_omp_clauses): Add host_data, use_device
	support. Diagnose undefined mapping of use_device variables in
	OpenACC clauses.
	(gimplify_omp_workshare): Add host_data support.
	(gimplify_expr): Likewise.
	* omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
	* omp-low.c (lookup_decl_in_outer_ctx)
	(maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
	host_data regions.
	(scan_sharing_clauses): Support use_device.
	(check_omp_nesting_restrictions): Support host_data.
	(expand_omp_target): Support host_data.
	(lower_omp_target): Skip over outer host_data regions when looking
	up decls. Support use_device.
	(make_gimple_omp_edges): Support host_data.
	* tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
	clause.

	gcc/c/
	* c-parser.c (c_parser_omp_clause_name): Add use_device support.
	(c_parser_oacc_clause_use_device): New function.
	(c_parser_oacc_all_clauses): Add use_device support.
	(OACC_HOST_DATA_CLAUSE_MASK): New macro.
	(c_parser_oacc_host_data): New function.
	(c_parser_omp_construct): Add host_data support.
	* c-tree.h (c_finish_oacc_host_data): Add prototype.
	* c-typeck.c (c_finish_oacc_host_data): New function.
	(c_finish_omp_clauses): Add use_device support.

	gcc/cp/
	* cp-tree.h (finish_oacc_host_data): Add prototype.
	* parser.c (cp_parser_omp_clause_name): Add use_device support.
	(cp_parser_oacc_all_clauses): Add use_device support.
	(OACC_HOST_DATA_CLAUSE_MASK): New macro.
	(cp_parser_oacc_host_data): New function.
	(cp_parser_omp_construct): Add host_data support.
	(cp_parser_pragma): Add host_data support.
	* semantics.c (finish_omp_clauses): Add use_device support.
	(finish_oacc_host_data): New function.

	gcc/c-family/
	* c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
	* c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
	(pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.

	libgomp/
	* oacc-parallel.c (GOACC_host_data): New function.
	* libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
	* testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.


Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
Co-Authored-By: James Norris <James_Norris@mentor.com>

From-SVN: r231118
2015-12-01 15:52:23 +00:00
..
abort-1.c abort might not flush all open streams before process termination 2015-10-26 17:25:04 +01:00
abort-2.c
abort-3.c abort might not flush all open streams before process termination 2015-10-26 17:25:04 +01:00
abort-4.c
abort-5.c
acc-on-device.c openacc.h (enum acc_device_t): Reformat. 2015-10-30 00:13:22 +00:00
acc_on_device-1.c [PR libgomp/65742, PR middle-end/66332] libgomp: Remove plugin for non-shared memory host execution 2015-08-10 18:48:26 +02:00
asyncwait-1.c
atomic_capture-1.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
atomic_capture-2.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
atomic_rw-1.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
atomic_update-1.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
cache-1.c
clauses-1.c
clauses-2.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
collapse-1.c
collapse-2.c collapse-2.c: Sequential loop is sequential. 2015-11-13 16:53:28 +00:00
collapse-3.c Run testsuite/libgomp.oacc-c++/c++.exp at -O2 by default 2015-06-30 15:43:55 +00:00
collapse-4.c
combined-directives-1.c Improve filenames for test cases of OpenACC combined directives 2015-10-29 10:03:40 +01:00
context-1.c
context-2.c
context-3.c
context-4.c
data-1.c
data-2.c
data-3.c
data-already-1.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-2.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-3.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-4.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-5.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-6.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-7.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
data-already-8.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
declare-1.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
declare-2.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
declare-4.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
declare-5.c c-pragma.c (oacc_pragmas): Add entry for declare directive. 2015-11-12 22:20:41 +00:00
default-1.c gimplify.c (oacc_default_clause): New. 2015-11-12 13:51:13 +00:00
deviceptr-1.c
firstprivate-1.c gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
firstprivate-2.c gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
host_data-1.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
host_data-2.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
host_data-3.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
host_data-4.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
host_data-5.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
host_data-6.c OpenACC host_data support. 2015-12-01 15:52:23 +00:00
if-1.c [PR libgomp/65742, PR middle-end/66332] libgomp: Remove plugin for non-shared memory host execution 2015-08-10 18:48:26 +02:00
kernels-1.c
kernels-empty.c
lib-1.c libgomp testsuite: Remove some explicit acc_device_nvidia usage. 2015-10-26 17:24:54 +01:00
lib-2.c libgomp testsuite: Remove some explicit acc_device_nvidia usage. 2015-10-26 17:24:54 +01:00
lib-3.c [libgomp/66518] Resolve XFAIL in libgomp.oacc-c-c++-common/lib-3.c 2015-10-26 17:24:28 +01:00
lib-4.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-5.c
lib-6.c
lib-7.c
lib-8.c libgomp: Additional acc_shutdown bug fixing and testing 2015-10-26 17:24:44 +01:00
lib-9.c libgomp testsuite: Remove some explicit acc_device_nvidia usage. 2015-10-26 17:24:54 +01:00
lib-10.c libgomp testsuite: Remove some explicit acc_device_nvidia usage. 2015-10-26 17:24:54 +01:00
lib-11.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-12.c
lib-13.c
lib-14.c
lib-15.c
lib-16.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-17.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-18.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-19.c
lib-20.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-21.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-22.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-23.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-24.c
lib-25.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-26.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-27.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-28.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-29.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-30.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-31.c
lib-32.c
lib-33.c
lib-34.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-35.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-36.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-37.c
lib-38.c
lib-39.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-40.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-41.c
lib-42.c [PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update_self 2015-10-26 17:24:17 +01:00
lib-43.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-44.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-45.c
lib-46.c
lib-47.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-48.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-49.c
lib-50.c
lib-51.c
lib-52.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-53.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-54.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-55.c
lib-56.c
lib-57.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-58.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-59.c
lib-60.c
lib-61.c
lib-62.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-63.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-64.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-65.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-66.c
lib-67.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-68.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-69.c
lib-70.c
lib-71.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-72.c
lib-73.c
lib-74.c
lib-75.c
lib-76.c
lib-77.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-78.c
lib-79.c
lib-80.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
lib-81.c
lib-82.c
lib-83.c
lib-84.c
lib-85.c
lib-86.c
lib-87.c
lib-88.c
lib-89.c
lib-90.c
lib-91.c
lib-92.c
loop-auto-1.c omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ. 2015-11-13 21:51:32 +00:00
loop-g-1.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
loop-g-2.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
loop-gwv-1.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
loop-red-g-1.c loop-red-g-1.c: New. 2015-11-04 17:01:23 +00:00
loop-red-gwv-1.c loop-red-g-1.c: New. 2015-11-04 17:01:23 +00:00
loop-red-v-1.c loop-red-g-1.c: New. 2015-11-04 17:01:23 +00:00
loop-red-v-2.c gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
loop-red-w-1.c loop-red-g-1.c: New. 2015-11-04 17:01:23 +00:00
loop-red-w-2.c gimplify.c (enum omp_region_type): Add ORT_ACC, ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. 2015-11-11 14:24:09 +00:00
loop-red-wv-1.c loop-red-g-1.c: New. 2015-11-04 17:01:23 +00:00
loop-v-1.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
loop-w-1.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
loop-wv-1.c loop-g-1.c: New. 2015-10-28 14:27:30 +00:00
nested-1.c
nested-2.c
offset-1.c
par-reduction-1.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
par-reduction-2.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
parallel-1.c
parallel-dims.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
parallel-empty.c
pointer-align-1.c
present-1.c Add checkpoint to libgomp dg-shouldfail tests 2015-09-30 10:44:49 +02:00
present-2.c
reduction-1.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
reduction-2.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-3.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-4.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-5.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
reduction-cplx-dbl.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-cplx-flt.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-dbl.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-flt.c reduction-dbl.c: New. 2015-11-19 18:58:39 +00:00
reduction-initial-1.c nvptx.c (nvptx_goacc_validate_dims): Add checking. 2015-11-04 20:48:05 +00:00
routine-g-1.c routine-1.c: New. 2015-11-10 01:01:15 +00:00
routine-gwv-1.c routine-1.c: New. 2015-11-10 01:01:15 +00:00
routine-v-1.c routine-1.c: New. 2015-11-10 01:01:15 +00:00
routine-w-1.c routine-1.c: New. 2015-11-10 01:01:15 +00:00
routine-wv-1.c routine-1.c: New. 2015-11-10 01:01:15 +00:00
subr.h
subr.ptx
timer.h
update-1-2.c
update-1.c
vector-loop.c vector-loop.c: Fix loop initializer. 2015-10-12 20:22:30 +00:00
vector-type-1.c Fix offloading machine mode stream reading 2015-08-10 17:22:30 +02:00
worker-single-1a.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
worker-single-4.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00
worker-single-6.c OpenACC atomic directive 2015-11-03 12:28:22 +01:00