summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 0c0fc1d45a1..1b8decd1b49 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -216,6 +216,17 @@ typedef auto_vec<poly_uint64, 8> auto_vector_sizes;
extern struct gcc_target targetm;
+/* Return the mode that should be used to hold a scalar shift amount
+ when shifting values of the given mode. */
+/* ??? This could in principle be generated automatically from the .md
+ shift patterns, but for now word_mode should be universally OK. */
+
+inline scalar_int_mode
+get_shift_amount_mode (machine_mode)
+{
+ return word_mode;
+}
+
/* Return an estimate of the runtime value of X, for use in things
like cost calculations or profiling frequencies. Note that this
function should never be used in situations where the actual
@@ -231,17 +242,6 @@ estimated_poly_value (poly_int64 x)
return targetm.estimated_poly_value (x);
}
-/* Return the mode that should be used to hold a scalar shift amount
- when shifting values of the given mode. */
-/* ??? This could in principle be generated automatically from the .md
- shift patterns, but for now word_mode should be universally OK. */
-
-inline scalar_int_mode
-get_shift_amount_mode (machine_mode)
-{
- return word_mode;
-}
-
#ifdef GCC_TM_H
#ifndef CUMULATIVE_ARGS_MAGIC