Re: [gomp4] New nvptx pattern and internal builtin

2015-07-20 Thread Bernd Schmidt
On 07/20/2015 03:19 PM, Nathan Sidwell wrote: I was looking at adding another target builtin, and found this code rather convoluted. It seemed to have been cloned from somewhere more complicated -- for instance, nvptx_expand_binop_builtin's comment discusses a MACFLAG argument, which is nowhere

Re: [gomp4] New nvptx pattern and internal builtin

2015-07-20 Thread Nathan Sidwell
On 07/17/15 11:37, Bernd Schmidt wrote: I've made this change at the request of Cesar who says it's needed for his reductions work. It makes a new instruction to represent shfl.down, a thread communication instruction, and some builtin functions for internal use to access it. I was looking at a

[gomp4] New nvptx pattern and internal builtin

2015-07-17 Thread Bernd Schmidt
I've made this change at the request of Cesar who says it's needed for his reductions work. It makes a new instruction to represent shfl.down, a thread communication instruction, and some builtin functions for internal use to access it. Committed on gomp-4_0-branch. Bernd Index: gcc/ChangeLo