Re: [PATCH v3 1/5] openmp: Refactor handling of iterators

2024-10-11 Thread Jakub Jelinek
On Fri, Oct 04, 2024 at 03:54:53PM +0100, Kwok Cheung Yeung wrote: > +/* Returns a tree expression containing the total iteration count of the > + iterator clause decl T. */ s/iterator/OpenMP iterator/ > + > +static tree > +compute_iterator_count (tree t, gimple_seq *pre_p) s/_iterator/_omp_i

[PATCH v3 1/5] openmp: Refactor handling of iterators

2024-10-04 Thread Kwok Cheung Yeung
This patch factors out the code to calculate the number of iterations required and to generate the iteration loop into separate functions from gimplify_omp_depend for reuse later. I have also replaced the 'TREE_CODE (*tp) == TREE_LIST && ...' checks used for detecting an iterator clause with a ma