diff options
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 1d111c6..699590e 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -48,16 +48,18 @@ gen_attr (rtx attr) /* If numeric attribute, don't need to write an enum. */ if (GET_CODE (attr) == DEFINE_ENUM_ATTR) printf ("extern enum %s get_attr_%s (%s);\n\n", - XSTR (attr, 1), XSTR (attr, 0), (is_const ? "void" : "rtx")); + XSTR (attr, 1), XSTR (attr, 0), + (is_const ? "void" : "rtx_insn *")); else { p = XSTR (attr, 1); if (*p == '\0') printf ("extern int get_attr_%s (%s);\n", XSTR (attr, 0), - (is_const ? "void" : "rtx")); + (is_const ? "void" : "rtx_insn *")); else printf ("extern enum attr_%s get_attr_%s (%s);\n\n", - XSTR (attr, 0), XSTR (attr, 0), (is_const ? "void" : "rtx")); + XSTR (attr, 0), XSTR (attr, 0), + (is_const ? "void" : "rtx_insn *")); } /* If `length' attribute, write additional function definitions and define @@ -66,10 +68,10 @@ gen_attr (rtx attr) { puts ("\ extern void shorten_branches (rtx_insn *);\n\ -extern int insn_default_length (rtx);\n\ -extern int insn_min_length (rtx);\n\ -extern int insn_variable_length_p (rtx);\n\ -extern int insn_current_length (rtx);\n\n\ +extern int insn_default_length (rtx_insn *);\n\ +extern int insn_min_length (rtx_insn *);\n\ +extern int insn_variable_length_p (rtx_insn *);\n\ +extern int insn_current_length (rtx_insn *);\n\n\ #include \"insn-addr.h\"\n"); } } @@ -176,7 +178,7 @@ main (int argc, char **argv) { if (! have_delay) { - printf ("extern int num_delay_slots (rtx);\n"); + printf ("extern int num_delay_slots (rtx_insn *);\n"); printf ("extern int eligible_for_delay (rtx_insn *, int, rtx_insn *, int);\n\n"); printf ("extern int const_num_delay_slots (rtx_insn *);\n\n"); have_delay = 1; @@ -230,25 +232,25 @@ main (int argc, char **argv) printf (" and insn_default_latency. */\n"); printf ("extern void init_sched_attrs (void);\n\n"); printf ("/* Internal insn code number used by automata. */\n"); - printf ("extern int (*internal_dfa_insn_code) (rtx);\n\n"); + printf ("extern int (*internal_dfa_insn_code) (rtx_insn *);\n\n"); printf ("/* Insn latency time defined in define_insn_reservation. */\n"); - printf ("extern int (*insn_default_latency) (rtx);\n\n"); + printf ("extern int (*insn_default_latency) (rtx_insn *);\n\n"); } else { printf ("#define init_sched_attrs() do { } while (0)\n\n"); printf ("/* Internal insn code number used by automata. */\n"); - printf ("extern int internal_dfa_insn_code (rtx);\n\n"); + printf ("extern int internal_dfa_insn_code (rtx_insn *);\n\n"); printf ("/* Insn latency time defined in define_insn_reservation. */\n"); - printf ("extern int insn_default_latency (rtx);\n\n"); + printf ("extern int insn_default_latency (rtx_insn *);\n\n"); } printf ("/* Return nonzero if there is a bypass for given insn\n"); printf (" which is a data producer. */\n"); - printf ("extern int bypass_p (rtx);\n\n"); + printf ("extern int bypass_p (rtx_insn *);\n\n"); printf ("/* Insn latency time on data consumed by the 2nd insn.\n"); printf (" Use the function if bypass_p returns nonzero for\n"); printf (" the 1st insn. */\n"); - printf ("extern int insn_latency (rtx_insn *, rtx_insn *);\n\n"); + printf ("extern int insn_latency (rtx, rtx);\n\n"); printf ("/* Maximal insn latency time possible of all bypasses for this insn.\n"); printf (" Use the function if bypass_p returns nonzero for\n"); printf (" the 1st insn. */\n"); @@ -288,7 +290,7 @@ main (int argc, char **argv) printf (" implementation may require much memory. */\n"); printf ("extern int state_alts (state_t, rtx);\n"); printf ("#endif\n\n"); - printf ("extern int min_issue_delay (state_t, rtx);\n"); + printf ("extern int min_issue_delay (state_t, rtx_insn *);\n"); printf ("/* The following function returns nonzero if no one insn\n"); printf (" can be issued in current DFA state. */\n"); printf ("extern int state_dead_lock_p (state_t);\n"); @@ -303,7 +305,7 @@ main (int argc, char **argv) printf ("/* The following function outputs reservations for given\n"); printf (" insn as they are described in the corresponding\n"); printf (" define_insn_reservation. */\n"); - printf ("extern void print_reservation (FILE *, rtx);\n"); + printf ("extern void print_reservation (FILE *, rtx_insn *);\n"); printf ("\n#if CPU_UNITS_QUERY\n"); printf ("/* The following function returns code of functional unit\n"); printf (" with given name (see define_cpu_unit). */\n"); @@ -315,7 +317,7 @@ main (int argc, char **argv) printf ("#endif\n\n"); printf ("/* The following function returns true if insn\n"); printf (" has a dfa reservation. */\n"); - printf ("extern bool insn_has_dfa_reservation_p (rtx);\n\n"); + printf ("extern bool insn_has_dfa_reservation_p (rtx_insn *);\n\n"); printf ("/* Clean insn code cache. It should be called if there\n"); printf (" is a chance that condition value in a\n"); printf (" define_insn_reservation will be changed after\n"); @@ -346,11 +348,11 @@ main (int argc, char **argv) /* We make an exception here to provide stub definitions for insn_*_length* / get_attr_enabled functions. */ puts ("#if !HAVE_ATTR_length\n" - "extern int hook_int_rtx_unreachable (rtx);\n" - "#define insn_default_length hook_int_rtx_unreachable\n" - "#define insn_min_length hook_int_rtx_unreachable\n" - "#define insn_variable_length_p hook_int_rtx_unreachable\n" - "#define insn_current_length hook_int_rtx_unreachable\n" + "extern int hook_int_rtx_insn_unreachable (rtx_insn *);\n" + "#define insn_default_length hook_int_rtx_insn_unreachable\n" + "#define insn_min_length hook_int_rtx_insn_unreachable\n" + "#define insn_variable_length_p hook_int_rtx_insn_unreachable\n" + "#define insn_current_length hook_int_rtx_insn_unreachable\n" "#include \"insn-addr.h\"\n" "#endif\n" "#if !HAVE_ATTR_enabled\n" |