summaryrefslogtreecommitdiff
path: root/gcc/doc/tm.texi
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-19 04:40:11 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-19 04:40:11 +0000
commitf44473298ed13aea41ff7dfe0d172e1fbba23c5c (patch)
treefd00faa99d4eef198022a52515e9b805f18b3d04 /gcc/doc/tm.texi
parent382efce605068205efb52dab858c95e2caa90a6c (diff)
downloadgcc-f44473298ed13aea41ff7dfe0d172e1fbba23c5c.tar.gz
* Add TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV target macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218886 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r--gcc/doc/tm.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index ee741a97fc3..50e80f64226 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -2847,6 +2847,16 @@ A target hook which returns true if we need register usage leveling. That means
A target hook which returns true if an address with the same structure can have different maximal legitimate displacement. For example, the displacement can depend on memory mode or on operand combinations in the insn. The default version of this target hook returns always false.
@end deftypefn
+@deftypefn {Target Hook} bool TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P (rtx @var{subst})
+A target hook which returns @code{true} if @var{subst} can't
+substitute safely pseudos with equivalent memory values during
+register allocation.
+The default version of this target hook returns @code{false}.
+On most machines, this default should be used. For generally
+machines with non orthogonal register usage for addressing, such
+as SH, this hook can be used to avoid excessive spilling.
+@end deftypefn
+
@deftypefn {Target Hook} reg_class_t TARGET_SPILL_CLASS (reg_class_t, @var{machine_mode})
This hook defines a class of registers which could be used for spilling pseudos of the given mode and class, or @code{NO_REGS} if only memory should be used. Not defining this hook is equivalent to returning @code{NO_REGS} for all inputs.
@end deftypefn