aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2010-04-08 15:07:57 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2010-04-08 15:07:57 +0000
commit40ac4f73faa256e049279c1611d47a685ff7f370 (patch)
tree0ebeefa37492fc33063a9f55bc090391a092d0fd /gcc/target.h
parent07c60ef701e0fe0c65f0186bd521ee83b6c24c3c (diff)
downloadgcc-40ac4f73faa256e049279c1611d47a685ff7f370.zip
gcc-40ac4f73faa256e049279c1611d47a685ff7f370.tar.gz
gcc-40ac4f73faa256e049279c1611d47a685ff7f370.tar.bz2
Implement target hook for loop unrolling
2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com> Wolfgang Gellerich <gellerich@de.ibm.com> Implement target hook for loop unrolling * target.h (loop_unroll_adjust): Add a new target hook function. * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise. * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it. * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it. (s390_loop_unroll_adjust): Implement the new target hook for s390. * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll target hook (decide_unroll_stupid): Likewise. Co-Authored-By: Wolfgang Gellerich <gellerich@de.ibm.com> From-SVN: r158132
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 41ae3e3..e4e82a3 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -97,6 +97,9 @@ struct _dep;
/* This is defined in ddg.h . */
struct ddg;
+/* This is defined in cfgloop.h . */
+struct loop;
+
/* Assembler instructions for creating various kinds of integer object. */
struct asm_int_op
@@ -637,6 +640,9 @@ struct gcc_target
/* Return true if the target supports conditional execution. */
bool (* have_conditional_execution) (void);
+ /* Return a new value for loop unroll size. */
+ unsigned (* loop_unroll_adjust) (unsigned nunroll, struct loop *loop);
+
/* True if the constant X cannot be placed in the constant pool. */
bool (* cannot_force_const_mem) (rtx);