aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2016-11-07 15:37:51 +0000
committerPat Haugen <pthaugen@gcc.gnu.org>2016-11-07 15:37:51 +0000
commitb4ff394c548414d6594170573c1cea89b91968e1 (patch)
treed5b5f42b4d7a57750e4eea4ccfb2aaddb9c89e95 /gcc/doc
parentc939044ae59e3dad0b3967e64173cd3fb717129b (diff)
downloadgcc-b4ff394c548414d6594170573c1cea89b91968e1.zip
gcc-b4ff394c548414d6594170573c1cea89b91968e1.tar.gz
gcc-b4ff394c548414d6594170573c1cea89b91968e1.tar.bz2
target.def (compute_pressure_classes): New target hook.
* target.def (compute_pressure_classes): New target hook. * doc/tm.texi.in: Document it. * doc/tm.texi: Regenerate. * ira.c (setup_pressure_classes): Call target hook if defined. From-SVN: r241911
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi4
-rw-r--r--gcc/doc/tm.texi.in2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index e2d5e5f..81c63b7 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -2903,6 +2903,10 @@ This hook defines a class of registers which could be used for spilling pseudos
This hook defines the machine mode to use for the boolean result of conditional store patterns. The ICODE argument is the instruction code for the cstore being performed. Not definiting this hook is the same as accepting the mode encoded into operand 0 of the cstore expander patterns.
@end deftypefn
+@deftypefn {Target Hook} int TARGET_COMPUTE_PRESSURE_CLASSES (enum reg_class *@var{pressure_classes})
+A target hook which lets a backend compute the set of pressure classes to be used by those optimization passes which take register pressure into account, as opposed to letting IRA compute them. It returns the number of register classes stored in the array @var{pressure_classes}.
+@end deftypefn
+
@node Stack and Calling
@section Stack Layout and Calling Conventions
@cindex calling conventions
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 102ad71..74e9200 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -2509,6 +2509,8 @@ value that the middle-end intended.
@hook TARGET_CSTORE_MODE
+@hook TARGET_COMPUTE_PRESSURE_CLASSES
+
@node Stack and Calling
@section Stack Layout and Calling Conventions
@cindex calling conventions