comparison gcc/sel-sched-dump.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Instruction scheduling pass. Log dumping infrastructure. 1 /* Instruction scheduling pass. Log dumping infrastructure.
2 Copyright (C) 2006-2017 Free Software Foundation, Inc. 2 Copyright (C) 2006-2018 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
119 dump_insn_rtx_1 (rtx insn, int flags) 119 dump_insn_rtx_1 (rtx insn, int flags)
120 { 120 {
121 int all; 121 int all;
122 122
123 /* flags == -1 also means dumping all. */ 123 /* flags == -1 also means dumping all. */
124 all = (flags & 1);; 124 all = (flags & 1);
125 if (all) 125 if (all)
126 flags |= DUMP_INSN_RTX_ALL; 126 flags |= DUMP_INSN_RTX_ALL;
127 127
128 sel_print ("("); 128 sel_print ("(");
129 129
987 dump_blist (bnds); 987 dump_blist (bnds);
988 sel_print ("\n"); 988 sel_print ("\n");
989 restore_dump (); 989 restore_dump ();
990 } 990 }
991 991
992 /* Dump a rtx vector REF. */
993 DEBUG_FUNCTION void
994 debug (vec<rtx_insn *> &ref)
995 {
996 switch_dump (stderr);
997 dump_insn_vector (ref);
998 sel_print ("\n");
999 restore_dump ();
1000 }
1001
1002 DEBUG_FUNCTION void
1003 debug (vec<rtx_insn *> *ptr)
1004 {
1005 if (ptr)
1006 debug (*ptr);
1007 else
1008 fprintf (stderr, "<nil>\n");
1009 }
1010
1011 /* Dump an insn vector SUCCS. */
1012 DEBUG_FUNCTION void
1013 debug_insn_vector (rtx_vec_t succs)
1014 {
1015 switch_dump (stderr);
1016 dump_insn_vector (succs);
1017 sel_print ("\n");
1018 restore_dump ();
1019 }
1020
1021 /* Dump a hard reg set SET to stderr. */ 992 /* Dump a hard reg set SET to stderr. */
1022 DEBUG_FUNCTION void 993 DEBUG_FUNCTION void
1023 debug_hard_reg_set (HARD_REG_SET set) 994 debug_hard_reg_set (HARD_REG_SET set)
1024 { 995 {
1025 switch_dump (stderr); 996 switch_dump (stderr);