omp_clause_num_ops

Amittai Aviram amittai.aviram@yale.edu
Tue Feb 14 06:40:00 GMT 2012


On Feb 14, 2012, at 1:32 AM, Ian Lance Taylor wrote:

> If you search for OMP_CLAUSE_REDUCTION in tree.h you will see this
> comment:
> 
>  /* 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.
>     Operand 2: OMP_CLAUSE_REDUCTION_MERGE: Stmt-list to merge private var
>                into the shared one.
>     Operand 3: OMP_CLAUSE_REDUCTION_PLACEHOLDER: A dummy VAR_DECL
>                placeholder used in OMP_CLAUSE_REDUCTION_{INIT,MERGE}.  */
> 
> Ian

I should have kept looking.  Thanks!  Does OMP_CLAUSE_REDUCTION_CODE count as "Operand 0"?

Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com



More information about the Gcc-help mailing list