RE: Question about omp-low.c

2013-12-19 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Thursday, December 19, 2013 2:40 AM > To: Iyer, Balaji V > Cc: Jason Merrill (ja...@redhat.com); 'gcc@gcc.gnu.org' > Subject: Re: Question about omp-low.c > > On Thu, Dec

Re: Question about omp-low.c

2013-12-18 Thread Jakub Jelinek
On Thu, Dec 19, 2013 at 05:14:16AM +, Iyer, Balaji V wrote: > I looked into this, but the issue I have is, for the following code: > > Int main (void) { > _Cilk_for (int ii = W; ii < (X+Y); ii = ii + (q+z)) This doesn't have a body, Int won't compile either. Can you post -fdump-t

RE: Question about omp-low.c

2013-12-18 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Wednesday, December 18, 2013 11:28 AM > To: Iyer, Balaji V > Cc: Jason Merrill (ja...@redhat.com); 'gcc@gcc.gnu.org' > Subject: Re: Question about omp-low.c > > On Wed, Dec

Re: Question about omp-low.c

2013-12-18 Thread Jakub Jelinek
On Wed, Dec 18, 2013 at 04:16:57PM +, Iyer, Balaji V wrote: > > Don't do this, compute loop count during omp expansion (there is already > > code that does that for you, after all, for #pragma omp for the loop count > > is > > typically (unless static schedule) passed as parameter to the runti

RE: Question about omp-low.c

2013-12-18 Thread Iyer, Balaji V
> Don't do this, compute loop count during omp expansion (there is already > code that does that for you, after all, for #pragma omp for the loop count is > typically (unless static schedule) passed as parameter to the runtime as well. Where does this happen? Is there a routine that you can point

Re: Question about omp-low.c

2013-12-18 Thread Jakub Jelinek
On Wed, Dec 18, 2013 at 03:29:04PM +, Iyer, Balaji V wrote: > > OpenMP also supports C++ iterators, so I don't see why you don't follow > > that. > > The iterators are lowered already by the C++ FE, what the middle-end sees is > > an integral iterator. Just look at one of the several > > libgo

RE: Question about omp-low.c

2013-12-18 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Wednesday, December 18, 2013 1:58 AM > To: Iyer, Balaji V > Cc: Jason Merrill (ja...@redhat.com); 'gcc@gcc.gnu.org' > Subject: Re: Question about omp-low.c > > On Wed, Dec

Re: Question about omp-low.c

2013-12-17 Thread Jakub Jelinek
On Wed, Dec 18, 2013 at 04:46:40AM +, Iyer, Balaji V wrote: > I have a question regarding the parallel for implementation. I am > implementing _Cilk_for based on the routines in omp-low.c and I would like to > create a child function but would like to move the items that > gimplify_omp