]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Add support for using custom mappers with iterators (C, C++)
authorKwok Cheung Yeung <kcyeung@baylibre.com>
Mon, 13 Jan 2025 13:08:07 +0000 (13:08 +0000)
committerKwok Cheung Yeung <kcyeung@baylibre.com>
Thu, 17 Apr 2025 22:33:34 +0000 (23:33 +0100)
commit53b8a20948e921bca6815f8cd70bfa57c264bca3
treeb924869e339f217a3c891220c2b07d1a3f1b8bf8
parent6c130074c9a7ab9aaff0950a5011c48fd705be55
openmp: Add support for using custom mappers with iterators (C, C++)

gcc/c-family/

* c-omp.cc (omp_instantiate_mapper): Apply iterator to new clauses
generated from mapper.

gcc/c/

* c-parser.cc (c_parser_omp_clause_map): Apply iterator to push and
pop mapper clauses.

gcc/cp/

* parser.cc (cp_parser_omp_clause_map): Apply iterator to push and
pop mapper clauses.
* semantics.cc (cxx_omp_map_array_section): Allow array types for
base type of array sections.

libgomp/

* testsuite/libgomp.c-c++-common/mapper-iterators-1.c: New test.
* testsuite/libgomp.c-c++-common/mapper-iterators-2.c: New test.
* testsuite/libgomp.c-c++-common/mapper-iterators-3.c: New test.

Co-authored-by: Andrew Stubbs <ams@baylibre.com>
gcc/c-family/ChangeLog.omp
gcc/c-family/c-omp.cc
gcc/c/ChangeLog.omp
gcc/c/c-parser.cc
gcc/cp/ChangeLog.omp
gcc/cp/parser.cc
gcc/cp/semantics.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c-c++-common/mapper-iterators-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/mapper-iterators-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/mapper-iterators-3.c [new file with mode: 0644]