diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2010-06-30 17:56:15 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-06-30 18:56:15 +0100 |
commit | 911852ff03454fef83908e8093925b4eee95e373 (patch) | |
tree | 53b1863654933d4ad6700e47006a94d476465cf4 /gcc | |
parent | 08914aaad9a660df1206cd985198ab213d7bb365 (diff) | |
download | gcc-911852ff03454fef83908e8093925b4eee95e373.zip gcc-911852ff03454fef83908e8093925b4eee95e373.tar.gz gcc-911852ff03454fef83908e8093925b4eee95e373.tar.bz2 |
target.def (memory_move_cost): Use DEFHOOK.
* target.def (memory_move_cost): Use DEFHOOK.
* doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
Rename regclass AKA class to rclass.
* doc/tm.texi: Regenerate.
From-SVN: r161623
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 6 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 6 | ||||
-rw-r--r-- | gcc/target.def | 2 |
4 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 234acf8..48e1a14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -19,6 +19,11 @@ * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook. * doc/tm.texi: Regenerate. + * target.def (memory_move_cost): Use DEFHOOK. + * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook. + Rename regclass AKA class to rclass. + * doc/tm.texi: Regenerate. + 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index f2261a1..27c1465 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -6170,9 +6170,9 @@ These macros are obsolete, new ports should use the target hook @code{TARGET_MEMORY_MOVE_COST} instead. @end defmac -@deftypefn {Target Hook} int TARGET_MEMORY_MOVE_COST (enum machine_mode @var{mode}, enum reg_class @var{regclass}, bool @var{in}) +@deftypefn {Target Hook} int TARGET_MEMORY_MOVE_COST (enum machine_mode @var{mode}, enum reg_class @var{rclass}, bool @var{in}) This target hook should return the cost of moving data of mode @var{mode} -between a register of class @var{class} and memory; @var{in} is @code{false} +between a register of class @var{rclass} and memory; @var{in} is @code{false} if the value is to be written to memory, @code{true} if it is to be read in. This cost is relative to those in @code{TARGET_REGISTER_MOVE_COST}. If moving between registers and memory is more expensive than between two @@ -6181,7 +6181,7 @@ registers, you should add this target hook to express the relative cost. If you do not add this target hook, GCC uses a default cost of 4 plus the cost of copying via a secondary reload register, if one is needed. If your machine requires a secondary reload register to copy -between memory and a register of @var{class} but the reload mechanism is +between memory and a register of @var{rclass} but the reload mechanism is more complex than copying via an intermediate, use this target hook to reflect the actual cost of the move. diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index aa5769b..0227464 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -6170,9 +6170,9 @@ These macros are obsolete, new ports should use the target hook @code{TARGET_MEMORY_MOVE_COST} instead. @end defmac -@deftypefn {Target Hook} int TARGET_MEMORY_MOVE_COST (enum machine_mode @var{mode}, enum reg_class @var{regclass}, bool @var{in}) +@hook TARGET_MEMORY_MOVE_COST This target hook should return the cost of moving data of mode @var{mode} -between a register of class @var{class} and memory; @var{in} is @code{false} +between a register of class @var{rclass} and memory; @var{in} is @code{false} if the value is to be written to memory, @code{true} if it is to be read in. This cost is relative to those in @code{TARGET_REGISTER_MOVE_COST}. If moving between registers and memory is more expensive than between two @@ -6181,7 +6181,7 @@ registers, you should add this target hook to express the relative cost. If you do not add this target hook, GCC uses a default cost of 4 plus the cost of copying via a secondary reload register, if one is needed. If your machine requires a secondary reload register to copy -between memory and a register of @var{class} but the reload mechanism is +between memory and a register of @var{rclass} but the reload mechanism is more complex than copying via an intermediate, use this target hook to reflect the actual cost of the move. diff --git a/gcc/target.def b/gcc/target.def index 656ac65..ec359d2 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -1375,7 +1375,7 @@ DEFHOOK /* Compute cost of moving registers to/from memory. */ /* ??? Documenting the argument types for this hook requires a GFDL license grant. Also, the documentation uses a different name for RCLASS. */ -DEFHOOK_UNDOC +DEFHOOK (memory_move_cost, "", int, (enum machine_mode mode, enum reg_class rclass, bool in), |