This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to enable vector intrinsic functions in fortran frontend


On Mon, Oct 22, 2007 at 07:58:58PM +0200, Tobias Burnus wrote:
> Sa Liu wrote:
> > I thought of adding them to the gfc namespace by a 
> > function, say add_vmx_intrinsics, which does the similar work as 
> > add_functions does in intrinsic.c. Is this somthing that Fortran frontend 
> > would accept? Any better ideas to avoid mixing up Fortran generic stuff 
> > and target specific functions?
> >   
> I think this would be ok - as would be in principle using
> add_functions() with if(flag) { "#include ..." }. The problem I see is
> only how to do the argument checking or simplification or ... without
> duplicating too many code (from e.g. check.c) and without adding target
> specific stuff to all these files.
> 

Don't forget symbol versioning.  Sa Liu would also need to add
the symbols to gfortran.map.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]