]> 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>
Mon, 13 Jul 2020 17:10:33 +0000 (10:10 -0700)
commitbafecb520a5563936750b117f5416d13a9159590
tree6655853b602247350236ae69441ae0a6dd98f73d
parent2974e1eee053496e1d43f7f2e62f5feac2aa0315
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>
(cherry picked from commit cb7effde6f36b43d50c8cd7f86eaa05937da7205)
libgomp/oacc-mem.c