Re: omp_clause_num_ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Amittai Aviram <amittai.aviram@xxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux