]> git.ipfire.org Git - thirdparty/gcc.git/commit
Consistently order 'OMP_CLAUSE_SELF' right after 'OMP_CLAUSE_IF'
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 23 Oct 2023 12:24:44 +0000 (14:24 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 25 Oct 2023 09:14:25 +0000 (11:14 +0200)
commita5e919027fdb1900a6f2d64f763c99dbaf98aee6
tree19ae4acb0552908adf4ebe3fc9a5f99671133020
parent8064e7e2b5033073911c8d669638a7c61167c0e5
Consistently order 'OMP_CLAUSE_SELF' right after 'OMP_CLAUSE_IF'

As noted in recent commit 3a3596389c2e539cb8fd5dc5784a4e2afe193a2a
"OpenACC 2.7: Implement self clause for compute constructs", the OpenACC 'self'
clause very much relates to the 'if' clause, and therefore copies a lot of the
latter's handling.  Therefore it makes sense to also place this handling in
proximity to that of the 'if' clause, which was done in a lot but not all
instances.

gcc/
* tree-core.h (omp_clause_code): Move 'OMP_CLAUSE_SELF' after
'OMP_CLAUSE_IF'.
* tree-pretty-print.cc (dump_omp_clause): Adjust.
* tree.cc (omp_clause_num_ops, omp_clause_code_name): Likewise.
* tree.h: Likewise.
gcc/tree-core.h
gcc/tree-pretty-print.cc
gcc/tree.cc
gcc/tree.h