[PATCH] OpenACC for C front end

James Norris jnorris@codesourcery.com
Wed Nov 5 21:39:00 GMT 2014


Hi!

This patch represents the changes for OpenACC 2.0
in the C front-end. At present these files will
not compile as the changes for the middle end are
not present.

OK to commit?

Thanks,
Jim

	=> c/ChangeLog

2014-11-05  James Norris  <jnorris@codesourcery.com>
	    Cesar Philippidis  <cesar@codesourcery.com>
	    Thomas Schwinge  <thomas@codesourcery.com>
	    Ilmir Usmanov  <i.usmanov@samsung.com>

	* c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels,
	c_finish_oacc_data): New functions.
	(handle_omp_array_sections, c_finish_omp_clauses):
	Handle OMP_CLAUSE_MAP_FORCE_DEVICEPTR, OMP_CLAUSE_NUM_GANGS,
	OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC,
	and OMP_CLAUSE_WAIT.
	(c_finish_omp_clauses): Handle PRAGMA_OMP_CLAUSE_NUM_GANGS,
	PRAGMA_OMP_CLAUSE_NUM_WORKERS, and PRAGMA_OMP_CLAUSE_VECTOR_LENGTH.
	* c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels,
	c_finish_oacc_data): New prototypes.
	* c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
	PRAGMA_OACC_EXIT_DATA, and PRAGMA_OACC_UPDATE.
	(c_parser_omp_clause_name): Handle OpenACC clauses.
	(c_parser_oacc_wait_list, c_parser_oacc_data_clause,
	c_parser_oacc_data_clause_deviceptr, c_parser_omp_clause_num_gangs,
	c_parser_omp_clause_num_workers, c_parser_oacc_clause_async,
	c_parser_oacc_clause_wait, c_parser_omp_clause_vector_length,
	c_parser_oacc_all_clauses, c_parser_oacc_data, c_parser_oacc_kernels,
	c_parser_oacc_enter_exit_data, c_parser_oacc_loop, c_parser_oacc_parallel,
	c_parser_oacc_update, c_parser_oacc_wait): New functions.
	(c_parser_omp_construct): Handle PRAGMA_OMP_DATA, PRAGMA_OACC_KERNELS,
	PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL and PRAMGA_OACC_WAIT.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2.diff
Type: text/x-patch
Size: 40473 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141105/91d40d4f/attachment.bin>


More information about the Gcc-patches mailing list