This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: omp_clause_num_ops
Amittai Aviram <amittai.aviram@yale.edu> writes:
> 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"?
Yes.
Ian