This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: Thomas Schwinge <thomas at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Date: Mon, 15 Jun 2015 21:58:40 +0200
- Subject: Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- Authentication-results: sourceware.org; auth=none
- References: <20150615122037 dot GA45068 at msticlxl57 dot ims dot intel dot com> <20150615130609 dot GR10247 at tucnak dot redhat dot com> <20150615161827 dot GB45068 at msticlxl57 dot ims dot intel dot com> <20150615162528 dot GU10247 at tucnak dot redhat dot com> <20150615194850 dot GC45068 at msticlxl57 dot ims dot intel dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jun 15, 2015 at 10:48:50PM +0300, Ilya Verbin wrote:
> Here is the new patch. OK to commit?
>
>
> gcc/
> * builtin-types.def (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR): New.
> (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR): Remove.
> * omp-builtins.def (BUILT_IN_GOMP_TARGET): Replace GOMP_target with
> GOMP_target_41.
> (BUILT_IN_GOMP_TARGET_DATA): Replace GOMP_target_data with
> GOMP_target_data_41.
> (BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA): New.
> * omp-low.c (expand_omp_target): Use
> BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA for GF_OMP_TARGET_KIND_ENTER_DATA
> and GF_OMP_TARGET_KIND_EXIT_DATA.
> Do not pass obsolete pointer to new builtins.
> (lower_omp_target): Use unsigned short for map kinds, except
> BUILT_IN_GOMP_TARGET_UPDATE.
> gcc/fortran/
> * types.def (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR): New.
> (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR): Remove.
> libgomp/
> * libgomp.map (GOMP_4.1): Add GOMP_target_41, GOMP_target_data_41,
> GOMP_target_enter_exit_data.
> * libgomp_g.h: Declare GOMP_target_41, GOMP_target_data_41,
> GOMP_target_enter_exit_data.
> * target.c (resolve_device): Call gomp_init_device here instead of
> GOMP_target*.
> (get_kind): Rename is_openacc to short_mapkind.
> (gomp_map_vars): Likewise.
> (gomp_unmap_vars): Likewise.
> (gomp_update): Likewise.
> (gomp_target_fallback): New static function.
> (gomp_get_target_fn_addr): New static function.
> (GOMP_target): Move host fallback and fn lookup to the new functions.
> (GOMP_target_41): New function.
> (gomp_target_data_fallback): New static function.
> (GOMP_target_data): Move host fallback to the new function.
> (GOMP_target_data_41): New function.
> (GOMP_target_update): Do not call gomp_init_device.
> (GOMP_target_enter_exit_data): New function.
Ok, thanks.
Jakub
- References:
- [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data
- Re: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data