On 19 February 2019 19:18:21 CET, Steve Kargl <s...@troutmask.apl.washington.edu> wrote: >On Mon, Feb 18, 2019 at 02:23:34PM +0100, Martin Liška wrote: >> >> As I installed all needed patches, I'm sending a documentation entry >> for the new functionality. >> >> Thoughts? > >See below. Ok to commit with suggested changes. > >> Thanks, >> Martin > >> >From 2d304e3b1d734548811f963c5bed1855b5375c43 Mon Sep 17 00:00:00 >2001 >> From: marxin <mli...@suse.cz> >> Date: Mon, 18 Feb 2019 14:21:56 +0100 >> Subject: [PATCH] Document Fortran header directive. >> >> --- >> gcc/fortran/gfortran.texi | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi >> index 02ff32f741f..72771a851f7 100644 >> --- a/gcc/fortran/gfortran.texi >> +++ b/gcc/fortran/gfortran.texi >> @@ -3596,6 +3596,25 @@ loop that follows. N is an integer constant >specifying the unrolling factor. >> The values of 0 and 1 block any unrolling of the loop. >> >> >> +@node BUILTIN directive >> +@subsection BUILTIN directive >> + >> +The syntax of the directive is >> + >> +@code{!GCC$ BUILTIN (B) attributes simd FLAGS IF('target')} >> + >> +You can used this directive to define which middle-end built-ins >have vector > >s/used/use > >> +implementation. B is name of the middle-end built-in. FLAGS are >optional > >s/B is/@code{B} is the >S/FLAGS/@code{FLAGS} > >> +and must have be either "(inbranch)" or "(notinbranch)". IF >statement > >delete 'have' >s/IF/The @code{IF} > >> +is optional and is used to filter multilib ABIs for that >> +the built-in should be vectorized. Example usage: > >Change "for that the built-in should be vectorized" to >"for the built-in that should be vectorized" > > >> + >> +@smallexample >> +!GCC$ builtin (sinf) attributes simd (notinbranch) if('x86_64') >> +@end smallexample >> + >> +The purpose of the directive is to provide an API among the GCC >compiler and >> +the GNU C Library which would define vector implementation of math >routines.
s/implementation/implementations/ define? Or provide. Thanks, >> >> @node Non-Fortran Main Program >> @section Non-Fortran Main Program >> -- >> 2.20.1 >>