Re: Restricting arguments to intrinsic functions

2015-03-03 Thread Daniel Santos
First off, I apologize for resurrecting such an old thread, but I feel this needs a bit of clarity and to add my "two cents". On 10/23/2014 12:52 PM, Charles Baylis wrote: Hi ( tl;dr: How do I handle intrinsic or builtin functions where there are restrictions on the arguments which can't be re

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Jakub Jelinek
On Fri, Oct 24, 2014 at 06:25:29PM +0100, Charles Baylis wrote: > On 24 October 2014 17:05, Andrew Pinski wrote: > > On Fri, Oct 24, 2014 at 8:11 AM, Tejas Belagod > > wrote: > > >> The diagnostic issued points to the line in arm_neon.h, but we expect this > >> to point to the line in cr.c. I s

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Jakub Jelinek
On Fri, Oct 24, 2014 at 06:25:29PM +0100, Charles Baylis wrote: > On 24 October 2014 17:05, Andrew Pinski wrote: > > On Fri, Oct 24, 2014 at 8:11 AM, Tejas Belagod > > wrote: > > >> The diagnostic issued points to the line in arm_neon.h, but we expect this > >> to point to the line in cr.c. I s

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Charles Baylis
On 24 October 2014 17:05, Andrew Pinski wrote: > On Fri, Oct 24, 2014 at 8:11 AM, Tejas Belagod wrote: >> The diagnostic issued points to the line in arm_neon.h, but we expect this >> to point to the line in cr.c. I suspect we need something closer to the >> front-end? > > > You need to change a

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Andrew Pinski
On Fri, Oct 24, 2014 at 8:11 AM, Tejas Belagod wrote: > On 24/10/14 15:44, Segher Boessenkool wrote: >> >> On Thu, Oct 23, 2014 at 06:52:20PM +0100, Charles Baylis wrote: >>> >>> ( tl;dr: How do I handle intrinsic or builtin functions where there >>> are restrictions on the arguments which can't b

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Tejas Belagod
On 24/10/14 15:44, Segher Boessenkool wrote: On Thu, Oct 23, 2014 at 06:52:20PM +0100, Charles Baylis wrote: ( tl;dr: How do I handle intrinsic or builtin functions where there are restrictions on the arguments which can't be represented in a C function prototype? Do other ports have this proble

Re: Restricting arguments to intrinsic functions

2014-10-24 Thread Segher Boessenkool
On Thu, Oct 23, 2014 at 06:52:20PM +0100, Charles Baylis wrote: > ( tl;dr: How do I handle intrinsic or builtin functions where there > are restrictions on the arguments which can't be represented in a C > function prototype? Do other ports have this problem, how do they > solve it? Language extens

Re: Restricting arguments to intrinsic functions

2014-10-23 Thread Jakub Jelinek
On Thu, Oct 23, 2014 at 11:06:24AM -0700, Andrew Pinski wrote: > On Thu, Oct 23, 2014 at 11:00 AM, Andrew Pinski wrote: > > On Thu, Oct 23, 2014 at 10:52 AM, Charles Baylis > > wrote: > >> Hi > >> > >> ( tl;dr: How do I handle intrinsic or builtin functions where there > >> are restrictions on th

Re: Restricting arguments to intrinsic functions

2014-10-23 Thread Andrew Pinski
On Thu, Oct 23, 2014 at 11:00 AM, Andrew Pinski wrote: > On Thu, Oct 23, 2014 at 10:52 AM, Charles Baylis > wrote: >> Hi >> >> ( tl;dr: How do I handle intrinsic or builtin functions where there >> are restrictions on the arguments which can't be represented in a C >> function prototype? Do other

Re: Restricting arguments to intrinsic functions

2014-10-23 Thread Andrew Pinski
On Thu, Oct 23, 2014 at 10:52 AM, Charles Baylis wrote: > Hi > > ( tl;dr: How do I handle intrinsic or builtin functions where there > are restrictions on the arguments which can't be represented in a C > function prototype? Do other ports have this problem, how do they > solve it? Language extens