aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-12-20 12:52:12 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-20 12:52:12 +0000
commit37b2b8f95783b449aca30d32f4c97a4db3bd395e (patch)
treef9f4281fcb3cf1bbf777100bf54c33ef1de17cc6 /gcc/hooks.h
parentf8832fe1a7611c0458ebf45140c099eb7bf5d0c8 (diff)
downloadgcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.zip
gcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.tar.gz
gcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.tar.bz2
poly_int: TRULY_NOOP_TRUNCATION
This patch makes TRULY_NOOP_TRUNCATION take the mode sizes as poly_uint64s instead of unsigned ints. The function bodies don't need to change. 2017-12-20 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * target.def (truly_noop_truncation): Take poly_uint64s instead of unsigned ints. Change default to hook_bool_puint64_puint64_true. * doc/tm.texi: Regenerate. * hooks.h (hook_bool_uint_uint_true): Delete. (hook_bool_puint64_puint64_true): Declare. * hooks.c (hook_bool_uint_uint_true): Delete. (hook_bool_puint64_puint64_true): New function. * config/mips/mips.c (mips_truly_noop_truncation): Take poly_uint64s instead of unsigned ints. * config/spu/spu.c (spu_truly_noop_truncation): Likewise. * config/tilegx/tilegx.c (tilegx_truly_noop_truncation): Likewise. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r255866
Diffstat (limited to 'gcc/hooks.h')
-rw-r--r--gcc/hooks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hooks.h b/gcc/hooks.h
index 8dbfd78..b0d830a 100644
--- a/gcc/hooks.h
+++ b/gcc/hooks.h
@@ -39,7 +39,7 @@ extern bool hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
const rtx_insn *);
extern bool hook_bool_mode_uhwi_false (machine_mode,
unsigned HOST_WIDE_INT);
-extern bool hook_bool_uint_uint_true (unsigned int, unsigned int);
+extern bool hook_bool_puint64_puint64_true (poly_uint64, poly_uint64);
extern bool hook_bool_uint_mode_false (unsigned int, machine_mode);
extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
extern bool hook_bool_tree_false (tree);