]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Do USM transform for omp_target_alloc
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 1 Apr 2022 15:12:16 +0000 (16:12 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Sat, 2 Apr 2022 12:13:15 +0000 (13:13 +0100)
commitda61dd848c0721cb2366bcd1197104caff92e145
treed73ea27d2bfe2c6ca145a5ca6b94e4440987fcca
parent2e50103f04859f184734ec7b1ad2f18799cb63ef
openmp: Do USM transform for omp_target_alloc

OpenMP 5.0 says that omp_target_alloc should return USM addresses.

gcc/ChangeLog:

* omp-low.c (usm_transform): Transform omp_target_alloc and
omp_target_free.

libgomp/ChangeLog:

* testsuite/libgomp.c/usm-6.c: Add omp_target_alloc.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/usm-2.c: Add omp_target_alloc.
* c-c++-common/gomp/usm-3.c: Add omp_target_alloc.
gcc/ChangeLog.omp
gcc/omp-low.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/gomp/usm-2.c
gcc/testsuite/c-c++-common/gomp/usm-3.c
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/usm-6.c