]> git.ipfire.org Git - thirdparty/gcc.git/commit
openacc: Helper functions for enter/exit data using single mapping
authorJulian Brown <julian@codesourcery.com>
Tue, 30 Jun 2020 09:15:56 +0000 (02:15 -0700)
committerJulian Brown <julian@codesourcery.com>
Fri, 10 Jul 2020 15:07:12 +0000 (08:07 -0700)
commitcb7effde6f36b43d50c8cd7f86eaa05937da7205
treef2ed5a025ab27c0fa55f5b2435b809f27392886e
parentc6b7ba5de624f2a17d799bac5ff017cd065ce035
openacc: Helper functions for enter/exit data using single mapping

This patch factors out the parts of goacc_enter_datum and
goacc_exit_datum that can be shared with goacc_enter_data_internal
and goacc_exit_data_internal respectively (in the next patch),
without overloading function return values or complicating code paths
unnecessarily.

2020-07-10  Julian Brown  <julian@codesourcery.com>
    Thomas Schwinge  <thomas@codesourcery.com>

libgomp/
* oacc-mem.c (goacc_map_var_existing): New function.
(goacc_enter_datum): Use above function.
(goacc_exit_datum_1): New function.
(goacc_exit_datum): Use above function.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
libgomp/oacc-mem.c