Message ID | 4EB2E1D2.50309@redhat.com |
---|---|
State | New |
Headers | show |
On Thu, 3 Nov 2011, Aldy Hernandez wrote: > Index: gcc/doc/tm.texi.in > =================================================================== > --- gcc/doc/tm.texi.in (.../trunk) (revision 180744) > +++ gcc/doc/tm.texi.in (.../branches/transactional-memory) (revision > 180773) > @@ -5696,6 +5696,16 @@ mode returned by @code{TARGET_VECTORIZE_ > The default is zero which means to not iterate over other vector sizes. > @end deftypefn > > +@hook TARGET_VECTORIZE_BUILTIN_TM_LOAD > +This hook should return the built-in decl needed to load a vector of > +the given type. > +@end deftypefn > + > +@hook TARGET_VECTORIZE_BUILTIN_TM_STORE > +This hook should return the built-in decl needed to store a vector of > +the given type. > +@end deftypefn Is this text based on pre-existing GFDL-only text? If not, it's better to put it in target.def rather than directly in tm.texi.in (tm.texi.in should preferably just have the @hook lines saying where to put the documentation in tm.texi). > +For more information on GCC's support for transactional memory, see > +the accompanying documentation for @file{libitm}. It should be possible to use a proper Texinfo cross-reference linking to the other manual.
>> +For more information on GCC's support for transactional memory, see >> +the accompanying documentation for @file{libitm}. > > It should be possible to use a proper Texinfo cross-reference linking to > the other manual. I thought so too, but couldn't find how. Libitm is in another directory (libitm/libitm.texi). Does anyone know how to do this?
On Thu, 3 Nov 2011, Aldy Hernandez wrote: > > > > +For more information on GCC's support for transactional memory, see > > > +the accompanying documentation for @file{libitm}. > > > > It should be possible to use a proper Texinfo cross-reference linking to > > the other manual. > > I thought so too, but couldn't find how. Libitm is in another directory > (libitm/libitm.texi). Does anyone know how to do this? When installed, all info files are presumed to go in one directory, HTML files in parallel directories, etc.; you use the five-argument form of @xref with "libitm" as the fourth argument.
Hi, On Thu, 3 Nov 2011, Aldy Hernandez wrote: > Index: gcc/doc/tm.texi > =================================================================== > --- gcc/doc/tm.texi (.../trunk) (revision 180744) > +++ gcc/doc/tm.texi (.../branches/transactional-memory) (revision > 180773) > @@ -5758,6 +5758,16 @@ mode returned by @code{TARGET_VECTORIZE_ > The default is zero which means to not iterate over other vector sizes. > @end deftypefn > > +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_TM_LOAD (tree) > +This hook should return the built-in decl needed to load a vector of > +the given type. > +@end deftypefn > + > +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_TM_STORE (tree) > +This hook should return the built-in decl needed to store a vector of > +the given type. > +@end deftypefn Somehow this docu should mention transactional memory (apart from the _TM in the name :) ), otherwise it reads as if these hooks are to be used for all vector loads/stores. Ciao, Michael.
Index: gcc/doc/tm.texi =================================================================== --- gcc/doc/tm.texi (.../trunk) (revision 180744) +++ gcc/doc/tm.texi (.../branches/transactional-memory) (revision 180773) @@ -5758,6 +5758,16 @@ mode returned by @code{TARGET_VECTORIZE_ The default is zero which means to not iterate over other vector sizes. @end deftypefn +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_TM_LOAD (tree) +This hook should return the built-in decl needed to load a vector of +the given type. +@end deftypefn + +@deftypefn {Target Hook} tree TARGET_VECTORIZE_BUILTIN_TM_STORE (tree) +This hook should return the built-in decl needed to store a vector of +the given type. +@end deftypefn + @node Anchored Addresses @section Anchored Addresses @cindex anchored addresses Index: gcc/doc/tm.texi.in =================================================================== --- gcc/doc/tm.texi.in (.../trunk) (revision 180744) +++ gcc/doc/tm.texi.in (.../branches/transactional-memory) (revision 180773) @@ -5696,6 +5696,16 @@ mode returned by @code{TARGET_VECTORIZE_ The default is zero which means to not iterate over other vector sizes. @end deftypefn +@hook TARGET_VECTORIZE_BUILTIN_TM_LOAD +This hook should return the built-in decl needed to load a vector of +the given type. +@end deftypefn + +@hook TARGET_VECTORIZE_BUILTIN_TM_STORE +This hook should return the built-in decl needed to store a vector of +the given type. +@end deftypefn + @node Anchored Addresses @section Anchored Addresses @cindex anchored addresses