how to enable vector intrinsic functions in fortran frontend

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Oct 22 18:18:00 GMT 2007


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



More information about the Fortran mailing list