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

2014-01-19 Thread Iyer, Balaji V
: 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) for C++ On Thu, Dec 19, 2013 at 06:12:29PM +

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 balaji.v.i...@intel.com * 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.

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 Wed, Dec 18, 2013 at 11:36:04PM +, Iyer, Balaji V

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

2013-12-18 Thread Iyer, Balaji V
Message- 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++ Hello Everyone, The following changes

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 Plus

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

2013-12-15 Thread Iyer, Balaji V
: Iyer, Balaji V Sent: Saturday, November 30, 2013 11:53 PM To: 'Jakub Jelinek' Cc: Aldy Hernandez (al...@redhat.com); 'Jeff Law'; 'gcc- patc...@gcc.gnu.org' Subject: RE: [GOMP4][PATCH] SIMD-enabled functions (formerly Elemental functions) for C++ Hello Everyone, The changes

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 balaji.v.i...@intel.com

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__

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 to

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 this

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 you

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] SIMD-Enabled Functions (formerly

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 (vecc_token elem_fn_tokens) is passed in as a parameter and then passed back to the c_parser_declaration_or_fndef function.

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] SIMD-Enabled Functions (formerly

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] SIMD-Enabled Functions (formerly