RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2014-01-19 Thread Iyer, Balaji V
; From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Friday, January 17, 2014 12:46 PM > To: Iyer, Balaji V > Cc: 'Aldy Hernandez (al...@redhat.com)'; 'gcc-patches@gcc.gnu.org' > Subject: Re: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental > functions) f

Re: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2014-01-17 Thread Jakub Jelinek
On Thu, Dec 19, 2013 at 06:12:29PM +, Iyer, Balaji V wrote: > 2013-12-19 Balaji V. Iyer > > * parser.c (cp_parser_direct_declarator): When Cilk Plus is enabled > see if there is an attribute after function decl. If so, then > parse them now. > (cp_parser_lat

RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2013-12-19 Thread Iyer, Balaji V
mailto:ja...@redhat.com] > Sent: Thursday, December 19, 2013 2:23 AM > To: Iyer, Balaji V > Cc: 'Aldy Hernandez (al...@redhat.com)'; 'gcc-patches@gcc.gnu.org' > Subject: Re: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental > functions) for C++ > > On W

Re: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2013-12-18 Thread Jakub Jelinek
On Wed, Dec 18, 2013 at 11:36:04PM +, Iyer, Balaji V wrote: > --- a/gcc/cp/decl2.c > +++ b/gcc/cp/decl2.c > @@ -1124,6 +1124,10 @@ is_late_template_attribute (tree attr, tree decl) >&& is_attribute_p ("omp declare simd", name)) > return true; > > + /* Ditto as above for Cilk Plu

RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2013-12-18 Thread Iyer, Balaji V
age- > From: Iyer, Balaji V > Sent: Sunday, December 15, 2013 11:53 PM > To: 'Jakub Jelinek' > Cc: Aldy Hernandez (al...@redhat.com); 'gcc-patches@gcc.gnu.org' > Subject: RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental > functions) for C++

RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2013-12-15 Thread Iyer, Balaji V
> > PING! > > -Balaji V. Iyer. > > > -Original Message- > > From: Iyer, Balaji V > > Sent: Saturday, November 30, 2013 11:53 PM > > To: 'Jakub Jelinek' > > Cc: Aldy Hernandez (al...@redhat.com); 'Jeff Law'; 'gcc- > &g

RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++

2013-11-30 Thread Iyer, Balaji V
Hello Everyone, The changes mentioned in http://gcc.gnu.org/ml/gcc-patches/2013-11/msg03506.html is also applicable to my C++ patch. With this email, I am attaching a fixed patch. Here are the ChangeLog entries: gcc/cp/ChangeLog 2013-11-30 Balaji V. Iyer * decl2.c (is_late_t

RE: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Tuesday, November 19, 2013 12:00 PM > To: Iyer, Balaji V > Cc: Joseph S. Myers; gcc-patches@gcc.gnu.org; Aldy Hernandez > (al...@redhat.com); Jeff Law > Subject: Re: [GOMP4] [PATCH] S

RE: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Tuesday, November 19, 2013 12:00 PM > To: Iyer, Balaji V > Cc: Joseph S. Myers; gcc-patches@gcc.gnu.org; Aldy Hernandez > (al...@redhat.com); Jeff Law > Subject: Re: [GOMP4] [PATCH] S

Re: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Jakub Jelinek
On Tue, Nov 19, 2013 at 04:54:29PM +, Iyer, Balaji V wrote: > I just need a clarification, so I am sorry if I am making you repeat: > > Right now, the array of tokens (vec elem_fn_tokens) is passed in > as a parameter and then passed back to the c_parser_declaration_or_fndef > function. > > I

RE: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Iyer, Balaji V
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Tuesday, November 19, 2013 11:31 AM > To: Joseph S. Myers > Cc: Iyer, Balaji V; gcc-patches@gcc.gnu.org; Aldy Hernandez > (al...@redhat.com); Jeff Law > Subject: Re: [GOMP4] [PATCH] S

Re: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Jakub Jelinek
On Tue, Nov 19, 2013 at 04:13:34PM +, Joseph S. Myers wrote: > On Tue, 19 Nov 2013, Jakub Jelinek wrote: > > > Also, I wonder if you couldn't save the tokens wrapped into some tree > > temporarily into the attribute, rather than having to adjust > > c_parser_attribute callers. Joseph, what do

Re: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Joseph S. Myers
On Tue, 19 Nov 2013, Jakub Jelinek wrote: > Also, I wonder if you couldn't save the tokens wrapped into some tree > temporarily into the attribute, rather than having to adjust > c_parser_attribute callers. Joseph, what do you prefer here? I think including whatever parsed data is relevant to th

RE: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Iyer, Balaji V
> Also, I'm not sure I like doing the transformation from Cilk+ to OpenMP > syntax through rewriting tokens, rather than at the parsing level. > After all, the Cilk+ syntax is quite different, even when the patch pretends > it > is the same, consider e.g. the linear clause, which in Cilk+ allows t

Re: [GOMP4] [PATCH] SIMD-Enabled Functions (formerly Elemental functions) for C

2013-11-19 Thread Jakub Jelinek
On Mon, Nov 18, 2013 at 10:35:50PM +, Iyer, Balaji V wrote: > Attached, please find a patch that will implement SIMD enabled functions > for C targeting the gomp-4_0-branch. Here are the ChangeLog entries. Is > this OK to install? Have you tested say: int func9 (int x, int y) __attribute__ (