Re: [gomp4] Remove some ptxness from middle end

2015-06-22 Thread Nathan Sidwell
On 06/22/15 13:04, Marek Polacek wrote: On Mon, Jun 22, 2015 at 01:00:51PM -0400, Nathan Sidwell wrote: + if (GET_CODE (arg) != CONST_INT + || (unsigned HOST_WIDE_INT)INTVAL (arg) >= OACC_HWM) Don't we have UINTVAL for this? So UINTVAL (arg). Applied the attached, after testing. Also

Re: [gomp4] Remove some ptxness from middle end

2015-06-22 Thread Nathan Sidwell
On 06/22/15 13:04, Marek Polacek wrote: On Mon, Jun 22, 2015 at 01:00:51PM -0400, Nathan Sidwell wrote: + if (GET_CODE (arg) != CONST_INT + || (unsigned HOST_WIDE_INT)INTVAL (arg) >= OACC_HWM) Don't we have UINTVAL for this? So UINTVAL (arg). Oh, thanks! will fix nathan -- Nathan Si

Re: [gomp4] Remove some ptxness from middle end

2015-06-22 Thread Marek Polacek
On Mon, Jun 22, 2015 at 01:00:51PM -0400, Nathan Sidwell wrote: > + if (GET_CODE (arg) != CONST_INT > + || (unsigned HOST_WIDE_INT)INTVAL (arg) >= OACC_HWM) Don't we have UINTVAL for this? So UINTVAL (arg). Marek

[gomp4] Remove some ptxness from middle end

2015-06-22 Thread Nathan Sidwell
I've committed this patch to the gomp4 branch, after testing. It does a number of cleanups 1) removes the ptx-specific TID, NTID, CTAID & NCTAID builtins, replacing them with openacc-specific GOACC_id and GOACC_nid builtins, using gang/worker & vector level enumeration. These are mapped by t