* genattr.c (main): Output ATTR_FLAG masks.
authorJeff Law <law@gcc.gnu.org>
Sun, 28 Mar 1993 21:22:00 +0000 (14:22 -0700)
committerJeff Law <law@gcc.gnu.org>
Sun, 28 Mar 1993 21:22:00 +0000 (14:22 -0700)
From-SVN: r3901

gcc/genattr.c

index 9deb1dcc9b7877f18c9fb7a7158cb8b58529941a..6137851cf78f296e74e8d7ab6c74a460a8d6df1c 100644 (file)
@@ -305,7 +305,7 @@ from the machine description file `md'.  */\n\n");
            {
              printf ("#define DELAY_SLOTS\n");
              printf ("extern int num_delay_slots PROTO((rtx));\n");
-             printf ("extern int eligible_for_delay PROTO((rtx, int, rtx));\n\n");
+             printf ("extern int eligible_for_delay PROTO((rtx, int, rtx, int));\n\n");
              printf ("extern int const_num_delay_slots PROTO((rtx));\n\n");
              have_delay = 1;
            }
@@ -415,6 +415,17 @@ from the machine description file `md'.  */\n\n");
                   &all_ready_cost, &all_issue_delay, &all_blockage);
     }
 
+  /* Output flag masks for use by reorg.  
+
+     Flags are used to hold branch direction and prediction information
+     for use by eligible_for_...  */
+  printf("\n#define ATTR_FLAG_forward\t0x1\n");
+  printf("#define ATTR_FLAG_backward\t0x2\n");
+  printf("#define ATTR_FLAG_likely\t0x4\n");
+  printf("#define ATTR_FLAG_very_likely\t0x8\n");
+  printf("#define ATTR_FLAG_unlikely\t0x10\n");
+  printf("#define ATTR_FLAG_very_unlikely\t0x20\n");
+
   fflush (stdout);
   exit (ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE);
   /* NOTREACHED */