Re: [PATCH v3 2/5] openmp: Add support for iterators in map clauses (C/C++)

2024-10-16 Thread Jakub Jelinek
On Fri, Oct 11, 2024 at 04:59:27PM +0200, Jakub Jelinek wrote: > E.g. it would be IMHO fine if the gimplification is done in a similar way > how we do OMP_CLAUSE_REDUCTION_{INIT,MERGE} gimplification into > &OMP_CLAUSE_REDUCTION_GIMPLE_{INIT,MERGE}, instead of gimplifying the > map clause expressio

Re: [PATCH v3 2/5] openmp: Add support for iterators in map clauses (C/C++)

2024-10-11 Thread Jakub Jelinek
On Fri, Oct 04, 2024 at 03:56:01PM +0100, Kwok Cheung Yeung wrote: > This patch modifies the C and C++ parsers to accept an iterator as a map > type modifier, storing it in the OMP_CLAUSE_ITERATOR argument of the clause. > When finishing clauses, any clauses generated from a clause with iterators >

[PATCH v3 2/5] openmp: Add support for iterators in map clauses (C/C++)

2024-10-04 Thread Kwok Cheung Yeung
This patch modifies the C and C++ parsers to accept an iterator as a map type modifier, storing it in the OMP_CLAUSE_ITERATOR argument of the clause. When finishing clauses, any clauses generated from a clause with iterators also has the iterator applied to them. During gimplification, check_o