};
/* OMP_CLAUSE codes. Do not reorder, as this is used to index into
- the tables omp_clause_num_ops and omp_clause_code_name. */
+ the tables omp_clause_num_ops and omp_clause_code_name.
+
+ Note additionally that there are various range checks such as
+ for OMP_CLAUSE_SIZE or OMP_CLAUSE_DECL; clauses having those shall
+ be inside that range, those that have not shall be outside. */
+
enum omp_clause_code {
/* Clause zero is special-cased inside the parser
(c_parser_omp_variable_list). */
OMP_CLAUSE_ERROR = 0,
+ /* Range START below for: OMP_CLAUSE_DECL */
+
/* OpenACC/OpenMP clause: private (variable_list). */
OMP_CLAUSE_PRIVATE,
/* OpenMP clause: lastprivate (variable_list). */
OMP_CLAUSE_LASTPRIVATE,
+ /* Range START below for: OMP_CLAUSE_REDUCTION_CODE and
+ OMP_CLAUSE_REDUCTION_{INIT,MERGE,{DECL_,}PLACEHOLDER,OMP_ORIG_REF} */
+
/* OpenACC/OpenMP clause: reduction (operator:variable_list).
OMP_CLAUSE_REDUCTION_CODE: The tree_code of the operator.
Operand 1: OMP_CLAUSE_REDUCTION_INIT: Stmt-list to initialize the var.
/* OpenMP clause: in_reduction (operator:variable_list). */
OMP_CLAUSE_IN_REDUCTION,
+ /* Range END above for: OMP_CLAUSE_REDUCTION_CODE and
+ OMP_CLAUSE_REDUCTION_{INIT,MERGE,{DECL_,}PLACEHOLDER,OMP_ORIG_REF} */
+
/* OpenMP clause: copyin (variable_list). */
OMP_CLAUSE_COPYIN,
/* OpenMP clause: exclusive (variable-list). */
OMP_CLAUSE_EXCLUSIVE,
+ /* Range START below for: OMP_CLAUSE_SIZE */
+ /* Range START below for: OMP_CLAUSE_MOTION_PRESENT */
+
/* OpenMP clause: from (variable-list). */
OMP_CLAUSE_FROM,
/* OpenMP clause: to (variable-list). */
OMP_CLAUSE_TO,
+ /* Range END above for: OMP_CLAUSE_MOTION_PRESENT */
+
/* OpenACC clauses: {copy, copyin, copyout, create, delete, deviceptr,
device, host (self), present, present_or_copy (pcopy), present_or_copyin
(pcopyin), present_or_copyout (pcopyout), present_or_create (pcreate)}
#pragma acc cache (variable-list). */
OMP_CLAUSE__CACHE_,
+ /* Range END above for: OMP_CLAUSE_SIZE */
+
/* OpenACC clause: gang [(gang-argument-list)].
Where
gang-argument-list: [gang-argument-list, ] gang-argument
/* Internal clause: temporary for inscan reductions. */
OMP_CLAUSE__SCANTEMP_,
+ /* Range END above for: OMP_CLAUSE_DECL */
+
/* OpenACC/OpenMP clause: if (scalar-expression). */
OMP_CLAUSE_IF,